@advui/theme
v0.12.0
Published
Design tokens, color presets and the Tamagui config factory for Adv UI.
Downloads
1,539
Readme
@advui/theme
Tokens, palettes and theme generation for Adv UI.
import { createUniversalConfig } from '@advui/theme'
export const config = createUniversalConfig({
preset: 'violet',
colors: { primary: '#0ea5e9' },
radius: 'lg',
fontScale: 'default',
})- 10 presets; any CSS color becomes a light and dark 12-step scale (OKLCH)
- about 80 semantic theme values with WCAG AA contrast enforced
- space, size, radius and zIndex tokens; fonts; media queries; shadows; animations (CSS on web, React Native Animated on native)
createThemeColorsfor runtime theme swaps with Tamagui'supdateTheme@advui/theme/material: Material 3 colors from one seed color (Google's material-color-utilities), shapes, fonts and the Android press ripple:createUniversalConfig(material({ seed: '#6750A4' }))
See THEMING.md. License: MIT. Color scales are based on
Radix Colors (MIT); Material color generation uses
@material/material-color-utilities (Apache-2.0).
