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

@shift-css/core

v0.6.0

Published

Zero-runtime, OKLCH-native CSS framework with cascade layers and native light-dark() theming

Readme

@shift-css/core

A zero-runtime, OKLCH-native CSS framework with automatic theming.

npm version License: MIT

Installation

npm install @shift-css/core
# or
bun add @shift-css/core
# or
pnpm add @shift-css/core

Usage

/* Full framework */
@import "@shift-css/core";

/* Or minified for production */
@import "@shift-css/core/min";
<div s-surface="raised">
  <h2>Hello Shift</h2>
  <button s-btn="primary">Get Started</button>
</div>

No configuration, no JavaScript, no build step for customization.

Features

  • Zero JavaScript - Theming works without any runtime code
  • Perceptually uniform colors - OKLCH ensures consistent brightness across your palette
  • Automatic contrast - Text colors adapt to any background automatically
  • Clean specificity - Cascade layers mean no more !important battles
  • One-line customization - Change a single hue variable to transform your entire palette
/* Change your entire brand palette with one line */
:root {
  --shift-hue-primary: 280; /* Purple instead of blue */
}

Customization

Override seed hues to transform your entire palette:

:root {
  --shift-hue-primary: 280; /* Purple */
  --shift-hue-secondary: 200; /* Teal */
  --shift-hue-accent: 45; /* Gold */
  --shift-hue-neutral: 280; /* Purple-tinted grays */
}

Modular Imports

Import only what you need:

/* Reset only */
@import "@shift-css/core/reset";

/* Tokens only */
@import "@shift-css/core/tokens";

Bundle Size

| File | Size | | --------------- | ------ | | shift.css | ~55 KB | | shift.min.css | ~41 KB | | Gzipped | ~10 KB |

Browser Support

| Browser | Minimum Version | | ------- | --------------- | | Chrome | 131+ | | Firefox | 133+ | | Safari | 18+ | | Edge | 131+ |

Documentation

Full documentation at getshiftcss.com

CLI

Use the CLI to initialize Shift CSS with proper cascade layers:

npx shift-css init

See @shift-css/cli for details.

License

MIT