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.

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