@mgoodfellow/park-ui-panda-preset
Version:
Panda CSS Preset for Park UI
50 lines (44 loc) • 931 B
text/typescript
import type { SemanticTokens, Tokens } from '@pandacss/dev'
export interface ColorPalette {
name: string
tokens: Tokens['colors']
semanticTokens: SemanticTokens['colors']
}
export interface PresetOptions {
accentColor: ColorPalette
grayColor: ColorPalette
radius: Radius
}
export type AccentColor = (typeof accentColors)[number]
export const accentColors = [
'neutral',
'tomato',
'red',
'ruby',
'crimson',
'pink',
'plum',
'purple',
'violet',
'iris',
'indigo',
'blue',
'cyan',
'teal',
'jade',
'green',
'grass',
'bronze',
'gold',
'brown',
'orange',
'amber',
'yellow',
'lime',
'mint',
'sky',
] as const
export type GrayColor = (typeof grayColors)[number]
export const grayColors = ['neutral', 'mauve', 'olive', 'sage', 'sand', 'slate'] as const
export type Radius = (typeof radii)[number]
export const radii = ['none', 'xs', 'sm', 'md', 'lg', 'xl', '2xl'] as const