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

@atifc/css

v1.0.1

Published

Parametric CSS design token system built on OKLCH with dark/light theming and zero dependencies.

Readme

@atifc/css

GitHub Repo npm Package

A parametric CSS design token system built on OKLCH. Drop it into any project to get a complete, mathematically consistent set of color, typography, spacing, and layout tokens with automatic dark/light theming.

Features

  • OKLCH-based color system — entire palette derived from two parameters (hue and chroma)
  • Dark/light theme with automatic detection via prefers-color-scheme
  • Manual theme override via data-theme="dark" or data-theme="light" on <html>
  • 10-step surface scale, 4-level text hierarchy, accent + semantic state colors
  • Typography scale, font stacks, weights, line heights, and letter spacing
  • Spacing scale, border widths, and border radius tokens
  • Shadow and elevation tokens
  • Transition durations and easing functions
  • Named z-index layers
  • Fixed and fluid (clamp-based) container widths
  • Zero dependencies, pure CSS custom properties

Browser Compatibility

Requires oklch() support:

| Browser | Minimum version | | ------- | ---------------- | | Chrome | 111+ (Mar 2023) | | Safari | 16.4+ (Mar 2023) | | Firefox | 113+ (May 2023) |

Installation

npm install @atifc/css

Usage

HTML

<link rel="stylesheet" href="node_modules/@atifc/css/dist/root.css" />

JS / TS (Vite, Webpack)

import '@atifc/css';

CSS (PostCSS, Sass)

@import '@atifc/css';

Customisation

Override any of the theme parameters on :root after importing to reshape the entire token system:

:root {
	/* Accent color */
	--theme-accent-hue: 140; /* 0–360 — see hue table below */
	--theme-accent-chroma: 0.25; /* 0+ — 0 = gray, 0.2+ = vibrant */

	/* Dark theme base values */
	--dark-surface-base: 0.15;
	--dark-text-base-lightness: 0.9;
	--dark-accent-base-lightness: 0.65;

	/* Light theme base values */
	--light-surface-base: 0.97;
	--light-text-base-lightness: 0.18;
	--light-accent-base-lightness: 0.45;
}

Hue reference:

| Color | Hue | Notes | | ------ | --- | ----------------- | | Pink | 0 | | | Red | 10 | Needs chroma 0.2+ | | Orange | 40 | Needs chroma 0.2+ | | Yellow | 100 | Needs chroma 0.2+ | | Green | 140 | Needs chroma 0.2+ | | Blue | 220 | |

Chroma reference:

| Range | Effect | | ------- | ----------------------------- | | 0 | Gray (no color) | | 0.1 | Muted / pastel | | 0.2+ | Vibrant (recommended) | | 0.5–1.0 | Neon / bright (use sparingly) |

Tokens

All tokens are CSS custom properties available globally after import.

| Category | Variables | | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | | Surfaces | --surface-1 through --surface-10 | | Text | --text-primary, --text-secondary, --text-tertiary, --text-disabled | | Accent | --accent, --accent-hover, --accent-muted, --accent-alpha, --accent-alpha-hover | | Semantic states | --success, --warning, --error, --info (each with a --*-bg variant) | | Borders | --border-subtle, --border-default, --border-strong, --divider | | Overlays | --overlay, --overlay-light, --overlay-strong, --surface-alpha, --surface-alpha-light, --surface-alpha-strong | | Typography | --font-sans, --font-serif, --font-mono, --text-xs through --text-3xl, --font-light through --font-bold, --leading-*, --tracking-* | | Spacing | --space-px, --space-xs through --space-4xl | | Border radius | --radius-none through --radius-full | | Shadows | --shadow-none, --shadow-xs through --shadow-2xl, --shadow-inner | | Transitions | --duration-instant through --duration-slower, --ease-*, --transition, --transition-colors | | Z-index | --z-base through --z-toast | | Containers | --container-sm through --container-2xl, --container-fluid-sm through --container-fluid-2xl |

License

MIT