Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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. // The following tokens are not in the Design System and they should be removed
  42. // after we replace them in the components.
  43. primary10: '#17A0DB',
  44. primary11: '#1081B2',
  45. primary12: '#B8C7E0',
  46. surface00: '#111111',
  47. surface12: '#AAAAAA',
  48. surface13: '#495258',
  49. surface14: '#555555',
  50. surface15: '#474747',
  51. surface16: '#131519',
  52. surface17: '#161618',
  53. warning07: '#FFD740',
  54. disabled01: '#00000040'
  55. };
  56. // Mapping between the token used and the color
  57. export const colorMap = {
  58. // ----- Surfaces -----
  59. // Default page background
  60. uiBackground: 'surface01',
  61. // Container backgrounds
  62. ui01: 'surface02',
  63. ui02: 'surface03',
  64. ui03: 'surface04',
  65. ui04: 'surface05',
  66. ui05: 'surface06',
  67. ui06: 'surface07',
  68. ui07: 'surface08',
  69. ui08: 'surface09',
  70. ui09: 'surface10',
  71. ui10: 'surface11',
  72. // ----- Actions -----
  73. // Primary
  74. action01: 'primary06',
  75. action01Hover: 'primary07',
  76. action01Active: 'primary04',
  77. // Secondary
  78. action02: 'surface10',
  79. action02Hover: 'surface11',
  80. action02Active: 'surface09',
  81. // Destructive
  82. actionDanger: 'error05',
  83. actionDangerHover: 'error06',
  84. actionDangerActive: 'error04',
  85. // Tertiary
  86. action03: 'transparent',
  87. action03Hover: 'surface04',
  88. action03Active: 'surface03',
  89. // Disabled
  90. disabled01: 'surface09',
  91. // Focus
  92. focus01: 'primary07',
  93. // ----- Links -----
  94. link01: 'primary07',
  95. link01Hover: 'primary08',
  96. link01Active: 'primary06',
  97. // ----- Text -----
  98. // Primary
  99. text01: 'surface11',
  100. // Secondary
  101. text02: 'surface09',
  102. // Tertiary
  103. text03: 'surface07',
  104. // High-contrast
  105. text04: 'surface01',
  106. // Error
  107. textError: 'error08',
  108. // ----- Icons -----
  109. // Primary
  110. icon01: 'surface11',
  111. // Secondary
  112. icon02: 'surface09',
  113. // Tertiary
  114. icon03: 'surface07',
  115. // High-contrast
  116. icon04: 'surface01',
  117. // Error
  118. iconError: 'error06',
  119. // ----- Forms -----
  120. field01: 'surface04',
  121. // ----- Feedback -----
  122. // Success
  123. success01: 'success05',
  124. success02: 'success04',
  125. // Warning
  126. warning01: 'warning05',
  127. warning02: 'warning06',
  128. // ----- Support -----
  129. support01: 'support01',
  130. support02: 'support02',
  131. support03: 'support03',
  132. support04: 'support04',
  133. support05: 'support05',
  134. support06: 'support06',
  135. support07: 'support07',
  136. support08: 'support08',
  137. support09: 'support09',
  138. // The following mappings are not in the Design System and they should be removed
  139. // after we replace them in the components.
  140. ui00: 'surface00',
  141. ui12: 'surface11',
  142. ui13: 'surface14',
  143. ui14: 'surface15',
  144. ui15: 'surface12',
  145. ui16: 'surface16',
  146. action04: 'primary11',
  147. action03Focus: 'surface07',
  148. action03Disabled: 'transparent',
  149. actionDisabled: 'surface09',
  150. icon05: 'surface04',
  151. text05: 'surface06',
  152. text06: 'surface03',
  153. text07Info: 'surface02',
  154. screen01Header: 'primary10',
  155. screen02Header: 'surface17',
  156. underlay01: 'surface13',
  157. bottomSheet: 'surface00',
  158. dividerColor: 'surface12',
  159. indicatorColor: 'surface12',
  160. section01: 'surface10',
  161. border01: 'surface08',
  162. border02: 'surface06',
  163. border03: 'surface04',
  164. border04: 'primary12',
  165. border05: 'surface07',
  166. borderError: 'error06',
  167. warning03: 'warning07',
  168. tab01Disabled: 'disabled01',
  169. switch01Enabled: 'success04',
  170. switch01Disabled: 'surface06',
  171. video01Disabled: 'disabled01',
  172. field01Hover: 'surface03',
  173. field01Focus: 'primary05',
  174. field01Disabled: 'surface05',
  175. field02: 'surface11',
  176. field02Hover: 'primary09',
  177. field02Focus: 'primary05',
  178. field02Disabled: 'surface06'
  179. };
  180. export const font = {
  181. weightRegular: '400',
  182. weightSemiBold: '600'
  183. };
  184. export const shape = {
  185. borderRadius: 6,
  186. boxShadow: 'inset 0px -1px 0px rgba(255, 255, 255, 0.15)'
  187. };
  188. export const spacing
  189. = [ 0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128 ];
  190. export const typography = {
  191. labelRegular: {
  192. fontSize: 12,
  193. lineHeight: 16,
  194. fontWeight: font.weightRegular,
  195. letterSpacing: 0.16
  196. },
  197. labelBold: {
  198. fontSize: 12,
  199. lineHeight: 16,
  200. fontWeight: font.weightSemiBold,
  201. letterSpacing: 0.16
  202. },
  203. bodyShortRegular: {
  204. fontSize: 14,
  205. lineHeight: 20,
  206. fontWeight: font.weightRegular,
  207. letterSpacing: 0
  208. },
  209. bodyShortBold: {
  210. fontSize: 14,
  211. lineHeight: 20,
  212. fontWeight: font.weightSemiBold,
  213. letterSpacing: 0
  214. },
  215. bodyShortRegularLarge: {
  216. fontSize: 16,
  217. lineHeight: 22,
  218. fontWeight: font.weightRegular,
  219. letterSpacing: 0
  220. },
  221. bodyShortBoldLarge: {
  222. fontSize: 16,
  223. lineHeight: 22,
  224. fontWeight: font.weightSemiBold,
  225. letterSpacing: 0
  226. },
  227. bodyLongRegular: {
  228. fontSize: 14,
  229. lineHeight: 24,
  230. fontWeight: font.weightRegular,
  231. letterSpacing: 0
  232. },
  233. bodyLongRegularLarge: {
  234. fontSize: 16,
  235. lineHeight: 26,
  236. fontWeight: font.weightRegular,
  237. letterSpacing: 0
  238. },
  239. bodyLongBold: {
  240. fontSize: 14,
  241. lineHeight: 24,
  242. fontWeight: font.weightSemiBold,
  243. letterSpacing: 0
  244. },
  245. bodyLongBoldLarge: {
  246. fontSize: 16,
  247. lineHeight: 26,
  248. fontWeight: font.weightSemiBold,
  249. letterSpacing: 0
  250. },
  251. heading1: {
  252. fontSize: 54,
  253. lineHeight: 64,
  254. fontWeight: font.weightSemiBold,
  255. letterSpacing: 0
  256. },
  257. heading2: {
  258. fontSize: 42,
  259. lineHeight: 50,
  260. fontWeight: font.weightSemiBold,
  261. letterSpacing: 0
  262. },
  263. heading3: {
  264. fontSize: 32,
  265. lineHeight: 40,
  266. fontWeight: font.weightSemiBold,
  267. letterSpacing: 0
  268. },
  269. heading4: {
  270. fontSize: 28,
  271. lineHeight: 36,
  272. fontWeight: font.weightSemiBold,
  273. letterSpacing: 0
  274. },
  275. heading5: {
  276. fontSize: 20,
  277. lineHeight: 28,
  278. fontWeight: font.weightSemiBold,
  279. letterSpacing: 0
  280. },
  281. heading6: {
  282. fontSize: 16,
  283. lineHeight: 26,
  284. fontWeight: font.weightSemiBold,
  285. letterSpacing: 0
  286. },
  287. // These styles are no longer part of the Design System.
  288. // They should be replaced and removed.
  289. heading7: {
  290. fontSize: 14,
  291. lineHeight: 24,
  292. fontWeight: font.weightSemiBold,
  293. letterSpacing: 0
  294. },
  295. labelButton: {
  296. fontSize: 14,
  297. lineHeight: 24,
  298. fontWeight: font.weightSemiBold,
  299. letterSpacing: 0
  300. },
  301. labelButtonLarge: {
  302. fontSize: 16,
  303. lineHeight: 24,
  304. fontWeight: font.weightSemiBold,
  305. letterSpacing: 0
  306. }
  307. };
  308. export const breakpoints = {
  309. values: {
  310. '0': 0,
  311. '320': 320,
  312. '400': 400,
  313. '480': 480
  314. }
  315. };