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

@delightstack/styles

v1.0.0

Published

Delightstack global CSS — OKLCH design tokens, color scales, and base styles.

Downloads

166

Readme

@delightstack/styles

Global CSS for the Delightstack — OKLCH design tokens, generated color scales, and base styles that the @delightstack/components library is built against.

Install

pnpm add @delightstack/styles

Usage

Import the stylesheet once, at the root of your app:

import '@delightstack/styles';
// or explicitly:
import '@delightstack/styles/global.css';

This defines the --color-* token scales (derived from --color-primary via oklch(from …)), light/dark color-scheme, and base element styles.

Need the tokens but not the base element styles (e.g. you're dropping them into an existing design system)? Import the pieces directly:

import '@delightstack/styles/tokens.css'; // design tokens only
import '@delightstack/styles/scrollbar.css'; // styled-native scrollbar baseline

Cascade layers

global.css puts everything it sets on real elements — the reset and the base element styles — inside @layer delight.reset, @layer delight.base, and @layer delight.utilities. Unlayered rules always beat layered ones, so your own styles win without specificity battles or !important — just write normal CSS:

/* No fight with the base styles — your rule is unlayered, so it wins. */
a {
	color: rebeccapurple;
}

Want all of Delightstack to sit below your own layered styles? Order the parent layer once:

@layer delight, app;
/* ...your styles in `app` now outrank everything Delightstack ships. */

Two things are deliberately left unlayered so they stay hard to override: the prefers-reduced-motion reset and the !important .mobile-only / .mobile-hidden utilities.

The design tokens (tokens.css) are plain custom properties on html, also unlayered — override any of them with normal specificity (see below).

Theming

Every token is derived from a single brand seed. Override it (and, optionally, the neutral/secondary seeds) on :root to recolor the whole system:

:root {
	--color-primary: #7c3aed; /* the whole ramp, charts, actions… all follow */
}

Light & dark mode

Theming tokens are light-dark() values, so the active scheme is driven by the color-scheme property — there is no .dark class. By default the tokens follow the OS preference. To force a scheme, set data-theme on <html> (or on any subtree — color-scheme inherits, so you can theme just one section):

<html data-theme="dark">
  <!-- forced dark, regardless of OS -->
</html>

Toggle it from JS for a manual switch:

document.documentElement.dataset.theme = isDark ? 'dark' : 'light';
// remove it to fall back to the OS preference:
delete document.documentElement.dataset.theme;

Documentation

Full docs: https://docs.thedelight.co

License

MIT © Brian Schwabauer