@bilursag/solidui-tokens
v0.2.1
Published
SolidUI design tokens: themes, a WCAG-checked brand palette, Tailwind v4 CSS and a NativeWind preset.
Maintainers
Readme
@bilursag/solidui-tokens
Design tokens for SolidUI: colors, type scale, radii, control heights, shadows and motion, plus:
createTheme({ brand })— derives the brand palette for light and dark from one color.checkContrast(theme)— every text/background pair with its WCAG ratio.themeToCss(theme)/nativeVars(theme, scheme)— output for the web and for NativeWind.@bilursag/solidui-tokens/web.css— Tailwind v4 variables,@themeand utilities (used by@bilursag/solidui-react).@bilursag/solidui-tokens/tailwind-preset— Tailwind v3 preset (used by@bilursag/solidui-native).
Theme CLI
npx @bilursag/solidui-tokens theme --brand "#0a7d5a" --out solidui-theme.css
npx @bilursag/solidui-tokens theme --helpExits with an error if any pair fails WCAG AA (pass --force to write it anyway).
MIT — see LICENSE.
