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

@e412/rnui-themes

v0.1.0

Published

CSS themes for [`@e412/rnui-react`](../react) — 8 built-in presets, a `data-theme` attribute system, full Tailwind CSS v4 integration, and the OKLch color space for perceptually uniform palettes.

Downloads

214

Readme

@e412/rnui-themes

CSS themes for @e412/rnui-react — 8 built-in presets, a data-theme attribute system, full Tailwind CSS v4 integration, and the OKLch color space for perceptually uniform palettes.

pnpm add @e412/rnui-themes

Quick start

@import 'tailwindcss';
@import '@e412/rnui-themes';

That gives you the warm-neutral default theme. Add presets to unlock the built-in themes:

@import '@e412/rnui-themes';
@import '@e412/rnui-themes/presets';
<html data-theme="ocean"></html>

Built-in presets

| Theme | Personality | Font | Radius | | --------- | ----------------------------- | ------------------------ | ---------- | | oxide | Editorial craft, warm copper | Bitter + DM Sans | 0.375rem | | ocean | Smooth aquatic, deep teal | Plus Jakarta Sans | 0.875rem | | violet | Luxury creative, rich purple | Outfit | 1rem | | forest | Organic natural, deep emerald | Fraunces + Source Sans 3 | 0.5rem | | rose | Soft & bubbly, warm pink | Nunito | 1.25rem | | amber | Sharp & energetic, golden | Sora | 0.25rem | | slate | Professional tech, blue-gray | Geist | 0.5rem | | crimson | Brutalist bold, scarlet | Instrument Sans | 0 |

Themes declare --font-sans and sometimes --font-heading, but don't load the fonts — that's your choice (Google Fonts, next/font, self-hosted). Each preset's CSS file documents the Google Fonts URL in its header comment.

Dark mode

The docs and most apps expect a .dark class on <html>:

<html data-theme="ocean" class="dark"></html>

You can also scope themes to containers:

<div data-theme="rose">...</div>

Custom themes

Define any [data-theme="..."] selector in your CSS:

@import '@e412/rnui-themes';
@import '@e412/rnui-themes/presets';

[data-theme='brand'] {
  --font-sans: 'My Brand Font', sans-serif;
  --radius: 0.75rem;
  --primary: oklch(0.55 0.2 180);
  --primary-foreground: oklch(0.97 0.01 180);
  /* Anything not listed inherits from the defaults */
}

[data-theme='brand'].dark,
.dark [data-theme='brand'] {
  --primary: oklch(0.72 0.18 180);
  --primary-foreground: oklch(0.15 0.03 180);
}

Extending a preset

Since themes are plain CSS, your overrides cascade naturally:

@import '@e412/rnui-themes/presets';

/* Start from Ocean, customize the primary */
[data-theme='ocean'] {
  --primary: oklch(0.48 0.15 220);
}

Runtime switching

document.documentElement.dataset.theme = 'violet'

Available tokens

Colors: --background, --foreground, --card, --popover, --primary, --secondary, --muted, --accent, --destructive, --success, --info, --warning, --border, --input, --ring, --focus, --invert — each with a matching -foreground pair.

Charts: --chart-1 through --chart-5 — each theme tunes these to harmonize with its primary hue.

Sidebar: --sidebar, --sidebar-foreground, --sidebar-primary, --sidebar-accent, --sidebar-border, --sidebar-ring.

Shape: --radius. Derived sizes (--radius-sm through --radius-4xl) are computed via @theme inline.

Typography: --font-sans, --font-heading (falls back to --font-sans).

Imports

@import '@e412/rnui-themes'; /* everything: base + light + dark */
@import '@e412/rnui-themes/base'; /* reset + body font + heading */
@import '@e412/rnui-themes/light'; /* light variables on :root */
@import '@e412/rnui-themes/dark'; /* dark variables on .dark */
@import '@e412/rnui-themes/presets'; /* all 8 presets as [data-theme] */

/* Individual presets (sets :root directly — use for single-theme apps) */
@import '@e412/rnui-themes/oxide';
@import '@e412/rnui-themes/ocean';
@import '@e412/rnui-themes/violet';
@import '@e412/rnui-themes/forest';
@import '@e412/rnui-themes/rose';
@import '@e412/rnui-themes/amber';
@import '@e412/rnui-themes/slate';
@import '@e412/rnui-themes/crimson';

License

MIT