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

@batthewz/response-ui-css

v0.1.0

Published

Design tokens, themes, and component CSS for the response-ui design system. Tailwind v4 CSS-first.

Readme

@batthewz/response-ui-css

CSS-first design tokens, themes, and component styles for the response-ui design system. Built on Tailwind CSS v4. Pairs with @batthewz/response-ui-react-components but works on its own — useful from any framework, including server-rendered templates.

Install

bun add @batthewz/response-ui-css
# peer dep, if you don't already have it:
bun add -D tailwindcss @tailwindcss/vite

Use

One import in your app's CSS entry:

/* src/app.css */
@import "@batthewz/response-ui-css";

That's it. The package internally pulls in tailwindcss, all design tokens, all four built-in themes, responsive scales, animations, and component styles. There's no tailwind.config.js, no PostCSS config — Tailwind v4 is CSS-first.

If you self-host fonts and want to skip the Google Fonts imports:

@import "@batthewz/response-ui-css/no-fonts";

What ships

  • Design tokens — colors (OKLCH), spacing, radii, shadows, motion, overlay, media query breakpoints
  • Responsive scales--R-SIZE-1..6 spacing and --H1..H6 / --BodyText-1..3 text scales that step up at the 40rem (640px) breakpoint
  • Animations — fade, scale, morph, scroll-reveal, stagger, view-transitions
  • Component styles — backing CSS for AppShell, Accordion, Carousel, Popover, Tooltip, etc.
  • Four built-in themes — switched via <html data-theme="…">:
    • default (the :root definitions; remove the attribute to apply)
    • events — warm editorial / celebratory
    • grimdark — gothic dark
    • tech — futuristic minimal

Themes

Switch theme by setting data-theme on <html>:

document.documentElement.setAttribute("data-theme", "grimdark");
// or removeAttribute("data-theme") to revert to default

The React package exports a useTheme() hook that does this for you.

Define your own theme

A theme is any selector that overrides the documented set of CSS custom properties. The convention is :root[data-theme="…"]. Three on-ramps:

  1. Copy the template:

    cp node_modules/@batthewz/response-ui-css/src/_theme-template.css ./src/themes/aurora.css
    # edit, then:
    /* src/app.css */
    @import "@batthewz/response-ui-css";
    @import "./themes/aurora.css";
  2. Generate from JSON (e.g. exported by the ThemeEditor in the showcase):

    bunx @batthewz/response-ui-css theme-from-json my-theme.json --name aurora > src/themes/aurora.css
  3. Hand-write CSS following the contract:

    :root[data-theme="aurora"] {
      color-scheme: dark;
      --C-CANVAS: oklch(0.18 0.04 270);
      --C-PRIMARY: oklch(0.6 0.15 220);
      /* …rest of the contract — see docs/theme-contract.md */
    }

Full schema: docs/theme-contract.md.

Subpath exports

| Export | Use | | --- | --- | | @batthewz/response-ui-css | Main entry — Tailwind + tokens + themes + base + animations | | @batthewz/response-ui-css/no-fonts | Same but without Google Fonts imports | | @batthewz/response-ui-css/fonts | Just the font imports | | @batthewz/response-ui-css/tokens | Tokens only — no themes, no Tailwind | | @batthewz/response-ui-css/themes/grimdark | A specific theme file | | @batthewz/response-ui-css/themes/events | … | | @batthewz/response-ui-css/themes/tech | … | | @batthewz/response-ui-css/theme-template | The blank theme template |

License

MIT.