@undernet/theme-tokens
v0.1.0
Published
Design tokens (colors, typography, spacing) for Undernet clients.
Readme
@undernet/theme-tokens
Design tokens (colors, typography, spacing, motion) and theme families (default, midnight, forest, plum, ember, crimson) for Undernet clients.
Pure data plus a buildTheme() helper. No platform runtime dependencies;
the only type-level import is react-native-reanimated for WithSpringConfig,
declared as an optional peer.
Install
bun add @undernet/theme-tokens
# or: npm i @undernet/theme-tokensPublic API
- Constants:
SPACING,RADIUS,TYPE,MOTION,THEME_REGISTRY,THEME_ORDER - Functions:
buildTheme(name, scheme),isThemeName(v),getThemeFamily(name) - Per-family exports:
defaultTheme,midnightTheme,forestTheme,plumTheme,emberTheme,crimsonTheme, pluslightanddark - Types:
Theme,ThemeName,ThemeFamily,Palette,Spacing,Radius,TypeStyle,Typography,Motion
License
MIT — see LICENSE.
Repository
https://github.com/empus/undernet-mobile
