@gapra/vyre-tokens
v0.3.0
Published
W3C DTCG-compliant design tokens for Vyre. OKLCH-native, framework-agnostic.
Maintainers
Readme
@gapra/vyre-tokens
W3C DTCG 2025.10-compliant design tokens. OKLCH-native. Framework-agnostic.
Install
pnpm add @gapra/vyre-tokensUse
Plain CSS / any framework
@import "@gapra/vyre-tokens/css";
.button {
background: var(--vyre-color-interactive-primary);
color: var(--vyre-color-interactive-primary-foreground);
padding: var(--vyre-space-2) var(--vyre-space-4);
border-radius: var(--vyre-radius-md);
}Tailwind v4
@import "tailwindcss";
@import "@gapra/vyre-tokens/tailwind";<button class="bg-primary text-primary-foreground px-4 py-2 rounded-md">
Click me
</button>JS / TS
import { tokens } from '@gapra/vyre-tokens';
const primary = tokens.color.interactive.primary;Token tiers
- Core (
src/core/) — primitive seed values: OKLCH colors, base spacing units, type scale ratios - Semantic (
src/semantic/) — 12-step Radix-style scales per hue, derived from core - Alias (
src/alias/) — role-based tokens:surface,content,interactive,status - Themes (
src/themes/) — light, dark, high-contrast, colorblind-safe modifiers - Palettes (
src/palettes/) — 150+ named palettes (aurora, nordic, brutalist, …)
Build
pnpm buildOutputs to dist/:
dist/css/tokens.css— CSS custom propertiesdist/tailwind/theme.css— Tailwind v4@themeblocksdist/scss/_tokens.scss— Sass map + variablesdist/js/tokens.js+tokens.d.ts— typed JS object
License
MIT © gapra
