@oneqode/design-system
v0.12.0
Published
OneQode design tokens: CSS custom properties, Tailwind v4 theme, shadcn variables, and flat JSON.
Downloads
727
Readme
OneQode Design System
Centralized design tokens for all OneQode projects.
Quick Start
pnpm install
pnpm build:tokens # Generate CSS, Tailwind, shadcn, and JSON outputs
pnpm dev # Start Starlight docs siteConsuming Tokens
Any project (CSS):
<link rel="stylesheet" href="path/to/build/css/tokens.css">Tailwind projects (Astro, Nuxt):
@import "@oneqode/design-system/build/css/tailwind-theme.css";shadcn-vue projects:
@import "@oneqode/design-system/build/css/shadcn-vars.css";Build Outputs
| File | Format | Consumers |
|------|--------|-----------|
| build/css/tokens.css | CSS custom properties | All projects |
| build/css/tailwind-theme.css | Tailwind v4 @theme | Website, Frontier |
| build/css/shadcn-vars.css | HSL variables | shadcn-vue projects |
| build/json/tokens.json | Flat JSON | AI agents, scripts |
| build/css/fonts.css | @font-face rules | All projects |
Fonts: fonts.css references ../fonts/…, so vendor the stylesheet and the
build/fonts/ directory into the same parent directory. Copying fonts.css
alone will 404 every face.
Only Space Grotesk and Fira Code ship here, both SIL OFL. Saans, named by
--font-display, is a commercial Displaay face and is not redistributed through
this public package - self-host it in your own app and declare its @font-face
there.
