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

@k-universe/design-tokens

v1.5.0

Published

K-Universe design tokens — CSS variables, TypeScript token objects, Tailwind plugin, and branding primitives

Readme

@k-universe/design-tokens

K-Universe design tokens — CSS custom properties, TypeScript token objects, Tailwind CSS plugin, and React branding primitives. Install once, apply the K-Universe design system anywhere.

npm license


Install

# pnpm (recommended)
pnpm add @k-universe/design-tokens

# npm
npm install @k-universe/design-tokens

# bun
bun add @k-universe/design-tokens

Token overview

| Category | Description | | ---------- | ----------------------------------------------------------------------------- | | Colors | Monochrome foundation + --ku-primary (#0066FF) + --ku-secondary (#00CC88) | | Typography | Power Grotesk scale (hero → tiny), JetBrains Mono for code | | Spacing | 8px base grid (4px128px), 60px margin principle | | Motion | GSAP-aligned durations + cubic-bezier easings | | Layout | 60px margins, 1320px max-width, section spacing | | Radius | xs (2px) → round (9999px) | | Shadows | Elevation 1–4 + glow variants |


Usage

Option 1 — Drop-in CSS (no build step)

Import the standalone CSS file and use --ku-* variables in your stylesheets.

<!-- HTML -->
<link rel="stylesheet" href="node_modules/@k-universe/design-tokens/standalone/css" />
/* CSS/PostCSS */
@import "@k-universe/design-tokens/standalone/css";
// Vite / bundler
import "@k-universe/design-tokens/standalone/css";

Then use variables anywhere:

.card {
  background: var(--ku-surface);
  border: 1px solid var(--ku-border);
  color: var(--ku-text);
  font-family: var(--ku-font-primary);
  border-radius: var(--ku-radius-lg);
}

.button-primary {
  background: var(--ku-primary);
  color: var(--ku-white);
  transition: background var(--ku-duration-fast) var(--ku-ease-default);
}

.button-primary:hover {
  background: var(--ku-primary-hover);
}

Option 2 — TypeScript token objects

import { tokens } from "@k-universe/design-tokens";

// Colors
tokens.colors.primary; // '#0066FF'
tokens.colors.secondary; // '#00CC88'
tokens.colors.background; // '#000000'
tokens.colors.surface; // '#1A1A1A'
tokens.colors.foreground; // '#FFFFFF'

// Typography
tokens.typography.fontFamily.sans; // 'Power Grotesk, ...'
tokens.typography.fontFamily.mono; // 'JetBrains Mono, ...'
tokens.typography.scale.h1.size; // '3rem'

// Spacing
tokens.spacing[4]; // '16px'
tokens.spacing[15]; // '60px'  ← K-Universe 60px margin

// Motion
tokens.motion.duration.default; // '300ms'
tokens.motion.easing.default; // 'cubic-bezier(0.4, 0, 0.2, 1)'

Option 3 — CSS variable injection (JavaScript)

import { applyCSSVarsToDocument } from "@k-universe/design-tokens/css";

// Inject all --ku-* vars onto :root
applyCSSVarsToDocument();

// Or generate the object only
import { generateCSSVars } from "@k-universe/design-tokens/css";
const vars = generateCSSVars();
// { '--ku-primary': '#0066FF', '--ku-bg': '#000000', ... }

Option 4 — Tailwind CSS plugin

// tailwind.config.ts
import kuPlugin from "@k-universe/design-tokens/tailwind";

export default {
  content: ["./src/**/*.{ts,tsx,html}"],
  plugins: [kuPlugin],
};

This maps all tokens into Tailwind utilities:

<div class="bg-ku-surface text-ku-primary font-ku-sans">
  <p class="text-ku-body leading-ku-body tracking-ku-normal">K-Universe styled text</p>
</div>

Option 5 — React branding components

import {
  KLogoIcon,
  KLogo,
  KBotLogoIcon,
  KBotLogo,
  KLoadingGrid,
} from "@k-universe/design-tokens/branding"

// Primary brand mark (K letterform + trademark)
// viewBox: 0 0 390.6 450
<KLogoIcon size={32} color="#000000" />
<KLogoIcon size={24} color="var(--ku-primary)" />

// KLogo is an alias for KLogoIcon
<KLogo size={32} />

// Bot / agent / assistant mark
// viewBox: 0 0 720.48 720
// Use for: AI agents, assistants, TUI surfaces, k-speech, automation UI
<KBotLogoIcon size={24} color="currentColor" />
<KBotLogoIcon size={32} color="var(--ku-primary)" />

// KBotLogo is an alias for KBotLogoIcon
<KBotLogo size={24} />

// Loading animation — 4-cell grid with staggered opacity pulse
// No external dependencies (CSS animation only)
<KLoadingGrid size={48} color="var(--ku-primary)" />
<KLoadingGrid size={24} color="currentColor" />

| Component | Mark | viewBox | Default size | Use case | | --------------------------- | -------------- | ------------------- | ------------ | --------------------------------------------- | | KLogoIcon / KLogo | Primary K mark | 0 0 390.6 450 | 32px | Brand, headers, splash screens | | KBotLogoIcon / KBotLogo | Bot/agent mark | 0 0 720.48 720 | 32px | Agents, assistants, TUI, k-speech, automation | | KLoadingGrid | Animated grid | 0 0 1986.5 2024.1 | 24px | Loading states, splash screens |

Note on fonts: Power Grotesk is a commercially licensed typeface. The CSS variable --ku-font-primary references it by name with system-ui fallbacks. You need to supply the font files yourself (self-hosted or via a licensed CDN). The package ships variable definitions only — not the font binaries.


CSS variable reference

/* Surfaces */
--ku-bg              /* #000000 — page background */
--ku-surface         /* #111111 — card/panel surface */
--ku-surface-raised  /* #1A1A1A — raised elements */
--ku-surface-muted   /* #2A2A2A — muted/disabled */

/* Borders */
--ku-border          /* rgba(255,255,255,0.08) */
--ku-border-strong   /* rgba(255,255,255,0.14) */

/* Text */
--ku-text            /* #FFFFFF */
--ku-text-secondary  /* rgba(255,255,255,0.6) */
--ku-text-muted      /* rgba(255,255,255,0.35) */

/* Brand */
--ku-primary         /* #0066FF */
--ku-primary-hover   /* #0052CC */
--ku-primary-subtle  /* rgba(0,102,255,0.08) */
--ku-secondary       /* #00CC88 */
--ku-hud             /* #00FF41 */
--ku-success         /* #00DD77 */
--ku-warning         /* #FFAA00 */
--ku-error           /* #FF3333 */

/* Typography */
--ku-font-primary    /* Power Grotesk, system-ui, sans-serif */
--ku-font-mono       /* JetBrains Mono, Fira Code, monospace */

/* Spacing (60px margin principle) */
--ku-spacing-15      /* 60px — primary horizontal landmark */

/* Motion */
--ku-duration-fast    /* 200ms */
--ku-duration-default /* 300ms */
--ku-ease-default     /* cubic-bezier(0.4, 0, 0.2, 1) */

Package exports

| Import path | Contents | | ------------------------------------------ | --------------------------------------------------------------------------------- | | @k-universe/design-tokens | TypeScript tokens object + all types | | @k-universe/design-tokens/css | generateCSSVars, applyCSSVarsToDocument | | @k-universe/design-tokens/tailwind | Tailwind CSS v3/v4 plugin | | @k-universe/design-tokens/branding | KLogoIcon, KLogo, KBotLogoIcon, KBotLogo, KLoadingGrid React components | | @k-universe/design-tokens/standalone/css | Standalone CSS file (no build step) |


License

MIT © K-Universe