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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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 = [ 0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128 ];
  95. export const typography = {
  96. labelRegular: 'label01',
  97. labelBold: 'labelBold01',
  98. bodyShortRegularSmall: {
  99. fontSize: 10,
  100. lineHeight: 16,
  101. fontWeight: font.weightRegular,
  102. letterSpacing: 0
  103. },
  104. bodyShortRegular: {
  105. fontSize: 14,
  106. lineHeight: 20,
  107. fontWeight: font.weightRegular,
  108. letterSpacing: 0
  109. },
  110. bodyShortBold: {
  111. fontSize: 14,
  112. lineHeight: 20,
  113. fontWeight: font.weightSemiBold,
  114. letterSpacing: 0
  115. },
  116. bodyShortRegularLarge: {
  117. fontSize: 16,
  118. lineHeight: 22,
  119. fontWeight: font.weightRegular,
  120. letterSpacing: 0
  121. },
  122. bodyShortBoldLarge: {
  123. fontSize: 16,
  124. lineHeight: 22,
  125. fontWeight: font.weightSemiBold,
  126. letterSpacing: 0
  127. },
  128. bodyLongRegular: {
  129. fontSize: 14,
  130. lineHeight: 24,
  131. fontWeight: font.weightRegular,
  132. letterSpacing: 0
  133. },
  134. bodyLongRegularLarge: {
  135. fontSize: 16,
  136. lineHeight: 26,
  137. fontWeight: font.weightRegular,
  138. letterSpacing: 0
  139. },
  140. bodyLongBold: {
  141. fontSize: 14,
  142. lineHeight: 24,
  143. fontWeight: font.weightSemiBold,
  144. letterSpacing: 0
  145. },
  146. bodyLongBoldLarge: {
  147. fontSize: 16,
  148. lineHeight: 26,
  149. fontWeight: font.weightSemiBold,
  150. letterSpacing: 0
  151. },
  152. heading1: 'heading01',
  153. heading2: 'heading02',
  154. heading3: {
  155. fontSize: 32,
  156. lineHeight: 40,
  157. fontWeight: font.weightSemiBold,
  158. letterSpacing: 0
  159. },
  160. heading4: {
  161. fontSize: 28,
  162. lineHeight: 36,
  163. fontWeight: font.weightSemiBold,
  164. letterSpacing: 0
  165. },
  166. heading5: {
  167. fontSize: 20,
  168. lineHeight: 28,
  169. fontWeight: font.weightSemiBold,
  170. letterSpacing: 0
  171. },
  172. heading6: {
  173. fontSize: 16,
  174. lineHeight: 26,
  175. fontWeight: font.weightSemiBold,
  176. letterSpacing: 0
  177. }
  178. };
  179. export const breakpoints = {
  180. values: {
  181. '0': 0,
  182. '320': 320,
  183. '400': 400,
  184. '480': 480
  185. }
  186. };