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

dynamic-ui-react

v0.2.3

Published

A multi-brand, structurally-themeable React component library — one frozen component API where swapping the brand repaints AND restructures the layout, not just the colours. Tailwind v4 + tailwind-variants; wraps Ark UI for interactive widgets.

Readme

dynamic-ui-react

Storybook → — live docs, every component, both brands, light/dark.

A multi-brand, structurally-themeable React component library. One frozen component API — swapping the brand doesn't just repaint colours, it can genuinely restructure a layout. Built with React and Tailwind CSS v4 (tailwind-variants for recipes); interactive widgets wrap Ark UI.

Two brands ship today: know2code (a coding-education console — cool blue, sharp radii, dark by default) and LMS (a general learning platform — forest green and marigold, generous radii, light by default). Light/dark is an orthogonal axis from brand, so both vary independently.

Install

npm install dynamic-ui-react
npm install react react-dom

react and react-dom are peer dependencies (^18 or ^19).

Usage

import 'dynamic-ui-react/styles.css';
import { BrandProvider, Card, Button } from 'dynamic-ui-react';

function App() {
  return (
    <BrandProvider brand="know2code" colorScheme="dark">
      <Card>
        <Card.Body>Hello, world.</Card.Body>
        <Card.Footer>
          <Button tone="solid">Continue</Button>
        </Card.Footer>
      </Card>
    </BrandProvider>
  );
}

Every component reads its --brand-* tokens from the nearest BrandProvider — nothing renders correctly without one.

Styling: pick one of two paths

A. You do NOT use Tailwind (or just want it to work out of the box) — import the prebuilt stylesheet:

import 'dynamic-ui-react/styles.css';

This ships every class the components use. It intentionally does not include Tailwind's global preflight reset, so it won't clobber your app's base styles — bring your own reset if you don't have one.

B. You DO write Tailwind v4 utilities alongside the kit (e.g. bg-primary, rounded-element in your own markup, themed by the active BrandProvider). Don't import styles.css — instead register this package's theme in your own Tailwind entry so your build generates those utilities too:

/* your app's main CSS */
@import "tailwindcss";
@import "dynamic-ui-react/theme.css";
@source "../node_modules/dynamic-ui-react/dist";

theme.css maps the --brand-* tokens onto Tailwind's namespaces (so your bg-primary/rounded-element resolve to the active brand) and carries the component-recipe chrome; the @source line lets Tailwind scan the shipped components so their classes are emitted in your build.

CodeEditor (optional)

CodeEditor wraps Monaco (~5 MB) and is published from a separate entry so it never enters your bundle unless you opt in. Install Monaco and import from the subpath:

npm install monaco-editor @monaco-editor/react
import { CodeEditor } from 'dynamic-ui-react/code-editor';

What's provided

~57 components across two tiers:

  • Primitives (open, accept children) — Forms, Buttons, Overlays, Feedback, Navigation, Layout, Data Display, and Typography. Includes Input, Select, Combobox, DatePicker, FileUpload, Dialog, Tooltip, Card, Table, Tabs, and more.
  • Kit (locked, data-prop only) — AppShell, PageHeader, DataTable, EmptyState, SearchBar, ConfirmDialog. Built so a non-expert consumer can't render it off-brand.

See the Storybook — open the Getting started page for the full walkthrough, or Introduction for the concept. Every category has its own sidebar section with live, brand-switchable examples.

Contributing to the library itself? See CONTRIBUTING.md.

License

MIT