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.

Tokens.ts 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. // Mapping between the token used and the color
  2. export const colorMap = {
  3. // ----- Surfaces -----
  4. // Default page background. If this changes, make sure to adapt the native side as well:
  5. // - JitsiMeetView.m
  6. // - JitsiMeetView.java
  7. uiBackground: 'surface01',
  8. // Container backgrounds
  9. ui01: 'surface02',
  10. ui02: 'surface03',
  11. ui03: 'ui02',
  12. ui04: 'surface05',
  13. ui05: 'ui01',
  14. ui06: 'ui03',
  15. ui07: 'surface08',
  16. ui08: 'ui21',
  17. ui09: 'ui08',
  18. ui10: 'ui04',
  19. // ----- Actions -----
  20. // Primary
  21. action01: 'action01',
  22. action01Hover: 'hover01',
  23. action01Active: 'active01',
  24. // Secondary
  25. action02: 'action02',
  26. action02Hover: 'hover02',
  27. action02Active: 'active02',
  28. // Destructive
  29. actionDanger: 'action03',
  30. actionDangerHover: 'hover03',
  31. actionDangerActive: 'active03',
  32. // Tertiary
  33. action03: 'transparent',
  34. action03Hover: 'hover05',
  35. action03Active: 'surface03',
  36. // Disabled
  37. disabled01: 'disabled01',
  38. // Focus
  39. focus01: 'focus01',
  40. // ----- Links -----
  41. link01: 'action01',
  42. link01Hover: 'hover07',
  43. link01Active: 'action04',
  44. // ----- Text -----
  45. // Primary
  46. text01: 'textColor01',
  47. // Secondary
  48. text02: 'textColor02',
  49. // Tertiary
  50. text03: 'ui03',
  51. // High-contrast
  52. text04: 'surface01',
  53. // Error
  54. textError: 'alertRed',
  55. // ----- Icons -----
  56. // Primary
  57. icon01: 'icon01',
  58. // Secondary
  59. icon02: 'ui21',
  60. // Tertiary
  61. icon03: 'icon07',
  62. // High-contrast
  63. icon04: 'surface01',
  64. // Error
  65. iconError: 'action03',
  66. // Normal
  67. iconNormal: 'action04',
  68. // Success
  69. iconSuccess: 'alertGreen',
  70. // Warning
  71. iconWarning: 'warning01',
  72. // ----- Forms -----
  73. field01: 'ui02',
  74. // ----- Feedback -----
  75. // Success
  76. success01: 'success05',
  77. success02: 'success01',
  78. // Warning
  79. warning01: 'warning01',
  80. warning02: 'warning06',
  81. // ----- Support -----
  82. support05: 'support05',
  83. support06: 'support06'
  84. };
  85. export const font = {
  86. weightRegular: '400',
  87. weightSemiBold: '600'
  88. };
  89. export const shape = {
  90. borderRadius: 6,
  91. circleRadius: 50,
  92. boxShadow: 'inset 0px -1px 0px rgba(255, 255, 255, 0.15)'
  93. };
  94. export const spacing
  95. = [ 0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128 ];
  96. export const typography = {
  97. labelRegular: 'label01',
  98. labelBold: 'labelBold01',
  99. bodyShortRegularSmall: {
  100. fontSize: '0.625rem',
  101. lineHeight: '1rem',
  102. fontWeight: font.weightRegular,
  103. letterSpacing: 0
  104. },
  105. bodyShortRegular: {
  106. fontSize: '0.875rem',
  107. lineHeight: '1.25rem',
  108. fontWeight: font.weightRegular,
  109. letterSpacing: 0
  110. },
  111. bodyShortBold: {
  112. fontSize: '0.875rem',
  113. lineHeight: '1.25rem',
  114. fontWeight: font.weightSemiBold,
  115. letterSpacing: 0
  116. },
  117. bodyShortRegularLarge: {
  118. fontSize: '1rem',
  119. lineHeight: '1.375rem',
  120. fontWeight: font.weightRegular,
  121. letterSpacing: 0
  122. },
  123. bodyShortBoldLarge: {
  124. fontSize: '1rem',
  125. lineHeight: '1.375rem',
  126. fontWeight: font.weightSemiBold,
  127. letterSpacing: 0
  128. },
  129. bodyLongRegular: {
  130. fontSize: '0.875rem',
  131. lineHeight: '1.5rem',
  132. fontWeight: font.weightRegular,
  133. letterSpacing: 0
  134. },
  135. bodyLongRegularLarge: {
  136. fontSize: '1rem',
  137. lineHeight: '1.625rem',
  138. fontWeight: font.weightRegular,
  139. letterSpacing: 0
  140. },
  141. bodyLongBold: {
  142. fontSize: '0.875rem',
  143. lineHeight: '1.5rem',
  144. fontWeight: font.weightSemiBold,
  145. letterSpacing: 0
  146. },
  147. bodyLongBoldLarge: {
  148. fontSize: '1rem',
  149. lineHeight: '1.625rem',
  150. fontWeight: font.weightSemiBold,
  151. letterSpacing: 0
  152. },
  153. heading1: 'heading01',
  154. heading2: 'heading02',
  155. heading3: {
  156. fontSize: '2rem',
  157. lineHeight: '2.5rem',
  158. fontWeight: font.weightSemiBold,
  159. letterSpacing: 0
  160. },
  161. heading4: {
  162. fontSize: '1.75rem',
  163. lineHeight: '2.25rem',
  164. fontWeight: font.weightSemiBold,
  165. letterSpacing: 0
  166. },
  167. heading5: {
  168. fontSize: '1.25rem',
  169. lineHeight: '1.75rem',
  170. fontWeight: font.weightSemiBold,
  171. letterSpacing: 0
  172. },
  173. heading6: {
  174. fontSize: '1rem',
  175. lineHeight: '1.625rem',
  176. fontWeight: font.weightSemiBold,
  177. letterSpacing: 0
  178. }
  179. };
  180. export const breakpoints = {
  181. values: {
  182. '0': 0,
  183. '320': 320,
  184. '400': 400,
  185. '480': 480
  186. }
  187. };