Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Tokens.js 9.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. // @flow
  2. // Default color palette
  3. export const colors = {
  4. error03: '#7A141F',
  5. error04: '#A21B29',
  6. error05: '#CB2233',
  7. error06: '#E04757',
  8. error08: '#EAA7AD',
  9. primary01: '#00112D',
  10. primary02: '#00225A',
  11. primary03: '#003486',
  12. primary04: '#0045B3',
  13. primary05: '#0056E0',
  14. primary06: '#246FE5',
  15. primary07: '#669AEC',
  16. primary08: '#99BBF3',
  17. primary09: '#CCDDF9',
  18. primary10: '#17A0DB',
  19. primary11: '#1081B2',
  20. primary12: '#B8C7E0',
  21. surface00: '#111111',
  22. surface01: '#040404',
  23. surface02: '#141414',
  24. surface03: '#292929',
  25. surface04: '#3D3D3D',
  26. surface05: '#525252',
  27. surface06: '#666',
  28. surface07: '#858585',
  29. surface08: '#A3A3A3',
  30. surface09: '#C2C2C2',
  31. surface10: '#E0E0E0',
  32. surface11: '#FFF',
  33. surface12: '#AAAAAA',
  34. surface13: '#495258',
  35. surface14: '#555555',
  36. surface15: '#474747',
  37. surface16: '#131519',
  38. surface17: '#161618',
  39. success04: '#189B55',
  40. success05: '#1EC26A',
  41. warning05: '#F8AE1A',
  42. warning06: '#FFD600',
  43. warning07: '#FFD740',
  44. disabled01: '#00000040',
  45. support01: '#FF9B42',
  46. support02: '#F96E57',
  47. support03: '#DF486F',
  48. support04: '#B23683',
  49. support05: '#73348C',
  50. support06: '#6A50D3',
  51. support07: '#4380E2',
  52. support08: '#00A8B3',
  53. support09: '#2AA076'
  54. };
  55. // Mapping between the token used and the color
  56. export const colorMap = {
  57. // Default page background
  58. uiBackground: 'surface01',
  59. // Container background
  60. ui00: 'surface00',
  61. ui01: 'surface02',
  62. ui02: 'surface03',
  63. ui03: 'surface04',
  64. ui04: 'surface05',
  65. ui05: 'surface06',
  66. ui12: 'surface11',
  67. ui13: 'surface14',
  68. ui14: 'surface15',
  69. ui15: 'surface12',
  70. ui16: 'surface16',
  71. // Primary buttons
  72. action01: 'primary05',
  73. action04: 'primary11',
  74. // Screen header
  75. screen01Header: 'primary10',
  76. screen02Header: 'surface17',
  77. // Status bar
  78. status01Bar: 'primary11',
  79. // Hover state for primary buttons
  80. action01Hover: 'primary06',
  81. // Active state for primary buttons
  82. action01Active: 'primary04',
  83. // Focus border color
  84. action01Focus: 'primary08',
  85. // Disabled state for primary buttons
  86. action01Disabled: 'primary02',
  87. // Secondary buttons
  88. action02: 'surface04',
  89. // Hover state for secondary buttons
  90. action02Hover: 'surface05',
  91. // Active state for secondary buttons
  92. action02Active: 'surface03',
  93. // Focus border color
  94. action02Focus: 'surface07',
  95. // Disabled state for secondary buttons
  96. action02Disabled: 'surface02',
  97. // Tertiary buttons
  98. action03: 'transparent',
  99. // Hover state for tertiary buttons
  100. action03Hover: 'surface05',
  101. // Active state for tertiary buttons
  102. action03Active: 'surface03',
  103. // Focus border color
  104. action03Focus: 'surface07',
  105. // Disabled state for tertiary buttons
  106. action03Disabled: 'transparent',
  107. // Danger button background
  108. actionDanger: 'error05',
  109. // Hover state for danger buttons
  110. actionDangerHover: 'error06',
  111. // Active state for danger buttons
  112. actionDangerActive: 'error04',
  113. // Focus border color
  114. actionDangerFocus: 'error08',
  115. // Disabled state for danger buttons
  116. actionDangerDisabled: 'error03',
  117. // Underlay color for buttons
  118. underlay01: 'surface13',
  119. // Bottom sheet background
  120. bottomSheet: 'surface00',
  121. // Primary text – default color for body copy & headers
  122. text01: 'surface11',
  123. // Secondary text with medium contrast
  124. text02: 'surface09',
  125. // Tertiary text with low contrast – placeholders, disabled actions, label for disabled buttons
  126. text03: 'surface07',
  127. // Text for bottom sheet items
  128. text04: 'surface12',
  129. // Text for drawer menu displayed name
  130. text05: 'surface06',
  131. // Text for saved input values
  132. text06: 'surface03',
  133. // Text info
  134. text07Info: 'surface02',
  135. // error messages
  136. textError: 'error06',
  137. // Primary color for icons
  138. icon01: 'surface11',
  139. // Secondary color for input fields
  140. icon02: 'surface09',
  141. // Tertiary color for disabled actions
  142. icon03: 'surface07',
  143. // Quaternary color for disabled actions
  144. icon04: 'surface14',
  145. // Quinary color for disabled actions
  146. icon05: 'surface04',
  147. // Error message
  148. iconError: 'error06',
  149. // Forms
  150. // Default background for input fields
  151. field01: 'surface01',
  152. // Hover background for input fields
  153. field01Hover: 'surface03',
  154. // Focus border color
  155. field01Focus: 'primary05',
  156. // Disabled background for input fields
  157. field01Disabled: 'surface05',
  158. // Background for high-contrast input fields
  159. field02: 'surface11',
  160. // Color for the section divider
  161. dividerColor: 'surface12',
  162. // Color for indicator
  163. indicatorColor: 'surface12',
  164. // Background for high-contrast input fields on hover
  165. field02Hover: 'primary09',
  166. // Focus border color
  167. field02Focus: 'primary05',
  168. // Disabled background for high-contrast input fields
  169. field02Disabled: 'surface06',
  170. // Background for section header
  171. section01: 'surface10',
  172. // Active color for section header
  173. section01Active: 'primary04',
  174. // Inactive color for section header
  175. section01Inactive: 'surface01',
  176. // Borders
  177. // Border for the input fields in hover state
  178. border01: 'surface08',
  179. // Border for the input fields
  180. border02: 'surface06',
  181. // Line separators
  182. border03: 'surface04',
  183. border04: 'primary12',
  184. // Color for error border & message
  185. borderError: 'error06',
  186. // Links
  187. // Default color for links
  188. link01: 'primary07',
  189. // Color for links in the hover state
  190. link01Hover: 'primary08',
  191. // Color for links in the active state
  192. link01Active: 'primary06',
  193. // Support
  194. // Color for positive messages applied to icons & borders
  195. success01: 'success05',
  196. // Color for positive messages applied to backgrounds
  197. success02: 'success05',
  198. // Color for warning messages applied to icons, borders & backgrounds
  199. warning01: 'warning05',
  200. // Color for indicating a raised hand
  201. warning02: 'warning06',
  202. // Color for indicating recording info
  203. warning03: 'warning07',
  204. // Color for disabled tab
  205. tab01Disabled: 'disabled01',
  206. // Color for enabled switch
  207. switch01Enabled: 'success04',
  208. // Color for disabled switch
  209. switch01Disabled: 'surface06',
  210. // Color for disabled video switch
  211. video01Disabled: 'disabled01',
  212. // Backgrounds for avatars
  213. support01: 'support01',
  214. support02: 'support02',
  215. support03: 'support03',
  216. support04: 'support04',
  217. support05: 'support05',
  218. support06: 'support06',
  219. support08: 'support08',
  220. support09: 'support09',
  221. // Used for avatars and raise hand badge
  222. support07: 'support07'
  223. };
  224. export const font = {
  225. weightRegular: '400',
  226. weightSemiBold: '600'
  227. };
  228. export const shape = {
  229. borderRadius: 6,
  230. boxShadow: 'inset 0px -1px 0px rgba(255, 255, 255, 0.15)'
  231. };
  232. export const spacing
  233. = [ 0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128 ];
  234. export const typography = {
  235. labelRegular: {
  236. fontSize: 12,
  237. lineHeight: 16,
  238. fontWeight: font.weightRegular,
  239. letterSpacing: 0.16
  240. },
  241. labelBold: {
  242. fontSize: 12,
  243. lineHeight: 16,
  244. fontWeight: font.weightSemiBold,
  245. letterSpacing: 0.16
  246. },
  247. labelButton: {
  248. fontSize: 14,
  249. lineHeight: 24,
  250. fontWeight: font.weightSemiBold,
  251. letterSpacing: 0
  252. },
  253. labelButtonLarge: {
  254. fontSize: 16,
  255. lineHeight: 24,
  256. fontWeight: font.weightSemiBold,
  257. letterSpacing: 0
  258. },
  259. bodyShortRegular: {
  260. fontSize: 14,
  261. lineHeight: 18,
  262. fontWeight: font.weightRegular,
  263. letterSpacing: 0
  264. },
  265. bodyShortBold: {
  266. fontSize: 14,
  267. lineHeight: 18,
  268. fontWeight: font.weightSemiBold,
  269. letterSpacing: 0
  270. },
  271. bodyShortRegularLarge: {
  272. fontSize: 16,
  273. lineHeight: 24,
  274. fontWeight: font.weightRegular,
  275. letterSpacing: 0
  276. },
  277. bodyShortBoldLarge: {
  278. fontSize: 16,
  279. lineHeight: 24,
  280. fontWeight: font.weightSemiBold,
  281. letterSpacing: 0
  282. },
  283. bodyLongRegular: {
  284. fontSize: 14,
  285. lineHeight: 24,
  286. fontWeight: font.weightRegular,
  287. letterSpacing: 0
  288. },
  289. bodyLongRegularLarge: {
  290. fontSize: 16,
  291. lineHeight: 26,
  292. fontWeight: font.weightRegular,
  293. letterSpacing: 0
  294. },
  295. bodyLongBold: {
  296. fontSize: 14,
  297. lineHeight: 24,
  298. fontWeight: font.weightSemiBold,
  299. letterSpacing: 0
  300. },
  301. heading1: {
  302. fontSize: 54,
  303. lineHeight: 64,
  304. fontWeight: font.weightSemiBold,
  305. letterSpacing: 0
  306. },
  307. heading2: {
  308. fontSize: 42,
  309. lineHeight: 50,
  310. fontWeight: font.weightSemiBold,
  311. letterSpacing: 0
  312. },
  313. heading3: {
  314. fontSize: 32,
  315. lineHeight: 40,
  316. fontWeight: font.weightSemiBold,
  317. letterSpacing: 0
  318. },
  319. heading4: {
  320. fontSize: 28,
  321. lineHeight: 36,
  322. fontWeight: font.weightSemiBold,
  323. letterSpacing: 0
  324. },
  325. heading5: {
  326. fontSize: 20,
  327. lineHeight: 28,
  328. fontWeight: font.weightSemiBold,
  329. letterSpacing: 0
  330. },
  331. heading6: {
  332. fontSize: 16,
  333. lineHeight: 26,
  334. fontWeight: font.weightSemiBold,
  335. letterSpacing: 0
  336. },
  337. heading7: {
  338. fontSize: 14,
  339. lineHeight: 24,
  340. fontWeight: font.weightSemiBold,
  341. letterSpacing: 0
  342. }
  343. };
  344. export const breakpoints = {
  345. values: {
  346. '0': 0,
  347. '320': 320,
  348. '400': 400,
  349. '480': 480
  350. }
  351. };