You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Tokens.ts 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // Default color palette
  2. export const colors = {
  3. error03: '#7A141F',
  4. error04: '#A21B29',
  5. error05: '#CB2233',
  6. error06: '#D83848',
  7. error08: '#F24D5F',
  8. primary01: '#00112D',
  9. primary02: '#00225A',
  10. primary03: '#003486',
  11. primary04: '#0045B3',
  12. primary05: '#0056E0',
  13. primary06: '#246FE5',
  14. primary07: '#4687ED',
  15. primary08: '#99BBF3',
  16. primary09: '#CCDDF9',
  17. surface01: '#040404',
  18. surface02: '#141414',
  19. surface03: '#292929',
  20. surface04: '#3D3D3D',
  21. surface05: '#525252',
  22. surface06: '#666',
  23. surface07: '#858585',
  24. surface08: '#A3A3A3',
  25. surface09: '#C2C2C2',
  26. surface10: '#E0E0E0',
  27. surface11: '#FFF',
  28. success04: '#189B55',
  29. success05: '#1EC26A',
  30. warning05: '#F8AE1A',
  31. warning06: '#FFD600',
  32. support01: '#FF9B42',
  33. support02: '#F96E57',
  34. support03: '#DF486F',
  35. support04: '#B23683',
  36. support05: '#73348C',
  37. support06: '#6A50D3',
  38. support07: '#4380E2',
  39. support08: '#00A8B3',
  40. support09: '#2AA076'
  41. };
  42. // Mapping between the token used and the color
  43. export const colorMap = {
  44. // ----- Surfaces -----
  45. // Default page background
  46. uiBackground: 'surface01',
  47. // Container backgrounds
  48. ui01: 'surface02',
  49. ui02: 'surface03',
  50. ui03: 'surface04',
  51. ui04: 'surface05',
  52. ui05: 'surface06',
  53. ui06: 'surface07',
  54. ui07: 'surface08',
  55. ui08: 'surface09',
  56. ui09: 'surface10',
  57. ui10: 'surface11',
  58. // ----- Actions -----
  59. // Primary
  60. action01: 'primary06',
  61. action01Hover: 'primary07',
  62. action01Active: 'primary04',
  63. // Secondary
  64. action02: 'surface10',
  65. action02Hover: 'surface11',
  66. action02Active: 'surface09',
  67. // Destructive
  68. actionDanger: 'error05',
  69. actionDangerHover: 'error06',
  70. actionDangerActive: 'error04',
  71. // Tertiary
  72. action03: 'transparent',
  73. action03Hover: 'surface04',
  74. action03Active: 'surface03',
  75. // Disabled
  76. disabled01: 'surface09',
  77. // Focus
  78. focus01: 'primary07',
  79. // ----- Links -----
  80. link01: 'primary07',
  81. link01Hover: 'primary08',
  82. link01Active: 'primary06',
  83. // ----- Text -----
  84. // Primary
  85. text01: 'surface11',
  86. // Secondary
  87. text02: 'surface09',
  88. // Tertiary
  89. text03: 'surface07',
  90. // High-contrast
  91. text04: 'surface01',
  92. // Error
  93. textError: 'error08',
  94. // ----- Icons -----
  95. // Primary
  96. icon01: 'surface11',
  97. // Secondary
  98. icon02: 'surface09',
  99. // Tertiary
  100. icon03: 'surface07',
  101. // High-contrast
  102. icon04: 'surface01',
  103. // Error
  104. iconError: 'error06',
  105. // ----- Forms -----
  106. field01: 'surface04',
  107. // ----- Feedback -----
  108. // Success
  109. success01: 'success05',
  110. success02: 'success04',
  111. // Warning
  112. warning01: 'warning05',
  113. warning02: 'warning06',
  114. // ----- Support -----
  115. support01: 'support01',
  116. support02: 'support02',
  117. support03: 'support03',
  118. support04: 'support04',
  119. support05: 'support05',
  120. support06: 'support06',
  121. support07: 'support07',
  122. support08: 'support08',
  123. support09: 'support09'
  124. };
  125. export const font = {
  126. weightRegular: '400',
  127. weightSemiBold: '600'
  128. };
  129. export const shape = {
  130. borderRadius: 6,
  131. circleRadius: 50,
  132. boxShadow: 'inset 0px -1px 0px rgba(255, 255, 255, 0.15)'
  133. };
  134. export const spacing
  135. = [ 0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128 ];
  136. export const typography = {
  137. labelRegular: {
  138. fontSize: 12,
  139. lineHeight: 16,
  140. fontWeight: font.weightRegular,
  141. letterSpacing: 0.16
  142. },
  143. labelBold: {
  144. fontSize: 12,
  145. lineHeight: 16,
  146. fontWeight: font.weightSemiBold,
  147. letterSpacing: 0.16
  148. },
  149. bodyShortRegular: {
  150. fontSize: 14,
  151. lineHeight: 20,
  152. fontWeight: font.weightRegular,
  153. letterSpacing: 0
  154. },
  155. bodyShortBold: {
  156. fontSize: 14,
  157. lineHeight: 20,
  158. fontWeight: font.weightSemiBold,
  159. letterSpacing: 0
  160. },
  161. bodyShortRegularLarge: {
  162. fontSize: 16,
  163. lineHeight: 22,
  164. fontWeight: font.weightRegular,
  165. letterSpacing: 0
  166. },
  167. bodyShortBoldLarge: {
  168. fontSize: 16,
  169. lineHeight: 22,
  170. fontWeight: font.weightSemiBold,
  171. letterSpacing: 0
  172. },
  173. bodyLongRegular: {
  174. fontSize: 14,
  175. lineHeight: 24,
  176. fontWeight: font.weightRegular,
  177. letterSpacing: 0
  178. },
  179. bodyLongRegularLarge: {
  180. fontSize: 16,
  181. lineHeight: 26,
  182. fontWeight: font.weightRegular,
  183. letterSpacing: 0
  184. },
  185. bodyLongBold: {
  186. fontSize: 14,
  187. lineHeight: 24,
  188. fontWeight: font.weightSemiBold,
  189. letterSpacing: 0
  190. },
  191. bodyLongBoldLarge: {
  192. fontSize: 16,
  193. lineHeight: 26,
  194. fontWeight: font.weightSemiBold,
  195. letterSpacing: 0
  196. },
  197. heading1: {
  198. fontSize: 54,
  199. lineHeight: 64,
  200. fontWeight: font.weightSemiBold,
  201. letterSpacing: 0
  202. },
  203. heading2: {
  204. fontSize: 42,
  205. lineHeight: 50,
  206. fontWeight: font.weightSemiBold,
  207. letterSpacing: 0
  208. },
  209. heading3: {
  210. fontSize: 32,
  211. lineHeight: 40,
  212. fontWeight: font.weightSemiBold,
  213. letterSpacing: 0
  214. },
  215. heading4: {
  216. fontSize: 28,
  217. lineHeight: 36,
  218. fontWeight: font.weightSemiBold,
  219. letterSpacing: 0
  220. },
  221. heading5: {
  222. fontSize: 20,
  223. lineHeight: 28,
  224. fontWeight: font.weightSemiBold,
  225. letterSpacing: 0
  226. },
  227. heading6: {
  228. fontSize: 16,
  229. lineHeight: 26,
  230. fontWeight: font.weightSemiBold,
  231. letterSpacing: 0
  232. }
  233. };
  234. export const breakpoints = {
  235. values: {
  236. '0': 0,
  237. '320': 320,
  238. '400': 400,
  239. '480': 480
  240. }
  241. };