@nightstem/tokens
v1.0.0
Published
Design tokens for the Nightstem design system
Downloads
687
Readme
@nightstem/tokens
Design tokens for the Nightstem design system — colors, typography, spacing, and layout utilities built on Tailwind CSS v4.
Requirements
- Tailwind CSS v4 (
tailwindcss ^4.2.0) - A Tailwind v4 build plugin in your project (
@tailwindcss/postcssor@tailwindcss/vite)
Install
pnpm add @nightstem/tokens
pnpm add -D tailwindcssUsage
Import theme.css once — it bundles the Tailwind base and all Nightstem tokens:
@import '@nightstem/tokens/theme.css';Optional: Inter variable font
@import '@nightstem/tokens/fonts.css';The fonts entry pulls @fontsource-variable/inter (opsz + italic axis). Skip it if you manage fonts separately.
What's included
| Token group | Examples |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| Colors | --color-primary-{100..900}, --color-secondary-{100..900}, --color-dark, --color-light |
| Typography | --text-{xs,base,lg,xl,2xl,3xl,4xl,5xl} + per-size line-height, letter-spacing, font-weight |
| Measures | --measure-{body,heading,tight,loose} |
| Spacing | --spacing-8xl |
| Utilities | text-hint, text-caption, text-body, heading-{sm,md,lg,xl,xxl,display}, screen-container, screen-section, measure-*, max-square-size |
Notes
--font-geist-sans/--font-geist-monoCSS vars are produced by Next.jsnext/font. When they aren't set, the font stack falls back to Inter / system fonts.--navbar-heightdefaults to48pxinside thescreen-sectionutility. Override it in your app's CSS if needed.
