import { Color } from './Color'; export type TextColor = | 'text_white' | 'text_quaternary' | 'text_tertiary' | 'text_secondary' | 'text_primary' | 'text_purple' | 'text_purple_light' | 'text_blue'; export type BackgroundColor = | 'bg_primary' | 'bg_off_white' | 'bg_secondary' | 'bg_tertiary' | 'bg_quaternary' | 'bg_quinary' | 'bg_senary' | 'bg_pressed' | 'bg_enabled' | 'bg_purple' | 'bg_purple_enabled' | 'bg_purple_pressed' | 'bg_red' | 'bg_red_enabled' | 'bg_red_pressed' | 'bg_blue'; export type BorderColor = | 'border_active' | 'border_tertiary' | 'border_secondary' | 'border_quaternary' | 'border_quinary' | 'border_senary' | 'border_error' | 'border_white'; export type StateColor = | 'state_bg_error' | 'state_text_error' | 'state_bg_warning' | 'state_text_warning' | 'state_bg_success' | 'state_text_success' | 'state_bg_information' | 'state_text_information'; export type OverlayColor = | 'overlay_black_100' | 'overlay_black_90' | 'overlay_black_80' | 'overlay_black_50' | 'overlay_black_0' | 'overlay_white_100' | 'overlay_white_0'; export type SemanticColorName = TextColor | BackgroundColor | BorderColor | StateColor | OverlayColor; export const SemanticColor: Record = { // Text Color text_white: Color.white, text_quaternary: Color.blueGray200, text_tertiary: Color.blueGray300, text_secondary: Color.blueGray500, text_primary: Color.blueGray900, text_purple: Color.purple500, text_purple_light: Color.purple200, text_blue: Color.blue500, // BackGround Color bg_primary: Color.white, bg_off_white: Color.blueGray10, bg_secondary: Color.blueGray50, bg_tertiary: Color.blueGray100, bg_quaternary: Color.blueGray200, bg_quinary: Color.blueGray300, bg_senary: Color.blueGray400, bg_pressed: Color.blueGray700, bg_enabled: Color.blueGray800, bg_purple: Color.purple50, bg_purple_enabled: Color.purple500, bg_purple_pressed: Color.purple700, bg_red: Color.red50, bg_red_enabled: Color.red500, bg_red_pressed: Color.red700, bg_blue: Color.blue10, // Border Color border_active: Color.purple500, border_tertiary: Color.blueGray50, border_secondary: Color.blueGray100, border_quaternary: Color.blueGray200, border_quinary: Color.blueGray900, border_senary: Color.black10, border_error: Color.red500, border_white: Color.white, // Overlay Color overlay_black_100: Color.black900, overlay_black_90: Color.black800, overlay_black_80: Color.black700, overlay_black_50: Color.black400, overlay_black_0: Color.black0, overlay_white_100: Color.white900, overlay_white_0: Color.white0, // State Color state_bg_error: Color.red50, state_text_error: Color.red500, state_bg_warning: Color.yellow50, state_text_warning: Color.yellow500, state_bg_success: Color.green50, state_text_success: Color.green500, state_bg_information: Color.blue50, state_text_information: Color.blue500, };