2021-04-29 09:24:39 +00:00
|
|
|
|
// @flow
|
|
|
|
|
|
2021-05-11 08:01:45 +00:00
|
|
|
|
// Default color palette
|
2021-04-29 09:24:39 +00:00
|
|
|
|
export const colors = {
|
|
|
|
|
error03: '#7A141F',
|
|
|
|
|
error04: '#A21B29',
|
|
|
|
|
error05: '#CB2233',
|
|
|
|
|
error06: '#E04757',
|
|
|
|
|
error08: '#EAA7AD',
|
|
|
|
|
|
|
|
|
|
primary01: '#00112D',
|
|
|
|
|
primary02: '#00225A',
|
|
|
|
|
primary03: '#003486',
|
|
|
|
|
primary04: '#0045B3',
|
|
|
|
|
primary05: '#0056E0',
|
|
|
|
|
primary06: '#246FE5',
|
|
|
|
|
primary07: '#669AEC',
|
|
|
|
|
primary08: '#99BBF3',
|
|
|
|
|
primary09: '#CCDDF9',
|
2021-10-20 19:29:21 +00:00
|
|
|
|
primary10: '#17A0DB',
|
2021-11-11 14:32:56 +00:00
|
|
|
|
primary11: '#1081B2',
|
2021-12-10 16:23:27 +00:00
|
|
|
|
primary12: '#B8C7E0',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
|
2021-07-30 09:46:49 +00:00
|
|
|
|
surface00: '#111111',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
surface01: '#040404',
|
|
|
|
|
surface02: '#141414',
|
|
|
|
|
surface03: '#292929',
|
|
|
|
|
surface04: '#3D3D3D',
|
|
|
|
|
surface05: '#525252',
|
|
|
|
|
surface06: '#666',
|
|
|
|
|
surface07: '#858585',
|
|
|
|
|
surface08: '#A3A3A3',
|
|
|
|
|
surface09: '#C2C2C2',
|
|
|
|
|
surface10: '#E0E0E0',
|
|
|
|
|
surface11: '#FFF',
|
2021-07-30 09:46:49 +00:00
|
|
|
|
surface12: '#AAAAAA',
|
2021-11-11 14:32:56 +00:00
|
|
|
|
surface13: '#495258',
|
2021-11-25 16:41:03 +00:00
|
|
|
|
surface14: '#555555',
|
2022-02-17 14:51:00 +00:00
|
|
|
|
surface15: '#474747',
|
2022-02-23 13:46:38 +00:00
|
|
|
|
surface16: '#131519',
|
2022-05-02 09:15:37 +00:00
|
|
|
|
surface17: '#161618',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
|
|
|
|
|
success04: '#189B55',
|
|
|
|
|
success05: '#1EC26A',
|
|
|
|
|
|
2021-05-19 10:08:30 +00:00
|
|
|
|
warning05: '#F8AE1A',
|
2021-12-17 13:05:12 +00:00
|
|
|
|
warning06: '#FFD600',
|
2022-03-08 16:08:36 +00:00
|
|
|
|
warning07: '#FFD740',
|
2021-11-17 09:35:07 +00:00
|
|
|
|
|
2021-11-17 12:54:00 +00:00
|
|
|
|
disabled01: '#00000040',
|
|
|
|
|
|
2021-11-17 09:35:07 +00:00
|
|
|
|
support01: '#FF9B42',
|
|
|
|
|
support02: '#F96E57',
|
|
|
|
|
support03: '#DF486F',
|
|
|
|
|
support04: '#B23683',
|
|
|
|
|
support05: '#73348C',
|
|
|
|
|
support06: '#6A50D3',
|
|
|
|
|
support07: '#4380E2',
|
|
|
|
|
support08: '#00A8B3',
|
2021-11-23 13:31:54 +00:00
|
|
|
|
support09: '#2AA076'
|
2021-04-29 09:24:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Mapping between the token used and the color
|
|
|
|
|
export const colorMap = {
|
|
|
|
|
// Default page background
|
|
|
|
|
uiBackground: 'surface01',
|
|
|
|
|
|
|
|
|
|
// Container background
|
2022-03-17 14:13:58 +00:00
|
|
|
|
ui00: 'surface00',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
ui01: 'surface02',
|
|
|
|
|
ui02: 'surface03',
|
|
|
|
|
ui03: 'surface04',
|
|
|
|
|
ui04: 'surface05',
|
|
|
|
|
ui05: 'surface06',
|
2021-11-11 14:32:56 +00:00
|
|
|
|
ui12: 'surface11',
|
2021-11-25 16:41:03 +00:00
|
|
|
|
ui13: 'surface14',
|
2022-02-17 14:51:00 +00:00
|
|
|
|
ui14: 'surface15',
|
|
|
|
|
ui15: 'surface12',
|
2022-02-23 13:46:38 +00:00
|
|
|
|
ui16: 'surface16',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
|
|
|
|
|
// Primary buttons
|
|
|
|
|
action01: 'primary05',
|
2021-11-11 14:32:56 +00:00
|
|
|
|
action04: 'primary11',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
|
2021-10-20 19:29:21 +00:00
|
|
|
|
// Screen header
|
|
|
|
|
screen01Header: 'primary10',
|
2022-05-02 09:15:37 +00:00
|
|
|
|
screen02Header: 'surface17',
|
2021-10-20 19:29:21 +00:00
|
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
|
// Status bar
|
|
|
|
|
status01Bar: 'primary11',
|
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
|
// Hover state for primary buttons
|
|
|
|
|
action01Hover: 'primary06',
|
|
|
|
|
|
|
|
|
|
// Active state for primary buttons
|
|
|
|
|
action01Active: 'primary04',
|
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
action01Focus: 'primary08',
|
|
|
|
|
|
|
|
|
|
// Disabled state for primary buttons
|
|
|
|
|
action01Disabled: 'primary02',
|
|
|
|
|
|
|
|
|
|
// Secondary buttons
|
|
|
|
|
action02: 'surface04',
|
|
|
|
|
|
|
|
|
|
// 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',
|
|
|
|
|
|
|
|
|
|
// Tertiary buttons
|
|
|
|
|
action03: 'transparent',
|
|
|
|
|
|
|
|
|
|
// Hover state for tertiary buttons
|
|
|
|
|
action03Hover: 'surface05',
|
|
|
|
|
|
|
|
|
|
// Active state for tertiary buttons
|
|
|
|
|
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',
|
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
actionDangerFocus: 'error08',
|
|
|
|
|
|
|
|
|
|
// Disabled state for danger buttons
|
|
|
|
|
actionDangerDisabled: 'error03',
|
|
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
|
// Underlay color for buttons
|
|
|
|
|
underlay01: 'surface13',
|
|
|
|
|
|
2021-07-30 09:46:49 +00:00
|
|
|
|
// Bottom sheet background
|
|
|
|
|
bottomSheet: 'surface00',
|
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
|
// Primary text – default color for body copy & headers
|
|
|
|
|
text01: 'surface11',
|
|
|
|
|
|
|
|
|
|
// Secondary text with medium contrast
|
|
|
|
|
text02: 'surface09',
|
|
|
|
|
|
|
|
|
|
// Tertiary text with low contrast – placeholders, disabled actions, label for disabled buttons
|
|
|
|
|
text03: 'surface07',
|
|
|
|
|
|
2021-07-30 09:46:49 +00:00
|
|
|
|
// Text for bottom sheet items
|
|
|
|
|
text04: 'surface12',
|
|
|
|
|
|
2021-11-11 14:32:56 +00:00
|
|
|
|
// Text for drawer menu displayed name
|
|
|
|
|
text05: 'surface06',
|
|
|
|
|
|
2021-12-10 16:23:27 +00:00
|
|
|
|
// Text for saved input values
|
|
|
|
|
text06: 'surface03',
|
|
|
|
|
|
2022-03-08 16:08:36 +00:00
|
|
|
|
// Text info
|
|
|
|
|
text07Info: 'surface02',
|
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
|
// error messages
|
|
|
|
|
textError: 'error06',
|
|
|
|
|
|
|
|
|
|
// Primary color for icons
|
|
|
|
|
icon01: 'surface11',
|
|
|
|
|
|
|
|
|
|
// Secondary color for input fields
|
|
|
|
|
icon02: 'surface09',
|
|
|
|
|
|
|
|
|
|
// Tertiary color for disabled actions
|
|
|
|
|
icon03: 'surface07',
|
|
|
|
|
|
2021-11-25 16:41:03 +00:00
|
|
|
|
// Quaternary color for disabled actions
|
|
|
|
|
icon04: 'surface14',
|
|
|
|
|
|
2021-11-10 17:49:53 +00:00
|
|
|
|
// Quinary color for disabled actions
|
|
|
|
|
icon05: 'surface04',
|
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
|
// Error message
|
|
|
|
|
iconError: 'error06',
|
|
|
|
|
|
|
|
|
|
// Forms
|
|
|
|
|
// Default background for input fields
|
|
|
|
|
field01: 'surface01',
|
|
|
|
|
|
|
|
|
|
// Hover background for input fields
|
|
|
|
|
field01Hover: 'surface03',
|
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
field01Focus: 'primary05',
|
|
|
|
|
|
|
|
|
|
// Disabled background for input fields
|
|
|
|
|
field01Disabled: 'surface05',
|
|
|
|
|
|
|
|
|
|
// Background for high-contrast input fields
|
|
|
|
|
field02: 'surface11',
|
|
|
|
|
|
2021-07-30 09:46:49 +00:00
|
|
|
|
// Color for the section divider
|
|
|
|
|
dividerColor: 'surface12',
|
|
|
|
|
|
2022-02-17 14:51:00 +00:00
|
|
|
|
// Color for indicator
|
|
|
|
|
indicatorColor: 'surface12',
|
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
|
// Background for high-contrast input fields on hover
|
|
|
|
|
field02Hover: 'primary09',
|
|
|
|
|
|
|
|
|
|
// Focus border color
|
|
|
|
|
field02Focus: 'primary05',
|
|
|
|
|
|
|
|
|
|
// Disabled background for high-contrast input fields
|
|
|
|
|
field02Disabled: 'surface06',
|
|
|
|
|
|
2021-05-11 08:01:45 +00:00
|
|
|
|
// Background for section header
|
|
|
|
|
section01: 'surface10',
|
|
|
|
|
|
|
|
|
|
// Active color for section header
|
|
|
|
|
section01Active: 'primary04',
|
|
|
|
|
|
|
|
|
|
// Inactive color for section header
|
|
|
|
|
section01Inactive: 'surface01',
|
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
|
// Borders
|
|
|
|
|
// Border for the input fields in hover state
|
|
|
|
|
border01: 'surface08',
|
|
|
|
|
|
|
|
|
|
// Border for the input fields
|
|
|
|
|
border02: 'surface06',
|
|
|
|
|
|
|
|
|
|
// Line separators
|
|
|
|
|
border03: 'surface04',
|
|
|
|
|
|
2021-12-10 16:23:27 +00:00
|
|
|
|
border04: 'primary12',
|
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
|
// 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',
|
|
|
|
|
|
2021-05-11 08:01:45 +00:00
|
|
|
|
// Color for positive messages applied to backgrounds
|
2021-04-29 09:24:39 +00:00
|
|
|
|
success02: 'success05',
|
|
|
|
|
|
|
|
|
|
// Color for warning messages applied to icons, borders & backgrounds
|
2021-05-19 10:08:30 +00:00
|
|
|
|
warning01: 'warning05',
|
|
|
|
|
|
|
|
|
|
// Color for indicating a raised hand
|
2021-11-11 14:32:56 +00:00
|
|
|
|
warning02: 'warning06',
|
|
|
|
|
|
2022-03-08 16:08:36 +00:00
|
|
|
|
// Color for indicating recording info
|
|
|
|
|
warning03: 'warning07',
|
|
|
|
|
|
2021-11-17 12:54:00 +00:00
|
|
|
|
// Color for disabled tab
|
|
|
|
|
tab01Disabled: 'disabled01',
|
|
|
|
|
|
2022-02-22 16:39:06 +00:00
|
|
|
|
// Color for enabled switch
|
|
|
|
|
switch01Enabled: 'success04',
|
|
|
|
|
|
|
|
|
|
// Color for disabled switch
|
|
|
|
|
switch01Disabled: 'surface06',
|
2022-02-17 14:51:00 +00:00
|
|
|
|
|
2021-11-17 12:54:00 +00:00
|
|
|
|
// Color for disabled video switch
|
|
|
|
|
video01Disabled: 'disabled01',
|
|
|
|
|
|
2021-11-17 09:35:07 +00:00
|
|
|
|
// 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'
|
2021-04-29 09:24:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const font = {
|
2021-05-19 10:08:30 +00:00
|
|
|
|
weightRegular: '400',
|
|
|
|
|
weightSemiBold: '600'
|
2021-04-29 09:24:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const shape = {
|
2021-05-19 10:08:30 +00:00
|
|
|
|
borderRadius: 6,
|
|
|
|
|
boxShadow: 'inset 0px -1px 0px rgba(255, 255, 255, 0.15)'
|
2021-04-29 09:24:39 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-10-20 19:29:21 +00:00
|
|
|
|
export const spacing
|
|
|
|
|
= [ 0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128 ];
|
2021-04-29 09:24:39 +00:00
|
|
|
|
|
|
|
|
|
export const typography = {
|
|
|
|
|
labelRegular: {
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
lineHeight: 16,
|
|
|
|
|
fontWeight: font.weightRegular,
|
|
|
|
|
letterSpacing: 0.16
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
labelBold: {
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
lineHeight: 16,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0.16
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
labelButton: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 24,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
labelButtonLarge: {
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
lineHeight: 24,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
bodyShortRegular: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 18,
|
|
|
|
|
fontWeight: font.weightRegular,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
bodyShortBold: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 18,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
bodyShortRegularLarge: {
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
lineHeight: 24,
|
|
|
|
|
fontWeight: font.weightRegular,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
bodyShortBoldLarge: {
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
lineHeight: 24,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
bodyLongRegular: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 24,
|
|
|
|
|
fontWeight: font.weightRegular,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
2022-03-18 14:16:56 +00:00
|
|
|
|
bodyLongRegularLarge: {
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
lineHeight: 26,
|
|
|
|
|
fontWeight: font.weightRegular,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
|
bodyLongBold: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 24,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
heading1: {
|
|
|
|
|
fontSize: 54,
|
|
|
|
|
lineHeight: 64,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
heading2: {
|
|
|
|
|
fontSize: 42,
|
|
|
|
|
lineHeight: 50,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
heading3: {
|
|
|
|
|
fontSize: 32,
|
|
|
|
|
lineHeight: 40,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
heading4: {
|
|
|
|
|
fontSize: 28,
|
|
|
|
|
lineHeight: 36,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
heading5: {
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
lineHeight: 28,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
heading6: {
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
lineHeight: 26,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
heading7: {
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
lineHeight: 24,
|
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
|
letterSpacing: 0
|
|
|
|
|
}
|
|
|
|
|
};
|
2021-11-15 08:37:54 +00:00
|
|
|
|
|
|
|
|
|
export const breakpoints = {
|
|
|
|
|
values: {
|
|
|
|
|
'0': 0,
|
|
|
|
|
'320': 320,
|
|
|
|
|
'400': 400,
|
|
|
|
|
'480': 480
|
|
|
|
|
}
|
|
|
|
|
};
|