123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- // Default color palette
- export const colors = {
- error03: '#7A141F',
- error04: '#A21B29',
- error05: '#CB2233',
- error06: '#D83848',
- error08: '#F24D5F',
-
- primary01: '#00112D',
- primary02: '#00225A',
- primary03: '#003486',
- primary04: '#0045B3',
- primary05: '#0056E0',
- primary06: '#246FE5',
- primary07: '#4687ED',
- 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',
-
- warning05: '#F8AE1A',
- warning06: '#FFD600',
-
- support01: '#FF9B42',
- support02: '#F96E57',
- support03: '#DF486F',
- support04: '#B23683',
- support05: '#73348C',
- support06: '#6A50D3',
- support07: '#4380E2',
- support08: '#00A8B3',
- support09: '#2AA076'
- };
-
- // Mapping between the token used and the color
- export const colorMap = {
- // ----- Surfaces -----
-
- // Default page background
- uiBackground: 'surface01',
-
- // Container backgrounds
- ui01: 'surface02',
- ui02: 'surface03',
- ui03: 'surface04',
- ui04: 'surface05',
- ui05: 'surface06',
- ui06: 'surface07',
- ui07: 'surface08',
- ui08: 'surface09',
- ui09: 'surface10',
- ui10: 'surface11',
-
- // ----- Actions -----
-
- // Primary
- action01: 'primary06',
- action01Hover: 'primary07',
- action01Active: 'primary04',
-
- // Secondary
- action02: 'surface10',
- action02Hover: 'surface11',
- action02Active: 'surface09',
-
- // Destructive
- actionDanger: 'error05',
- actionDangerHover: 'error06',
- actionDangerActive: 'error04',
-
- // Tertiary
- action03: 'transparent',
- action03Hover: 'surface04',
- action03Active: 'surface03',
-
- // Disabled
- disabled01: 'surface09',
-
- // Focus
- focus01: 'primary07',
-
- // ----- Links -----
-
- link01: 'primary07',
- link01Hover: 'primary08',
- link01Active: 'primary06',
-
- // ----- Text -----
-
- // Primary
- text01: 'surface11',
-
- // Secondary
- text02: 'surface09',
-
- // Tertiary
- text03: 'surface07',
-
- // High-contrast
- text04: 'surface01',
-
- // Error
- textError: 'error08',
-
- // ----- Icons -----
-
- // Primary
- icon01: 'surface11',
-
- // Secondary
- icon02: 'surface09',
-
- // Tertiary
- icon03: 'surface07',
-
- // High-contrast
- icon04: 'surface01',
-
- // Error
- iconError: 'error06',
-
- // ----- Forms -----
-
- field01: 'surface04',
-
- // ----- Feedback -----
-
- // Success
- success01: 'success05',
- success02: 'success04',
-
- // Warning
- warning01: 'warning05',
- warning02: 'warning06',
-
- // ----- Support -----
-
- support01: 'support01',
- support02: 'support02',
- support03: 'support03',
- support04: 'support04',
- support05: 'support05',
- support06: 'support06',
- support07: 'support07',
- support08: 'support08',
- support09: 'support09'
- };
-
-
- export const font = {
- weightRegular: '400',
- weightSemiBold: '600'
- };
-
- export const shape = {
- borderRadius: 6,
- circleRadius: 50,
- boxShadow: 'inset 0px -1px 0px rgba(255, 255, 255, 0.15)'
- };
-
- export const spacing
- = [ 0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128 ];
-
- 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,
- lineHeight: 20,
- fontWeight: font.weightRegular,
- letterSpacing: 0
- },
-
- bodyShortBold: {
- fontSize: 14,
- lineHeight: 20,
- fontWeight: font.weightSemiBold,
- letterSpacing: 0
- },
-
- bodyShortRegularLarge: {
- fontSize: 16,
- lineHeight: 22,
- fontWeight: font.weightRegular,
- letterSpacing: 0
- },
-
- bodyShortBoldLarge: {
- fontSize: 16,
- lineHeight: 22,
- fontWeight: font.weightSemiBold,
- letterSpacing: 0
- },
-
- bodyLongRegular: {
- fontSize: 14,
- lineHeight: 24,
- fontWeight: font.weightRegular,
- letterSpacing: 0
- },
-
- bodyLongRegularLarge: {
- fontSize: 16,
- lineHeight: 26,
- fontWeight: font.weightRegular,
- letterSpacing: 0
- },
-
- bodyLongBold: {
- fontSize: 14,
- lineHeight: 24,
- fontWeight: font.weightSemiBold,
- letterSpacing: 0
- },
-
- bodyLongBoldLarge: {
- fontSize: 16,
- lineHeight: 26,
- 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
- }
- };
-
- export const breakpoints = {
- values: {
- '0': 0,
- '320': 320,
- '400': 400,
- '480': 480
- }
- };
|