Token Categories
Neo organizes design tokens into six main categories:Color Tokens
Contains all color definitions organized by purpose and context.
fgBrandfgOnBrandfgPrimaryfgSecondaryfgOnContrast
bgBrandbgBrandHoverbgPrimarybgSecondarybgSecondaryHoverbgContrast
borderPrimaryborderSecondaryborderTertiary
success/onSuccesswarning/onWarningdanger/dangerHover/dangerPressed/onDanger
buttonBg/buttonBgHover/buttonBgPressedbuttonFg
Spacing Tokens
Consistent spacing values for layouts and component padding.
extraSmallsmallmediumlargeextraLarge
Border Radius Tokens
Corner radius values that maintain visual consistency.
nonesmallmediumlargefull
Shadow Tokens
Elevation and depth definitions for components and overlays.
smallmedium
Typography Tokens
Complete type scale for clear information hierarchy.
header1header2header3header4body1body2labelbuttoncode
Duration Tokens
Animation durations for consistent timing and smooth interactions.
pressedhoversidebartoggleSwitchdropdown
Using Design Tokens
Access design tokens through theneoCurrentThemeProvider:
Benefits
- Consistency: Ensures visual harmony across your application
- Maintainability: Update designs by changing token values, not individual components
- Scalability: Easy to maintain consistent design at any application size
- Flexibility: Switch between light/dark themes or completely different brand themes
- Developer Experience: Clear, semantic names make code more readable

