Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Tokens.js 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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. surface01: '#040404',
  19. surface02: '#141414',
  20. surface03: '#292929',
  21. surface04: '#3D3D3D',
  22. surface05: '#525252',
  23. surface06: '#666',
  24. surface07: '#858585',
  25. surface08: '#A3A3A3',
  26. surface09: '#C2C2C2',
  27. surface10: '#E0E0E0',
  28. surface11: '#FFF',
  29. success04: '#189B55',
  30. success05: '#1EC26A',
  31. warning05: '#F8AE1A',
  32. warning06: '#ED9E1B'
  33. };
  34. // Mapping between the token used and the color
  35. export const colorMap = {
  36. // Default page background
  37. uiBackground: 'surface01',
  38. // Container background
  39. ui01: 'surface02',
  40. ui02: 'surface03',
  41. ui03: 'surface04',
  42. ui04: 'surface05',
  43. ui05: 'surface06',
  44. // Primary buttons
  45. action01: 'primary05',
  46. // Hover state for primary buttons
  47. action01Hover: 'primary06',
  48. // Active state for primary buttons
  49. action01Active: 'primary04',
  50. // Focus border color
  51. action01Focus: 'primary08',
  52. // Disabled state for primary buttons
  53. action01Disabled: 'primary02',
  54. // Secondary buttons
  55. action02: 'surface04',
  56. // Hover state for secondary buttons
  57. action02Hover: 'surface05',
  58. // Active state for secondary buttons
  59. action02Active: 'surface03',
  60. // Focus border color
  61. action02Focus: 'surface07',
  62. // Disabled state for secondary buttons
  63. action02Disabled: 'surface02',
  64. // Tertiary buttons
  65. action03: 'transparent',
  66. // Hover state for tertiary buttons
  67. action03Hover: 'surface05',
  68. // Active state for tertiary buttons
  69. action03Active: 'surface03',
  70. // Focus border color
  71. action03Focus: 'surface07',
  72. // Disabled state for tertiary buttons
  73. action03Disabled: 'transparent',
  74. // Danger button background
  75. actionDanger: 'error05',
  76. // Hover state for danger buttons
  77. actionDangerHover: 'error06',
  78. // Active state for danger buttons
  79. actionDangerActive: 'error04',
  80. // Focus border color
  81. actionDangerFocus: 'error08',
  82. // Disabled state for danger buttons
  83. actionDangerDisabled: 'error03',
  84. // Primary text – default color for body copy & headers
  85. text01: 'surface11',
  86. // Secondary text with medium contrast
  87. text02: 'surface09',
  88. // Tertiary text with low contrast – placeholders, disabled actions, label for disabled buttons
  89. text03: 'surface07',
  90. // error messages
  91. textError: 'error06',
  92. // Primary color for icons
  93. icon01: 'surface11',
  94. // Secondary color for input fields
  95. icon02: 'surface09',
  96. // Tertiary color for disabled actions
  97. icon03: 'surface07',
  98. // Error message
  99. iconError: 'error06',
  100. // Forms
  101. // Default background for input fields
  102. field01: 'surface01',
  103. // Hover background for input fields
  104. field01Hover: 'surface03',
  105. // Focus border color
  106. field01Focus: 'primary05',
  107. // Disabled background for input fields
  108. field01Disabled: 'surface05',
  109. // Background for high-contrast input fields
  110. field02: 'surface11',
  111. // Background for high-contrast input fields on hover
  112. field02Hover: 'primary09',
  113. // Focus border color
  114. field02Focus: 'primary05',
  115. // Disabled background for high-contrast input fields
  116. field02Disabled: 'surface06',
  117. // Background for section header
  118. section01: 'surface10',
  119. // Active color for section header
  120. section01Active: 'primary04',
  121. // Inactive color for section header
  122. section01Inactive: 'surface01',
  123. // Borders
  124. // Border for the input fields in hover state
  125. border01: 'surface08',
  126. // Border for the input fields
  127. border02: 'surface06',
  128. // Line separators
  129. border03: 'surface04',
  130. // Color for error border & message
  131. borderError: 'error06',
  132. // Links
  133. // Default color for links
  134. link01: 'primary07',
  135. // Color for links in the hover state
  136. link01Hover: 'primary08',
  137. // Color for links in the active state
  138. link01Active: 'primary06',
  139. // Support
  140. // Color for positive messages applied to icons & borders
  141. success01: 'success05',
  142. // Color for positive messages applied to backgrounds
  143. success02: 'success05',
  144. // Color for warning messages applied to icons, borders & backgrounds
  145. warning01: 'warning05',
  146. // Color for indicating a raised hand
  147. warning02: 'warning06'
  148. };
  149. export const font = {
  150. weightRegular: '400',
  151. weightSemiBold: '600'
  152. };
  153. export const shape = {
  154. borderRadius: 6,
  155. boxShadow: 'inset 0px -1px 0px rgba(255, 255, 255, 0.15)'
  156. };
  157. export const spacing = [ 0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80 ];
  158. export const typography = {
  159. labelRegular: {
  160. fontSize: 12,
  161. lineHeight: 16,
  162. fontWeight: font.weightRegular,
  163. letterSpacing: 0.16
  164. },
  165. labelBold: {
  166. fontSize: 12,
  167. lineHeight: 16,
  168. fontWeight: font.weightSemiBold,
  169. letterSpacing: 0.16
  170. },
  171. labelButton: {
  172. fontSize: 14,
  173. lineHeight: 24,
  174. fontWeight: font.weightSemiBold,
  175. letterSpacing: 0
  176. },
  177. labelButtonLarge: {
  178. fontSize: 16,
  179. lineHeight: 24,
  180. fontWeight: font.weightSemiBold,
  181. letterSpacing: 0
  182. },
  183. bodyShortRegular: {
  184. fontSize: 14,
  185. lineHeight: 18,
  186. fontWeight: font.weightRegular,
  187. letterSpacing: 0
  188. },
  189. bodyShortBold: {
  190. fontSize: 14,
  191. lineHeight: 18,
  192. fontWeight: font.weightSemiBold,
  193. letterSpacing: 0
  194. },
  195. bodyShortRegularLarge: {
  196. fontSize: 16,
  197. lineHeight: 24,
  198. fontWeight: font.weightRegular,
  199. letterSpacing: 0
  200. },
  201. bodyShortBoldLarge: {
  202. fontSize: 16,
  203. lineHeight: 24,
  204. fontWeight: font.weightSemiBold,
  205. letterSpacing: 0
  206. },
  207. bodyLongRegular: {
  208. fontSize: 14,
  209. lineHeight: 24,
  210. fontWeight: font.weightRegular,
  211. letterSpacing: 0
  212. },
  213. bodyLongBold: {
  214. fontSize: 14,
  215. lineHeight: 24,
  216. fontWeight: font.weightSemiBold,
  217. letterSpacing: 0
  218. },
  219. heading1: {
  220. fontSize: 54,
  221. lineHeight: 64,
  222. fontWeight: font.weightSemiBold,
  223. letterSpacing: 0
  224. },
  225. heading2: {
  226. fontSize: 42,
  227. lineHeight: 50,
  228. fontWeight: font.weightSemiBold,
  229. letterSpacing: 0
  230. },
  231. heading3: {
  232. fontSize: 32,
  233. lineHeight: 40,
  234. fontWeight: font.weightSemiBold,
  235. letterSpacing: 0
  236. },
  237. heading4: {
  238. fontSize: 28,
  239. lineHeight: 36,
  240. fontWeight: font.weightSemiBold,
  241. letterSpacing: 0
  242. },
  243. heading5: {
  244. fontSize: 20,
  245. lineHeight: 28,
  246. fontWeight: font.weightSemiBold,
  247. letterSpacing: 0
  248. },
  249. heading6: {
  250. fontSize: 16,
  251. lineHeight: 26,
  252. fontWeight: font.weightSemiBold,
  253. letterSpacing: 0
  254. },
  255. heading7: {
  256. fontSize: 14,
  257. lineHeight: 24,
  258. fontWeight: font.weightSemiBold,
  259. letterSpacing: 0
  260. }
  261. };