UNPKG

@aesthetic/system

Version:

Web based building blocks for the Aesthetic design system.

68 lines (56 loc) 1.3 kB
import { BorderSize, BreakpointSize, ColorShade, CommonSize, ElevationType, HeadingLevel, HeadingSize, PaletteType, ShadowSize, SpacingSize, TextSize, } from './types'; export const BORDER_SIZES: BorderSize[] = ['sm', 'df', 'lg']; export const BREAKPOINT_SIZES: BreakpointSize[] = ['xs', 'sm', 'md', 'lg', 'xl']; export const DEPTHS: Record<ElevationType, number> = { content: 100, // xs navigation: 1000, // sm sheet: 1100, // lg overlay: 1200, // lg modal: 1300, // xl toast: 1400, // md dialog: 1500, // md menu: 1600, // md tooltip: 1700, // sm }; export const SIZES: CommonSize[] = ['sm', 'df', 'lg']; export const HEADING_LEVELS: HeadingLevel[] = [1, 2, 3, 4, 5, 6]; export const HEADING_SIZES: HeadingSize[] = ['l1', 'l2', 'l3', 'l4', 'l5', 'l6']; export const PALETTE_TYPES: PaletteType[] = [ 'brand', 'primary', 'secondary', 'tertiary', 'neutral', 'muted', 'danger', 'warning', 'negative', 'positive', ]; export const SHADE_RANGES: ColorShade[] = [ '00', '10', '20', '30', '40', '50', '60', '70', '80', '90', ]; export const SHADOW_SIZES: ShadowSize[] = ['xs', 'sm', 'md', 'lg', 'xl']; export const SPACING_SIZES: SpacingSize[] = ['xxs', 'xs', 'sm', 'df', 'md', 'lg', 'xl', 'xxl']; export const TEXT_SIZES: TextSize[] = ['sm', 'df', 'lg'];