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

caustica

v0.2.3

Published

Caustica — glass design system with semantic tokens, translucent UI, and typed React core.

Downloads

682

Readme

Caustica Design System

Caustica takes its name from the bright patterns light makes when it shines through glass or water — like the shimmer on a pool floor, or the glow under a drinking glass.

The design system aims for that same feeling in UI: soft, see-through surfaces and gentle depth — not heavy, solid chrome. You get shared color tokens, glass-style components, typed React helpers, and docs, all on one CSS foundation.

Migration: @apply-agent/design-system is deprecated. Install caustica instead (same CSS/React surface; update import paths).

Install

npm install caustica

Peer dependencies for React: react and react-dom ≥ 18.

import 'caustica/css' // or 'caustica/css/foundation'
import { Button, useTheme } from 'caustica/core'

Wrap your app shell in .ca-root (recommended). Canvas glow and grain sit behind content either way.

<body>
  <div class="ca-root">…</div>
</body>

Glass performance: avoid nesting many blurred surfaces (navbar + panel grids + cards). For dense UIs, lower blur:

:root {
  --ca-blur-glass: 16px; /* default 32px */
  --glass-blur: var(--ca-blur-glass);
}

CSS-only via CDN (jsDelivr / unpkg):

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/caustica/dist/index.css" />

React still needs a bundler — import from caustica/core. Set data-theme="light" | "dark" on <html> (or use useTheme / setTheme). Serve /icons/*.svg from this package’s public/icons or dist/icons.

Docs

Local: npm run docs:dev → http://127.0.0.1:5175/ (docs + examples at /examples/). npm run dev is the same stack on port 5174.

Guides: Tokens, Theming, Getting started. Component pages under site/components/. Examples-only server: npm run examples:dev.

What’s included

  • Tokens — DTCG JSON (tokens/) + 3-layer CSS (src/css/tokens/)
  • CSS — foundation or full stylesheet (caustica/css)
  • React — typed wrappers from caustica/core
  • Docs sitesite/ (built to site-dist/ via npm run docs:build)

See DESIGN.md for principles. Full API surface is in the docs / src/core/.

License & notices

This package ships no runtime npm dependencies (React is an optional peer). These docs are not legal advice.

Publishing

Requires npm login with rights to publish the caustica package.

npm run test:ci && npm publish --access public

publishConfig.access is already public. Do not publish without a green test:ci.

Scripts

| Script | Description | |--------|-------------| | npm run docs:dev | Docs + examples (port 5175) | | npm run dev | Same as docs:dev on port 5174 | | npm run examples:dev | Examples-only server | | npm run build | Bundle CSS + emit React core to dist/ | | npm run lint | CSS structure + token checks | | npm run typecheck | Typecheck src/core | | npm run test:ci | Golden rules, lint, typecheck, build, a11y audit, security |