Tipos compartilhados
Índice breve de uniões de tema e compartilhadas exportadas de pomikit-ui.
Design
ts
type ThemeDesign = 'linear' | 'glass' | 'editorial' | 'soft' | 'playful'Veja DESIGNS e Design Kits.
Eixos de tema
ts
type ThemeRadius = 'sharp' | 'soft' | 'round'
type ThemeDensity = 'compact' | 'comfortable' | 'spacious'
type ThemeMotion = 'none' | 'normal' | 'expressive'
type ThemeElevation = 'flat' | 'soft' | 'floating'
type ThemeMode = 'light' | 'dark' | 'system'Objetos de tema
ts
type CreateThemeOptions = {
accent?: string
design?: ThemeDesign
radius?: ThemeRadius
density?: ThemeDensity
motion?: ThemeMotion
elevation?: ThemeElevation
mode?: ThemeMode
}
type PomikitTheme = {
vars: Record<string, string>
attrs: { /* data-pomi-* */ }
resolved: { /* accent, design, axes, colorScheme */ }
}Plugin / root
ts
type PomikitPluginOptions = {
theme?: CreateThemeOptions | PomikitTheme
toastDuration?: number
toastLabel?: string
overlays?: boolean
}
type PomikitRootProps = {
toastDuration?: number
toastLabel?: string
}Helpers de componentes
Uniões pequenas compartilhadas (também usadas por props de estilo escape-hatch):
ts
type PomiSize = 'sm' | 'md' | 'lg'
type PomiTone = 'primary' | 'neutral' | 'danger' | 'success'
type PomiVariant = 'solid' | 'outline' | 'ghost' | 'soft'Prefira props de intenção e Design Kits a estilizar com estas no código da app.
