nocturne-tokens
v0.1.0
Published
Design tokens for the Nocturne design system: colors, typography, spacing, radii, shadows and motion as CSS variables, SCSS, JSON and typed JS.
Maintainers
Readme
nocturne-tokens
Design tokens for the Nocturne design system. The single source of truth for color, typography, spacing, radii, shadows and motion, delivered in four formats.
Install
pnpm add nocturne-tokensUse
CSS custom properties (recommended, runtime-themeable):
@import "nocturne-tokens/css";
.thing { color: var(--noct-primary); border: 1px solid var(--noct-border); }Typed JavaScript / TypeScript:
import { color, font, space } from "nocturne-tokens";
color.primary; // "#fcee0a"
font.family.mono;SCSS: @use "nocturne-tokens/scss";
Raw JSON (source of truth, for your own build pipeline):
nocturne-tokens/json.
What's inside
- Palette + semantic aliases (
--noct-bg,--noct-primary,--noct-danger, …) - Rajdhani / JetBrains Mono families, type scale, tracking, leading
- 4px spacing grid, radii (2-6px), neon glow shadows
- Motion durations/easings (with
prefers-reduced-motionhandling) - z-index and breakpoint tokens
All values live in src/tokens.json. Everything else mirrors it.
Apache-2.0.
