UNPKG

@atlaskit/tokens

Version:

Design tokens are the single source of truth to name and store design decisions.

19 lines (18 loc) 1 kB
import type { ThemeColorModes } from './theme-color-modes'; import type { ThemeContrastModes } from './theme-config'; import type { ThemeOptionsSchema } from './theme-options-schema'; import type { ThemeIds } from './theme-ids'; /** * ThemeState: the standard representation of an app's current theme and preferences */ export interface ThemeState { light: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'light-increased-contrast' | 'dark-increased-contrast' | 'UNSAFE-test-light' | 'UNSAFE-test-dark'>; dark: Extract<ThemeIds, 'light' | 'light-future' | 'dark' | 'dark-future' | 'light-increased-contrast' | 'dark-increased-contrast' | 'UNSAFE-test-light' | 'UNSAFE-test-dark'>; colorMode: ThemeColorModes; contrastMode: ThemeContrastModes; shape: Extract<ThemeIds, 'shape'>; spacing: Extract<ThemeIds, 'spacing'>; typography: Extract<ThemeIds, 'typography'>; motion?: Extract<ThemeIds, 'motion'>; UNSAFE_themeOptions?: ThemeOptionsSchema; }