@hypoth-ui/tokens
v1.0.2
Published
Design tokens for the hypoth-ui design system — CSS custom properties, TypeScript constants
Maintainers
Readme
@hypoth-ui/tokens
DTCG-compliant design tokens for the hypoth-ui design system. Provides CSS custom properties, JSON, and TypeScript constants for colors, spacing, typography, and more.
Installation
npm install @hypoth-ui/tokensUsage
CSS Custom Properties
@import '@hypoth-ui/tokens/css';
.my-element {
color: var(--ds-color-primary);
padding: var(--ds-spacing-md);
font-size: var(--ds-font-size-base);
}TypeScript Constants
import { tokens } from '@hypoth-ui/tokens';
console.log(tokens.color.primary); // resolved token valueJSON
import tokenData from '@hypoth-ui/tokens/json';Documentation
See the main README for full documentation and architecture overview.
License
MIT
