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

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