npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

boreal-ui

v0.0.86

Published

A modern, customizable React/Next.js component library

Readme

Boreal UI

A highly customizable, accessible React and Next.js component library with SCSS-powered theming.
Offers both Core (framework-agnostic React) and Next.js-optimized variants for seamless integration in any project.


Features

  • Dual Build Support:
    Use boreal-ui/core for any React project or boreal-ui/next for Next.js apps.
  • SCSS-Based Theming:
    Override color, typography, spacing, border, and shadow variables to perfectly match your brand.
  • Accessibility First:
    WCAG-friendly out of the box. Includes keyboard navigation, ARIA roles, and robust focus states.
  • Rich Component Set:
    Buttons, IconButtons, Cards, Accordions, Modals, Tabs, DataTable, Avatar, Badge, Tooltip, FileUpload, EmptyState, and more.
  • TypeScript Native:
    All components include full prop typing and interfaces for an exceptional developer experience.

Installation

npm install boreal-ui

Quick Usage

Including Global Styles

For Next.js :

In your globals.css (or globals.scss), add the following at the top:

@import "boreal-ui/next/globals.css";

Then, make sure this global file is included in your layout or _app.tsx:

import "./globals.css"; // or "./globals.scss"

For React (Core):

If you're using boreal-ui/core, import the base styles in your main entry (e.g., index.tsx or App.tsx):

import "boreal-ui/core/globals.css";

Importing Components

For React (Core):

import { Button } from "boreal-ui/core/Button";
import { Card } from "boreal-ui/core/Card";

For Next.js (Optimized):

import { Button } from "boreal-ui/next/Button";
import { Card } from "boreal-ui/next/Card";

Global Configuration

Boreal UI lets you define project-wide style defaults (theme, rounding, shadow, size) in a single config API.

Call the config API

import { setBorealStyleConfig } from "boreal-ui/config/[next|core]";

setBorealStyleConfig({
  defaultTheme: "secondary", // "primary" | "secondary" | "tertiary" | "quaternary"
  defaultRounding: "medium", // "none" | "small" | "medium" | "large" | "full"
  defaultShadow: "light", // "none" | "light" | "medium" | "strong" | "intense"
  defaultSize: "large", // "xs" | "small" | "medium" | "large" | "xl"
});

Call this once early in your app before rendering any components.

These defaults apply globally, but you can override them per component as needed:

<Button theme="secondary" size="large" shadow="strong">
  Custom Button
</Button>

Theming & Custom Color Schemes

Boreal UI supports custom color schemes through the ThemeProvider.

Wrap your app (typically in _app.tsx or a custom provider):

"use client";
import { ThemeProvider } from "boreal-ui";

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <ThemeProvider
          customSchemes={[
            {
              name: "Cyberpunk Pulse",
              primaryColor: "#ff006e",
              secondaryColor: "#8338ec",
              tertiaryColor: "#3a0ca3",
              quaternaryColor: "#fb5607",
              backgroundColor: "#0f0f0f",
            },
          ]}
        >
          {children}
        </ThemeProvider>
      </body>
    </html>
  );
}

Theme property reference:

| Property | Description | | ----------------- | -------------------------------- | | name | Unique identifier for the scheme | | primaryColor | Main UI color | | secondaryColor | Accent color | | tertiaryColor | Additional accent | | quaternaryColor | Additional accent | | backgroundColor | Background/base color |


Post-Install Verification

After installation, we recommend testing the following in your app:

  • Component renders correctly and styles are applied.

  • Custom theme is working when passed via ThemeProvider.

  • Global config overrides (theme, size, etc.) are applied.

  • No console errors or missing styles on first render.

Why Use Boreal UI?

  • Enforces consistent styling and branding across your project.
  • Save time: define defaults once, override only when needed.
  • Switch between multiple color schemes easily (great for light/dark mode).
  • Fully accessible and ready for production.

Contributing

  1. Fork this repo.
  2. Create a feature branch: git checkout -b feat/my-component
  3. Commit your changes: git commit -m "Add MyComponent"
  4. Push to your fork: git push origin feat/my-component
  5. Open a Pull Request.

Include

  • Component logic (TSX)
  • Styles (SCSS)
  • Tests (Jest/Cypress)
  • Storybook stories
  • Docs/comments for props

License

MIT © Davin Chiupka