@ajustinjames/hardline-tokens
v0.0.3
Published
Design tokens for the Hardline industrial-material design system.
Readme
@ajustinjames/hardline-tokens
Design tokens for the Hardline industrial-material design system.
This package ships compiled CSS custom properties generated from the Hardline token source. Use it before loading @ajustinjames/hardline-components so components can read the --hl-* variables.
Live Storybook: https://ajustinjames.github.io/ajj-design/
Install
npm install @ajustinjames/hardline-tokensUsage
Import the default light token layer:
import '@ajustinjames/hardline-tokens/css';Import the dark token overrides when your app supports the dark theme:
import '@ajustinjames/hardline-tokens/css-dark';The package also exports the light CSS file from the package root:
import '@ajustinjames/hardline-tokens';Exports
@ajustinjames/hardline-tokens- light theme CSS@ajustinjames/hardline-tokens/css- light theme CSS@ajustinjames/hardline-tokens/css-dark- dark theme CSS overrides@ajustinjames/hardline-tokens/theme- Tailwind@themetoken output
Development
pnpm --filter @ajustinjames/hardline-tokens buildToken source lives in tokens.json; generated files are written to dist/web/.
