|
|
|
@ -1,12 +1,10 @@ |
|
|
|
|
// @flow
|
|
|
|
|
|
|
|
|
|
// Default color palette
|
|
|
|
|
export const colors = { |
|
|
|
|
error03: '#7A141F', |
|
|
|
|
error04: '#A21B29', |
|
|
|
|
error05: '#CB2233', |
|
|
|
|
error06: '#E04757', |
|
|
|
|
error08: '#EAA7AD', |
|
|
|
|
error06: '#D83848', |
|
|
|
|
error08: '#F24D5F', |
|
|
|
|
|
|
|
|
|
primary01: '#00112D', |
|
|
|
|
primary02: '#00225A', |
|
|
|
@ -14,14 +12,10 @@ export const colors = { |
|
|
|
|
primary04: '#0045B3', |
|
|
|
|
primary05: '#0056E0', |
|
|
|
|
primary06: '#246FE5', |
|
|
|
|
primary07: '#669AEC', |
|
|
|
|
primary07: '#4687ED', |
|
|
|
|
primary08: '#99BBF3', |
|
|
|
|
primary09: '#CCDDF9', |
|
|
|
|
primary10: '#17A0DB', |
|
|
|
|
primary11: '#1081B2', |
|
|
|
|
primary12: '#B8C7E0', |
|
|
|
|
|
|
|
|
|
surface00: '#111111', |
|
|
|
|
surface01: '#040404', |
|
|
|
|
surface02: '#141414', |
|
|
|
|
surface03: '#292929', |
|
|
|
@ -33,21 +27,12 @@ export const colors = { |
|
|
|
|
surface09: '#C2C2C2', |
|
|
|
|
surface10: '#E0E0E0', |
|
|
|
|
surface11: '#FFF', |
|
|
|
|
surface12: '#AAAAAA', |
|
|
|
|
surface13: '#495258', |
|
|
|
|
surface14: '#555555', |
|
|
|
|
surface15: '#474747', |
|
|
|
|
surface16: '#131519', |
|
|
|
|
surface17: '#161618', |
|
|
|
|
|
|
|
|
|
success04: '#189B55', |
|
|
|
|
success05: '#1EC26A', |
|
|
|
|
|
|
|
|
|
warning05: '#F8AE1A', |
|
|
|
|
warning06: '#FFD600', |
|
|
|
|
warning07: '#FFD740', |
|
|
|
|
|
|
|
|
|
disabled01: '#00000040', |
|
|
|
|
|
|
|
|
|
support01: '#FF9B42', |
|
|
|
|
support02: '#F96E57', |
|
|
|
@ -57,250 +42,173 @@ export const colors = { |
|
|
|
|
support06: '#6A50D3', |
|
|
|
|
support07: '#4380E2', |
|
|
|
|
support08: '#00A8B3', |
|
|
|
|
support09: '#2AA076' |
|
|
|
|
support09: '#2AA076', |
|
|
|
|
|
|
|
|
|
// The following tokens are not in the Design System and they should be removed
|
|
|
|
|
// after we replace them in the components.
|
|
|
|
|
primary10: '#17A0DB', |
|
|
|
|
primary11: '#1081B2', |
|
|
|
|
primary12: '#B8C7E0', |
|
|
|
|
surface00: '#111111', |
|
|
|
|
surface12: '#AAAAAA', |
|
|
|
|
surface13: '#495258', |
|
|
|
|
surface14: '#555555', |
|
|
|
|
surface15: '#474747', |
|
|
|
|
surface16: '#131519', |
|
|
|
|
surface17: '#161618', |
|
|
|
|
warning07: '#FFD740', |
|
|
|
|
disabled01: '#00000040' |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// Mapping between the token used and the color
|
|
|
|
|
export const colorMap = { |
|
|
|
|
// ----- Surfaces -----
|
|
|
|
|
|
|
|
|
|
// Default page background
|
|
|
|
|
uiBackground: 'surface01', |
|
|
|
|
|
|
|
|
|
// Container background
|
|
|
|
|
ui00: 'surface00', |
|
|
|
|
// Container backgrounds
|
|
|
|
|
ui01: 'surface02', |
|
|
|
|
ui02: 'surface03', |
|
|
|
|
ui03: 'surface04', |
|
|
|
|
ui04: 'surface05', |
|
|
|
|
ui05: 'surface06', |
|
|
|
|
ui12: 'surface11', |
|
|
|
|
ui13: 'surface14', |
|
|
|
|
ui14: 'surface15', |
|
|
|
|
ui15: 'surface12', |
|
|
|
|
ui16: 'surface16', |
|
|
|
|
|
|
|
|
|
// Primary buttons
|
|
|
|
|
action01: 'primary05', |
|
|
|
|
action04: 'primary11', |
|
|
|
|
|
|
|
|
|
// Screen header
|
|
|
|
|
screen01Header: 'primary10', |
|
|
|
|
screen02Header: 'surface17', |
|
|
|
|
|
|
|
|
|
// Status bar
|
|
|
|
|
status01Bar: 'primary11', |
|
|
|
|
|
|
|
|
|
actionDisabled: 'surface09', |
|
|
|
|
// ----- Actions -----
|
|
|
|
|
|
|
|
|
|
// Hover state for primary buttons
|
|
|
|
|
action01Hover: 'primary06', |
|
|
|
|
|
|
|
|
|
// Active state for primary buttons
|
|
|
|
|
// Primary
|
|
|
|
|
action01: 'primary06', |
|
|
|
|
action01Hover: 'primary07', |
|
|
|
|
action01Active: 'primary04', |
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
action01Focus: 'primary08', |
|
|
|
|
|
|
|
|
|
// Disabled state for primary buttons
|
|
|
|
|
action01Disabled: 'primary02', |
|
|
|
|
|
|
|
|
|
// Secondary buttons
|
|
|
|
|
// Secondary
|
|
|
|
|
action02: 'surface10', |
|
|
|
|
action02Hover: 'surface11', |
|
|
|
|
action02Active: 'surface09', |
|
|
|
|
|
|
|
|
|
// Hover state for secondary buttons
|
|
|
|
|
action02Hover: 'surface05', |
|
|
|
|
|
|
|
|
|
// Active state for secondary buttons
|
|
|
|
|
action02Active: 'surface03', |
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
action02Focus: 'surface07', |
|
|
|
|
|
|
|
|
|
// Disabled state for secondary buttons
|
|
|
|
|
action02Disabled: 'surface02', |
|
|
|
|
// Destructive
|
|
|
|
|
actionDanger: 'error05', |
|
|
|
|
actionDangerHover: 'error06', |
|
|
|
|
actionDangerActive: 'error04', |
|
|
|
|
|
|
|
|
|
// Tertiary buttons
|
|
|
|
|
// Tertiary
|
|
|
|
|
action03: 'transparent', |
|
|
|
|
|
|
|
|
|
// Hover state for tertiary buttons
|
|
|
|
|
action03Hover: 'surface05', |
|
|
|
|
|
|
|
|
|
// Active state for tertiary buttons
|
|
|
|
|
action03Hover: 'surface04', |
|
|
|
|
action03Active: 'surface03', |
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
action03Focus: 'surface07', |
|
|
|
|
|
|
|
|
|
// Disabled state for tertiary buttons
|
|
|
|
|
action03Disabled: 'transparent', |
|
|
|
|
|
|
|
|
|
// Danger button background
|
|
|
|
|
actionDanger: 'error05', |
|
|
|
|
|
|
|
|
|
// Hover state for danger buttons
|
|
|
|
|
actionDangerHover: 'error06', |
|
|
|
|
|
|
|
|
|
// Active state for danger buttons
|
|
|
|
|
actionDangerActive: 'error04', |
|
|
|
|
// Disabled
|
|
|
|
|
disabled01: 'surface09', |
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
actionDangerFocus: 'error08', |
|
|
|
|
// Focus
|
|
|
|
|
focus01: 'primary07', |
|
|
|
|
|
|
|
|
|
// Disabled state for danger buttons
|
|
|
|
|
actionDangerDisabled: 'error03', |
|
|
|
|
// ----- Links -----
|
|
|
|
|
|
|
|
|
|
// Underlay color for buttons
|
|
|
|
|
underlay01: 'surface13', |
|
|
|
|
link01: 'primary07', |
|
|
|
|
link01Hover: 'primary08', |
|
|
|
|
link01Active: 'primary06', |
|
|
|
|
|
|
|
|
|
// Bottom sheet background
|
|
|
|
|
bottomSheet: 'surface00', |
|
|
|
|
// ----- Text -----
|
|
|
|
|
|
|
|
|
|
// Primary text – default color for body copy & headers
|
|
|
|
|
// Primary
|
|
|
|
|
text01: 'surface11', |
|
|
|
|
|
|
|
|
|
// Secondary text with medium contrast
|
|
|
|
|
text02: 'surface01', |
|
|
|
|
// Secondary
|
|
|
|
|
text02: 'surface09', |
|
|
|
|
|
|
|
|
|
// Tertiary text with low contrast – placeholders, disabled actions, label for disabled buttons
|
|
|
|
|
// Tertiary
|
|
|
|
|
text03: 'surface07', |
|
|
|
|
|
|
|
|
|
// Text for bottom sheet items
|
|
|
|
|
text04: 'surface12', |
|
|
|
|
// High-contrast
|
|
|
|
|
text04: 'surface01', |
|
|
|
|
|
|
|
|
|
// Text for drawer menu displayed name
|
|
|
|
|
text05: 'surface06', |
|
|
|
|
// Error
|
|
|
|
|
textError: 'error08', |
|
|
|
|
|
|
|
|
|
// Text for saved input values
|
|
|
|
|
text06: 'surface03', |
|
|
|
|
|
|
|
|
|
// Text info
|
|
|
|
|
text07Info: 'surface02', |
|
|
|
|
// ----- Icons -----
|
|
|
|
|
|
|
|
|
|
// error messages
|
|
|
|
|
textError: 'error06', |
|
|
|
|
|
|
|
|
|
// Primary color for icons
|
|
|
|
|
// Primary
|
|
|
|
|
icon01: 'surface11', |
|
|
|
|
|
|
|
|
|
// Secondary color for input fields
|
|
|
|
|
icon02: 'surface01', |
|
|
|
|
// Secondary
|
|
|
|
|
icon02: 'surface09', |
|
|
|
|
|
|
|
|
|
// Tertiary color for disabled actions
|
|
|
|
|
// Tertiary
|
|
|
|
|
icon03: 'surface07', |
|
|
|
|
|
|
|
|
|
// Quaternary color for disabled actions
|
|
|
|
|
icon04: 'surface14', |
|
|
|
|
|
|
|
|
|
// Quinary color for disabled actions
|
|
|
|
|
icon05: 'surface04', |
|
|
|
|
// High-contrast
|
|
|
|
|
icon04: 'surface01', |
|
|
|
|
|
|
|
|
|
// Error message
|
|
|
|
|
// Error
|
|
|
|
|
iconError: 'error06', |
|
|
|
|
|
|
|
|
|
// Forms
|
|
|
|
|
// Default background for input fields
|
|
|
|
|
field01: 'surface01', |
|
|
|
|
// ----- Forms -----
|
|
|
|
|
|
|
|
|
|
// Hover background for input fields
|
|
|
|
|
field01Hover: 'surface03', |
|
|
|
|
field01: 'surface04', |
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
field01Focus: 'primary05', |
|
|
|
|
|
|
|
|
|
// Disabled background for input fields
|
|
|
|
|
field01Disabled: 'surface05', |
|
|
|
|
|
|
|
|
|
// Background for high-contrast input fields
|
|
|
|
|
field02: 'surface11', |
|
|
|
|
// ----- Feedback -----
|
|
|
|
|
|
|
|
|
|
// Color for the section divider
|
|
|
|
|
dividerColor: 'surface12', |
|
|
|
|
|
|
|
|
|
// Color for indicator
|
|
|
|
|
indicatorColor: 'surface12', |
|
|
|
|
// Success
|
|
|
|
|
success01: 'success05', |
|
|
|
|
success02: 'success04', |
|
|
|
|
|
|
|
|
|
// Background for high-contrast input fields on hover
|
|
|
|
|
field02Hover: 'primary09', |
|
|
|
|
// Warning
|
|
|
|
|
warning01: 'warning05', |
|
|
|
|
warning02: 'warning06', |
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
field02Focus: 'primary05', |
|
|
|
|
// ----- Support -----
|
|
|
|
|
|
|
|
|
|
// Disabled background for high-contrast input fields
|
|
|
|
|
field02Disabled: 'surface06', |
|
|
|
|
support01: 'support01', |
|
|
|
|
support02: 'support02', |
|
|
|
|
support03: 'support03', |
|
|
|
|
support04: 'support04', |
|
|
|
|
support05: 'support05', |
|
|
|
|
support06: 'support06', |
|
|
|
|
support07: 'support07', |
|
|
|
|
support08: 'support08', |
|
|
|
|
support09: 'support09', |
|
|
|
|
|
|
|
|
|
// Background for section header
|
|
|
|
|
// The following mappings are not in the Design System and they should be removed
|
|
|
|
|
// after we replace them in the components.
|
|
|
|
|
ui00: 'surface00', |
|
|
|
|
ui12: 'surface11', |
|
|
|
|
ui13: 'surface14', |
|
|
|
|
ui14: 'surface15', |
|
|
|
|
ui15: 'surface12', |
|
|
|
|
ui16: 'surface16', |
|
|
|
|
action04: 'primary11', |
|
|
|
|
action03Focus: 'surface07', |
|
|
|
|
action03Disabled: 'transparent', |
|
|
|
|
actionDisabled: 'surface09', |
|
|
|
|
icon05: 'surface04', |
|
|
|
|
text05: 'surface06', |
|
|
|
|
text06: 'surface03', |
|
|
|
|
text07Info: 'surface02', |
|
|
|
|
screen01Header: 'primary10', |
|
|
|
|
screen02Header: 'surface17', |
|
|
|
|
underlay01: 'surface13', |
|
|
|
|
bottomSheet: 'surface00', |
|
|
|
|
dividerColor: 'surface12', |
|
|
|
|
indicatorColor: 'surface12', |
|
|
|
|
section01: 'surface10', |
|
|
|
|
|
|
|
|
|
// Active color for section header
|
|
|
|
|
section01Active: 'primary04', |
|
|
|
|
|
|
|
|
|
// Inactive color for section header
|
|
|
|
|
section01Inactive: 'surface01', |
|
|
|
|
|
|
|
|
|
// Borders
|
|
|
|
|
// Border for the input fields in hover state
|
|
|
|
|
border01: 'surface08', |
|
|
|
|
|
|
|
|
|
// Border for the input fields
|
|
|
|
|
border02: 'surface06', |
|
|
|
|
|
|
|
|
|
// Line separators
|
|
|
|
|
border03: 'surface04', |
|
|
|
|
border04: 'primary12', |
|
|
|
|
border05: 'surface07', |
|
|
|
|
|
|
|
|
|
// Color for error border & message
|
|
|
|
|
borderError: 'error06', |
|
|
|
|
|
|
|
|
|
// Links
|
|
|
|
|
// Default color for links
|
|
|
|
|
link01: 'primary07', |
|
|
|
|
|
|
|
|
|
// Color for links in the hover state
|
|
|
|
|
link01Hover: 'primary08', |
|
|
|
|
|
|
|
|
|
// Color for links in the active state
|
|
|
|
|
link01Active: 'primary06', |
|
|
|
|
|
|
|
|
|
// Support
|
|
|
|
|
// Color for positive messages applied to icons & borders
|
|
|
|
|
success01: 'success05', |
|
|
|
|
|
|
|
|
|
// Color for positive messages applied to backgrounds
|
|
|
|
|
success02: 'success05', |
|
|
|
|
|
|
|
|
|
// Color for warning messages applied to icons, borders & backgrounds
|
|
|
|
|
warning01: 'warning05', |
|
|
|
|
|
|
|
|
|
// Color for indicating a raised hand
|
|
|
|
|
warning02: 'warning06', |
|
|
|
|
|
|
|
|
|
// Color for indicating recording info
|
|
|
|
|
warning03: 'warning07', |
|
|
|
|
|
|
|
|
|
// Color for disabled tab
|
|
|
|
|
tab01Disabled: 'disabled01', |
|
|
|
|
|
|
|
|
|
// Color for enabled switch
|
|
|
|
|
switch01Enabled: 'success04', |
|
|
|
|
|
|
|
|
|
// Color for disabled switch
|
|
|
|
|
switch01Disabled: 'surface06', |
|
|
|
|
|
|
|
|
|
// Color for disabled video switch
|
|
|
|
|
video01Disabled: 'disabled01', |
|
|
|
|
|
|
|
|
|
// Backgrounds for avatars
|
|
|
|
|
support01: 'support01', |
|
|
|
|
support02: 'support02', |
|
|
|
|
support03: 'support03', |
|
|
|
|
support04: 'support04', |
|
|
|
|
support05: 'support05', |
|
|
|
|
support06: 'support06', |
|
|
|
|
support08: 'support08', |
|
|
|
|
support09: 'support09', |
|
|
|
|
|
|
|
|
|
// Used for avatars and raise hand badge
|
|
|
|
|
support07: 'support07' |
|
|
|
|
field01Hover: 'surface03', |
|
|
|
|
field01Focus: 'primary05', |
|
|
|
|
field01Disabled: 'surface05', |
|
|
|
|
field02: 'surface11', |
|
|
|
|
field02Hover: 'primary09', |
|
|
|
|
field02Focus: 'primary05', |
|
|
|
|
field02Disabled: 'surface06' |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|