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

@mkatogui/uds-tokens

v0.2.1

Published

496 W3C DTCG design tokens from Universal Design System — CSS, JS, TypeScript, and JSON exports

Readme

@mkatogui/uds-tokens

496 W3C DTCG design tokens from the Universal Design System -- CSS custom properties, JavaScript/TypeScript objects, and flat JSON.

Includes 9 structural palettes (minimal-saas, ai-futuristic, gradient-startup, corporate, apple-minimal, illustration, dashboard, bold-lifestyle, minimal-corporate) with light and dark mode support.

Install

npm install @mkatogui/uds-tokens

Usage

CSS Custom Properties

Import the CSS file to get all tokens as custom properties on :root, plus palette overrides via [data-theme] selectors.

/* In your CSS or PostCSS entry */
@import '@mkatogui/uds-tokens/css';
<!-- Apply a palette -->
<body data-theme="corporate">
  <h1 style="color: var(--color-semantic-brand-primary)">Hello</h1>
</body>

JavaScript / TypeScript

Import the token object for type-safe access. Each leaf value is a var() reference with a fallback to the resolved default.

// ESM
import { tokens } from '@mkatogui/uds-tokens';

// CommonJS
const { tokens } = require('@mkatogui/uds-tokens');
import { tokens, type Tokens } from '@mkatogui/uds-tokens';

// Autocomplete and type checking
const brand = tokens.color.semantic.brand.primary;
// => "var(--color-semantic-brand-primary, #2563EB)"

const gap = tokens.spacing['4'];
// => "var(--spacing-4, 16px)"

JSON

Import the flat JSON for tooling integrations (Style Dictionary, Figma plugins, etc.).

import tokensJSON from '@mkatogui/uds-tokens/json';

Token Categories

| Category | Prefix | Examples | |-------------|---------------------|------------------------------------| | Color | --color-* | --color-primitive-blue-500, --color-semantic-brand-primary | | Spacing | --spacing-* | --spacing-1 (4px) through --spacing-32 (128px) | | Typography | --font-size-* | --font-size-body-md, --font-size-display-xl | | Font Family | --font-family-* | --font-family-sans, --font-family-mono | | Shadow | --shadow-* | --shadow-sm, --shadow-lg | | Radius | --radius-* | --radius-sm, --radius-full | | Motion | --motion-* | --motion-duration-fast, --motion-easing-default | | Z-Index | --zIndex-* | --zIndex-modal, --zIndex-tooltip | | Layout | --layout-* | --layout-container-xl, --layout-sidebar-default | | Component | --component-* | --component-avatar-md, --component-toast-max_width |

Palettes

Apply any palette with the data-theme attribute. Each palette overrides color, radius, shadow, and display font tokens.

<div data-theme="ai-futuristic">...</div>
<div data-theme="corporate">...</div>
<div data-theme="gradient-startup">...</div>

For dark mode, add the .dark class:

<div data-theme="corporate" class="dark">...</div>

Build from Source

cd packages/tokens
npm run build

This reads ../../tokens/design-tokens.json, resolves all token references, and outputs the dist/ artifacts.

License

MIT