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',
|
2022-07-12 12:28:20 +00:00
|
|
|
error06: '#D83848',
|
|
|
|
error08: '#F24D5F',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
|
|
|
primary01: '#00112D',
|
|
|
|
primary02: '#00225A',
|
|
|
|
primary03: '#003486',
|
|
|
|
primary04: '#0045B3',
|
|
|
|
primary05: '#0056E0',
|
|
|
|
primary06: '#246FE5',
|
2022-07-12 12:28:20 +00:00
|
|
|
primary07: '#4687ED',
|
2021-04-29 09:24:39 +00:00
|
|
|
primary08: '#99BBF3',
|
|
|
|
primary09: '#CCDDF9',
|
|
|
|
|
|
|
|
surface01: '#040404',
|
|
|
|
surface02: '#141414',
|
|
|
|
surface03: '#292929',
|
|
|
|
surface04: '#3D3D3D',
|
|
|
|
surface05: '#525252',
|
|
|
|
surface06: '#666',
|
|
|
|
surface07: '#858585',
|
|
|
|
surface08: '#A3A3A3',
|
|
|
|
surface09: '#C2C2C2',
|
|
|
|
surface10: '#E0E0E0',
|
|
|
|
surface11: '#FFF',
|
|
|
|
|
|
|
|
success04: '#189B55',
|
|
|
|
success05: '#1EC26A',
|
|
|
|
|
2021-05-19 10:08:30 +00:00
|
|
|
warning05: '#F8AE1A',
|
2021-12-17 13:05:12 +00:00
|
|
|
warning06: '#FFD600',
|
2021-11-17 12:54:00 +00:00
|
|
|
|
2021-11-17 09:35:07 +00:00
|
|
|
support01: '#FF9B42',
|
|
|
|
support02: '#F96E57',
|
|
|
|
support03: '#DF486F',
|
|
|
|
support04: '#B23683',
|
|
|
|
support05: '#73348C',
|
|
|
|
support06: '#6A50D3',
|
|
|
|
support07: '#4380E2',
|
|
|
|
support08: '#00A8B3',
|
2022-07-12 12:28:20 +00:00
|
|
|
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',
|
|
|
|
surface00: '#111111',
|
|
|
|
surface12: '#AAAAAA',
|
|
|
|
surface13: '#495258',
|
|
|
|
surface14: '#555555',
|
|
|
|
surface15: '#474747',
|
|
|
|
surface16: '#131519',
|
|
|
|
surface17: '#161618',
|
|
|
|
warning07: '#FFD740',
|
|
|
|
disabled01: '#00000040'
|
2021-04-29 09:24:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Mapping between the token used and the color
|
|
|
|
export const colorMap = {
|
2022-07-12 12:28:20 +00:00
|
|
|
// ----- Surfaces -----
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
// Default page background
|
|
|
|
uiBackground: 'surface01',
|
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Container backgrounds
|
2021-04-29 09:24:39 +00:00
|
|
|
ui01: 'surface02',
|
|
|
|
ui02: 'surface03',
|
|
|
|
ui03: 'surface04',
|
|
|
|
ui04: 'surface05',
|
|
|
|
ui05: 'surface06',
|
2022-07-20 06:58:51 +00:00
|
|
|
ui06: 'surface07',
|
|
|
|
ui07: 'surface08',
|
|
|
|
ui08: 'surface09',
|
|
|
|
ui09: 'surface10',
|
|
|
|
ui10: 'surface11',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// ----- Actions -----
|
2022-07-07 12:29:18 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Primary
|
|
|
|
action01: 'primary06',
|
|
|
|
action01Hover: 'primary07',
|
2021-04-29 09:24:39 +00:00
|
|
|
action01Active: 'primary04',
|
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Secondary
|
2022-07-07 12:29:18 +00:00
|
|
|
action02: 'surface10',
|
2022-07-12 12:28:20 +00:00
|
|
|
action02Hover: 'surface11',
|
|
|
|
action02Active: 'surface09',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Destructive
|
|
|
|
actionDanger: 'error05',
|
|
|
|
actionDangerHover: 'error06',
|
|
|
|
actionDangerActive: 'error04',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Tertiary
|
2021-04-29 09:24:39 +00:00
|
|
|
action03: 'transparent',
|
2022-07-12 12:28:20 +00:00
|
|
|
action03Hover: 'surface04',
|
2021-04-29 09:24:39 +00:00
|
|
|
action03Active: 'surface03',
|
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Disabled
|
|
|
|
disabled01: 'surface09',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Focus
|
|
|
|
focus01: 'primary07',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// ----- Links -----
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
link01: 'primary07',
|
|
|
|
link01Hover: 'primary08',
|
|
|
|
link01Active: 'primary06',
|
2021-11-11 14:32:56 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// ----- Text -----
|
2021-07-30 09:46:49 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Primary
|
2021-04-29 09:24:39 +00:00
|
|
|
text01: 'surface11',
|
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Secondary
|
|
|
|
text02: 'surface09',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Tertiary
|
2021-04-29 09:24:39 +00:00
|
|
|
text03: 'surface07',
|
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// High-contrast
|
|
|
|
text04: 'surface01',
|
2021-07-30 09:46:49 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Error
|
|
|
|
textError: 'error08',
|
2021-11-11 14:32:56 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// ----- Icons -----
|
2022-03-08 16:08:36 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Primary
|
2021-04-29 09:24:39 +00:00
|
|
|
icon01: 'surface11',
|
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Secondary
|
|
|
|
icon02: 'surface09',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Tertiary
|
2021-04-29 09:24:39 +00:00
|
|
|
icon03: 'surface07',
|
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// High-contrast
|
|
|
|
icon04: 'surface01',
|
2021-11-10 17:49:53 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Error
|
2021-04-29 09:24:39 +00:00
|
|
|
iconError: 'error06',
|
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// ----- Forms -----
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
field01: 'surface04',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// ----- Feedback -----
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Success
|
|
|
|
success01: 'success05',
|
|
|
|
success02: 'success04',
|
2022-02-17 14:51:00 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// Warning
|
|
|
|
warning01: 'warning05',
|
|
|
|
warning02: 'warning06',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// ----- Support -----
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
support01: 'support01',
|
|
|
|
support02: 'support02',
|
|
|
|
support03: 'support03',
|
|
|
|
support04: 'support04',
|
|
|
|
support05: 'support05',
|
|
|
|
support06: 'support06',
|
|
|
|
support07: 'support07',
|
|
|
|
support08: 'support08',
|
|
|
|
support09: 'support09',
|
2021-04-29 09:24:39 +00:00
|
|
|
|
2022-07-12 12:28:20 +00:00
|
|
|
// 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',
|
2021-05-11 08:01:45 +00:00
|
|
|
section01: 'surface10',
|
2021-04-29 09:24:39 +00:00
|
|
|
border01: 'surface08',
|
|
|
|
border02: 'surface06',
|
|
|
|
border03: 'surface04',
|
2022-06-27 13:53:52 +00:00
|
|
|
border05: 'surface07',
|
2021-04-29 09:24:39 +00:00
|
|
|
borderError: 'error06',
|
2022-03-08 16:08:36 +00:00
|
|
|
warning03: 'warning07',
|
2021-11-17 12:54:00 +00:00
|
|
|
tab01Disabled: 'disabled01',
|
2022-02-22 16:39:06 +00:00
|
|
|
switch01Enabled: 'success04',
|
|
|
|
switch01Disabled: 'surface06',
|
2021-11-17 12:54:00 +00:00
|
|
|
video01Disabled: 'disabled01',
|
2022-07-12 12:28:20 +00:00
|
|
|
field01Hover: 'surface03',
|
|
|
|
field01Focus: 'primary05',
|
|
|
|
field01Disabled: 'surface05',
|
|
|
|
field02: 'surface11',
|
|
|
|
field02Hover: 'primary09',
|
|
|
|
field02Focus: 'primary05',
|
|
|
|
field02Disabled: 'surface06'
|
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
|
|
|
|
},
|
|
|
|
|
|
|
|
bodyShortRegular: {
|
|
|
|
fontSize: 14,
|
2022-07-19 10:36:02 +00:00
|
|
|
lineHeight: 20,
|
2021-04-29 09:24:39 +00:00
|
|
|
fontWeight: font.weightRegular,
|
|
|
|
letterSpacing: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
bodyShortBold: {
|
|
|
|
fontSize: 14,
|
2022-07-19 10:36:02 +00:00
|
|
|
lineHeight: 20,
|
2021-04-29 09:24:39 +00:00
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
letterSpacing: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
bodyShortRegularLarge: {
|
|
|
|
fontSize: 16,
|
2022-07-19 10:36:02 +00:00
|
|
|
lineHeight: 22,
|
2021-04-29 09:24:39 +00:00
|
|
|
fontWeight: font.weightRegular,
|
|
|
|
letterSpacing: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
bodyShortBoldLarge: {
|
|
|
|
fontSize: 16,
|
2022-07-19 10:36:02 +00:00
|
|
|
lineHeight: 22,
|
2021-04-29 09:24:39 +00:00
|
|
|
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
|
|
|
|
},
|
|
|
|
|
2022-07-19 10:36:02 +00:00
|
|
|
bodyLongBoldLarge: {
|
|
|
|
fontSize: 16,
|
|
|
|
lineHeight: 26,
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
letterSpacing: 0
|
|
|
|
},
|
|
|
|
|
2021-04-29 09:24:39 +00:00
|
|
|
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
|
|
|
|
},
|
|
|
|
|
2022-07-19 10:36:02 +00:00
|
|
|
|
|
|
|
// These styles are no longer part of the Design System.
|
|
|
|
// They should be replaced and removed.
|
2021-04-29 09:24:39 +00:00
|
|
|
heading7: {
|
|
|
|
fontSize: 14,
|
|
|
|
lineHeight: 24,
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
letterSpacing: 0
|
2022-07-19 10:36:02 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
labelButton: {
|
|
|
|
fontSize: 14,
|
|
|
|
lineHeight: 24,
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
letterSpacing: 0
|
|
|
|
},
|
|
|
|
|
|
|
|
labelButtonLarge: {
|
|
|
|
fontSize: 16,
|
|
|
|
lineHeight: 24,
|
|
|
|
fontWeight: font.weightSemiBold,
|
|
|
|
letterSpacing: 0
|
2021-04-29 09:24:39 +00:00
|
|
|
}
|
|
|
|
};
|
2021-11-15 08:37:54 +00:00
|
|
|
|
|
|
|
export const breakpoints = {
|
|
|
|
values: {
|
|
|
|
'0': 0,
|
|
|
|
'320': 320,
|
|
|
|
'400': 400,
|
|
|
|
'480': 480
|
|
|
|
}
|
|
|
|
};
|