@atlaskit/tokens 1.14.2 → 1.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
  3. package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
  4. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +313 -43
  5. package/dist/cjs/artifacts/theme-import-map.js +16 -4
  6. package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +13 -0
  7. package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +13 -0
  8. package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
  9. package/dist/cjs/artifacts/token-default-values.js +23 -2
  10. package/dist/cjs/artifacts/token-names.js +22 -1
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +1084 -0
  12. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +666 -0
  13. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +465 -253
  14. package/dist/cjs/entry-points/tokens-raw.js +2 -2
  15. package/dist/cjs/get-token-value.js +1 -1
  16. package/dist/cjs/get-token.js +1 -1
  17. package/dist/cjs/palettes/typography-palette.js +133 -16
  18. package/dist/cjs/theme-config.js +20 -4
  19. package/dist/cjs/tokens/atlassian-typography/font-family.js +11 -2
  20. package/dist/cjs/tokens/atlassian-typography/letter-spacing.js +29 -0
  21. package/dist/cjs/tokens/atlassian-typography/theme.js +140 -0
  22. package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +29 -0
  23. package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.js +8 -8
  24. package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.js +4 -4
  25. package/dist/cjs/tokens/atlassian-typography-adg3/letter-spacing.js +29 -0
  26. package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +4 -1
  27. package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +140 -0
  28. package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +29 -0
  29. package/dist/cjs/tokens/atlassian-typography-minor3/letter-spacing.js +29 -0
  30. package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +140 -0
  31. package/dist/cjs/tokens/default/typography/font-family.js +24 -0
  32. package/dist/cjs/tokens/default/typography/font.js +133 -0
  33. package/dist/cjs/tokens/default/typography/letter-spacing.js +54 -0
  34. package/dist/cjs/tokens/default/typography/line-height.js +8 -0
  35. package/dist/es2019/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
  36. package/dist/es2019/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
  37. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +313 -43
  38. package/dist/es2019/artifacts/theme-import-map.js +8 -4
  39. package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +50 -0
  40. package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +31 -0
  41. package/dist/es2019/artifacts/themes/atlassian-typography.js +23 -21
  42. package/dist/es2019/artifacts/token-default-values.js +23 -2
  43. package/dist/es2019/artifacts/token-names.js +22 -1
  44. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +1077 -0
  45. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +659 -0
  46. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +465 -253
  47. package/dist/es2019/entry-points/tokens-raw.js +1 -1
  48. package/dist/es2019/get-token-value.js +1 -1
  49. package/dist/es2019/get-token.js +1 -1
  50. package/dist/es2019/palettes/typography-palette.js +135 -17
  51. package/dist/es2019/theme-config.js +20 -4
  52. package/dist/es2019/tokens/atlassian-typography/font-family.js +11 -2
  53. package/dist/es2019/tokens/atlassian-typography/letter-spacing.js +22 -0
  54. package/dist/es2019/tokens/atlassian-typography/theme.js +133 -0
  55. package/dist/es2019/tokens/atlassian-typography-adg3/font-family.js +22 -0
  56. package/dist/es2019/tokens/atlassian-typography-adg3/font-size.js +31 -0
  57. package/dist/es2019/tokens/atlassian-typography-adg3/font-weight.js +19 -0
  58. package/dist/es2019/tokens/atlassian-typography-adg3/letter-spacing.js +22 -0
  59. package/dist/es2019/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +4 -1
  60. package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +133 -0
  61. package/dist/es2019/tokens/atlassian-typography-minor3/font-family.js +22 -0
  62. package/dist/es2019/tokens/atlassian-typography-minor3/letter-spacing.js +22 -0
  63. package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +133 -0
  64. package/dist/es2019/tokens/default/typography/font-family.js +24 -0
  65. package/dist/es2019/tokens/default/typography/font.js +126 -0
  66. package/dist/es2019/tokens/default/typography/letter-spacing.js +47 -0
  67. package/dist/es2019/tokens/default/typography/line-height.js +8 -0
  68. package/dist/esm/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
  69. package/dist/esm/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
  70. package/dist/esm/artifacts/palettes-raw/typography-palette.js +313 -43
  71. package/dist/esm/artifacts/theme-import-map.js +12 -4
  72. package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +6 -0
  73. package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +6 -0
  74. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  75. package/dist/esm/artifacts/token-default-values.js +23 -2
  76. package/dist/esm/artifacts/token-names.js +22 -1
  77. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +1077 -0
  78. package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +659 -0
  79. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +465 -253
  80. package/dist/esm/entry-points/tokens-raw.js +1 -1
  81. package/dist/esm/get-token-value.js +1 -1
  82. package/dist/esm/get-token.js +1 -1
  83. package/dist/esm/palettes/typography-palette.js +133 -16
  84. package/dist/esm/theme-config.js +20 -4
  85. package/dist/esm/tokens/atlassian-typography/font-family.js +11 -2
  86. package/dist/esm/tokens/atlassian-typography/letter-spacing.js +22 -0
  87. package/dist/esm/tokens/atlassian-typography/theme.js +133 -0
  88. package/dist/esm/tokens/atlassian-typography-adg3/font-family.js +22 -0
  89. package/dist/esm/tokens/atlassian-typography-adg3/font-size.js +31 -0
  90. package/dist/esm/tokens/atlassian-typography-adg3/font-weight.js +19 -0
  91. package/dist/esm/tokens/atlassian-typography-adg3/letter-spacing.js +22 -0
  92. package/dist/esm/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +4 -1
  93. package/dist/esm/tokens/atlassian-typography-adg3/theme.js +133 -0
  94. package/dist/esm/tokens/atlassian-typography-minor3/font-family.js +22 -0
  95. package/dist/esm/tokens/atlassian-typography-minor3/letter-spacing.js +22 -0
  96. package/dist/esm/tokens/atlassian-typography-minor3/theme.js +133 -0
  97. package/dist/esm/tokens/default/typography/font-family.js +24 -0
  98. package/dist/esm/tokens/default/typography/font.js +126 -0
  99. package/dist/esm/tokens/default/typography/letter-spacing.js +47 -0
  100. package/dist/esm/tokens/default/typography/line-height.js +8 -0
  101. package/dist/types/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
  102. package/dist/types/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -2
  103. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  104. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  105. package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +7 -0
  106. package/dist/types/artifacts/themes/atlassian-typography-minor3.d.ts +7 -0
  107. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  108. package/dist/types/artifacts/token-default-values.d.ts +23 -2
  109. package/dist/types/artifacts/token-names.d.ts +43 -1
  110. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +101 -0
  111. package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +137 -0
  112. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +111 -3
  113. package/dist/types/artifacts/types-internal.d.ts +2 -2
  114. package/dist/types/artifacts/types.d.ts +2 -2
  115. package/dist/types/entry-points/tokens-raw.d.ts +1 -1
  116. package/dist/types/index.d.ts +1 -1
  117. package/dist/types/palettes/typography-palette.d.ts +8 -6
  118. package/dist/types/theme-config.d.ts +4 -4
  119. package/dist/types/tokens/atlassian-typography/letter-spacing.d.ts +4 -0
  120. package/dist/types/tokens/atlassian-typography/theme.d.ts +10 -0
  121. package/dist/types/tokens/atlassian-typography-adg3/font-family.d.ts +4 -0
  122. package/dist/types/tokens/atlassian-typography-adg3/letter-spacing.d.ts +4 -0
  123. package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +10 -0
  124. package/dist/types/tokens/atlassian-typography-minor3/font-family.d.ts +4 -0
  125. package/dist/types/tokens/atlassian-typography-minor3/letter-spacing.d.ts +4 -0
  126. package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +10 -0
  127. package/dist/types/tokens/default/typography/font.d.ts +20 -0
  128. package/dist/types/tokens/default/typography/letter-spacing.d.ts +4 -0
  129. package/dist/types/types.d.ts +111 -22
  130. package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
  131. package/dist/types-ts4.5/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -2
  132. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  133. package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
  134. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +7 -0
  135. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-minor3.d.ts +7 -0
  136. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  137. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +23 -2
  138. package/dist/types-ts4.5/artifacts/token-names.d.ts +43 -1
  139. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +101 -0
  140. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +137 -0
  141. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +111 -3
  142. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  143. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  144. package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +1 -1
  145. package/dist/types-ts4.5/index.d.ts +1 -1
  146. package/dist/types-ts4.5/palettes/typography-palette.d.ts +8 -6
  147. package/dist/types-ts4.5/theme-config.d.ts +7 -3
  148. package/dist/types-ts4.5/tokens/atlassian-typography/letter-spacing.d.ts +4 -0
  149. package/dist/types-ts4.5/tokens/atlassian-typography/theme.d.ts +10 -0
  150. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/font-family.d.ts +4 -0
  151. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/letter-spacing.d.ts +4 -0
  152. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +10 -0
  153. package/dist/types-ts4.5/tokens/atlassian-typography-minor3/font-family.d.ts +4 -0
  154. package/dist/types-ts4.5/tokens/atlassian-typography-minor3/letter-spacing.d.ts +4 -0
  155. package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +10 -0
  156. package/dist/types-ts4.5/tokens/default/typography/font.d.ts +20 -0
  157. package/dist/types-ts4.5/tokens/default/typography/letter-spacing.d.ts +4 -0
  158. package/dist/types-ts4.5/types.d.ts +111 -22
  159. package/figma/atlassian-typography-adg3.json +150 -0
  160. package/figma/atlassian-typography-minor3.json +51 -0
  161. package/figma/atlassian-typography.json +19 -82
  162. package/package.json +1 -2
  163. package/report.api.md +87 -2
  164. package/tmp/api-report-tmp.d.ts +65 -7
  165. package/dist/es2019/tokens/atlassian-typography/font-size.js +0 -31
  166. package/dist/es2019/tokens/atlassian-typography/font-weight.js +0 -19
  167. package/dist/esm/tokens/atlassian-typography/font-size.js +0 -31
  168. package/dist/esm/tokens/atlassian-typography/font-weight.js +0 -19
  169. /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.d.ts +0 -0
  170. /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.d.ts +0 -0
  171. /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.d.ts +0 -0
  172. /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.d.ts +0 -0
  173. /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.d.ts +0 -0
  174. /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  export { default as light } from '../artifacts/tokens-raw/atlassian-light';
2
2
  export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
3
3
  export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
4
- export { default as typography } from '../artifacts/tokens-raw/atlassian-typography';
4
+ export { default as typography } from '../artifacts/tokens-raw/atlassian-typography-adg3';
5
5
  export { default as shape } from '../artifacts/tokens-raw/atlassian-shape';
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  const name = "@atlaskit/tokens";
4
- const version = "1.14.2";
4
+ const version = "1.15.1";
5
5
  /**
6
6
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
7
  * resulting CSS Custom Property.
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  const name = "@atlaskit/tokens";
5
- const version = "1.14.2";
5
+ const version = "1.15.1";
6
6
  /**
7
7
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
8
  * This should be used to implement design decisions throughout your application.
@@ -1,5 +1,45 @@
1
+ const letterSpacingScale = {
2
+ letterSpacing: {
3
+ LetterSpacing0: {
4
+ value: '0',
5
+ attributes: {
6
+ group: 'typography'
7
+ }
8
+ },
9
+ LetterSpacing100: {
10
+ value: '-0.003em',
11
+ attributes: {
12
+ group: 'typography'
13
+ }
14
+ },
15
+ LetterSpacing200: {
16
+ value: '-0.006em',
17
+ attributes: {
18
+ group: 'typography'
19
+ }
20
+ },
21
+ LetterSpacing300: {
22
+ value: '-0.008em',
23
+ attributes: {
24
+ group: 'typography'
25
+ }
26
+ },
27
+ LetterSpacing400: {
28
+ value: '-0.01em',
29
+ attributes: {
30
+ group: 'typography'
31
+ }
32
+ }
33
+ }
34
+ };
1
35
  const lineHeightScale = {
2
36
  lineHeight: {
37
+ LineHeight1: {
38
+ value: '1',
39
+ attributes: {
40
+ group: 'typography'
41
+ }
42
+ },
3
43
  LineHeight100: {
4
44
  value: 16,
5
45
  attributes: {
@@ -31,6 +71,12 @@ const lineHeightScale = {
31
71
  }
32
72
  },
33
73
  LineHeight600: {
74
+ value: 36,
75
+ attributes: {
76
+ group: 'typography'
77
+ }
78
+ },
79
+ LineHeight700: {
34
80
  value: 40,
35
81
  attributes: {
36
82
  group: 'typography'
@@ -40,25 +86,25 @@ const lineHeightScale = {
40
86
  };
41
87
  const fontWeightScale = {
42
88
  fontWeight: {
43
- FontWeightRegular: {
89
+ FontWeight400: {
44
90
  value: '400',
45
91
  attributes: {
46
92
  group: 'typography'
47
93
  }
48
94
  },
49
- FontWeightMedium: {
95
+ FontWeight500: {
50
96
  value: '500',
51
97
  attributes: {
52
98
  group: 'typography'
53
99
  }
54
100
  },
55
- FontWeightSemiBold: {
101
+ FontWeight600: {
56
102
  value: '600',
57
103
  attributes: {
58
104
  group: 'typography'
59
105
  }
60
106
  },
61
- FontWeightBold: {
107
+ FontWeight700: {
62
108
  value: '700',
63
109
  attributes: {
64
110
  group: 'typography'
@@ -68,14 +114,55 @@ const fontWeightScale = {
68
114
  };
69
115
  const fontFamilyPalette = {
70
116
  fontFamily: {
71
- FontFamilySans: {
72
- value: `-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif`,
117
+ FontFamilyCharlie: {
118
+ value: 'Charlie Sans',
119
+ attributes: {
120
+ group: 'typography'
121
+ }
122
+ },
123
+ LegacyFontFamilyWebSans: {
124
+ value: `-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif`,
125
+ attributes: {
126
+ group: 'typography'
127
+ }
128
+ },
129
+ /**
130
+ * @see https://infinnie.github.io/blog/2017/systemui.html
131
+ * @see https://github.com/twbs/bootstrap/pull/22377
132
+ * @see https://fonts.google.com/knowledge/glossary/system_font_web_safe_font
133
+ */
134
+ FontFamilyWebSans: {
135
+ value: `ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif`,
73
136
  attributes: {
74
137
  group: 'typography'
75
138
  }
76
139
  },
77
- FontFamilyMonospace: {
78
- value: `"SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace`,
140
+ FontFamilyiOSSans: {
141
+ value: 'SF Pro',
142
+ attributes: {
143
+ group: 'typography'
144
+ }
145
+ },
146
+ FontFamilyAndroidSans: {
147
+ value: 'Roboto',
148
+ attributes: {
149
+ group: 'typography'
150
+ }
151
+ },
152
+ FontFamilyWebMono: {
153
+ value: `ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace`,
154
+ attributes: {
155
+ group: 'typography'
156
+ }
157
+ },
158
+ FontFamilyiOSMono: {
159
+ value: 'SF Mono',
160
+ attributes: {
161
+ group: 'typography'
162
+ }
163
+ },
164
+ FontFamilyAndroidMono: {
165
+ value: 'Roboto Mono',
79
166
  attributes: {
80
167
  group: 'typography'
81
168
  }
@@ -84,53 +171,83 @@ const fontFamilyPalette = {
84
171
  };
85
172
  const fontSizeScale = {
86
173
  fontSize: {
87
- FontSize050: {
174
+ FontSizeCode: {
175
+ value: '0.875em',
176
+ attributes: {
177
+ group: 'typography'
178
+ }
179
+ },
180
+ LegacyFontSize11: {
88
181
  value: 11,
89
182
  attributes: {
90
183
  group: 'typography'
91
184
  }
92
185
  },
93
- FontSize075: {
186
+ FontSize12: {
94
187
  value: 12,
95
188
  attributes: {
96
189
  group: 'typography'
97
190
  }
98
191
  },
99
- FontSize100: {
192
+ FontSize14: {
100
193
  value: 14,
101
194
  attributes: {
102
195
  group: 'typography'
103
196
  }
104
197
  },
105
- FontSize200: {
198
+ FontSize16: {
106
199
  value: 16,
107
200
  attributes: {
108
201
  group: 'typography'
109
202
  }
110
203
  },
111
- FontSize300: {
204
+ FontSize20: {
112
205
  value: 20,
113
206
  attributes: {
114
207
  group: 'typography'
115
208
  }
116
209
  },
117
- FontSize400: {
210
+ FontSize24: {
118
211
  value: 24,
119
212
  attributes: {
120
213
  group: 'typography'
121
214
  }
122
215
  },
123
- FontSize500: {
216
+ FontSize28: {
217
+ value: 28,
218
+ attributes: {
219
+ group: 'typography'
220
+ }
221
+ },
222
+ LegacyFontSize29: {
124
223
  value: 29,
125
224
  attributes: {
126
225
  group: 'typography'
127
226
  }
128
227
  },
129
- FontSize600: {
228
+ FontSize32: {
229
+ value: 32,
230
+ attributes: {
231
+ group: 'typography'
232
+ }
233
+ },
234
+ LegacyFontSize35: {
130
235
  value: 35,
131
236
  attributes: {
132
237
  group: 'typography'
133
238
  }
239
+ },
240
+ FontSize36: {
241
+ value: 36,
242
+ attributes: {
243
+ group: 'typography'
244
+ }
245
+ },
246
+ FontSize48: {
247
+ value: 48,
248
+ attributes: {
249
+ group: 'typography'
250
+ }
134
251
  }
135
252
  }
136
253
  };
@@ -139,7 +256,8 @@ const typographyPalette = {
139
256
  ...fontSizeScale,
140
257
  ...fontWeightScale,
141
258
  ...fontFamilyPalette,
142
- ...lineHeightScale
259
+ ...lineHeightScale,
260
+ ...letterSpacingScale
143
261
  }
144
262
  };
145
263
  export default typographyPalette;
@@ -34,7 +34,7 @@ export const themeColorModes = ['light', 'dark', 'auto'];
34
34
  *
35
35
  * These ids must be kebab case
36
36
  */
37
- export const themeIds = ['light', 'dark', 'legacy-light', 'legacy-dark', 'spacing', 'typography', 'shape'];
37
+ export const themeIds = ['light', 'dark', 'legacy-light', 'legacy-dark', 'spacing', 'typography', 'shape', 'typography-adg3', 'typography-minor3'];
38
38
  /**
39
39
  * Theme override ids: the equivalent of themeIds for theme overrides.
40
40
  * Theme overrides are temporary and there may not be any defined at times.
@@ -104,9 +104,9 @@ const themeConfig = {
104
104
  type: 'spacing'
105
105
  }
106
106
  },
107
- 'atlassian-typography': {
108
- id: 'typography',
109
- displayName: 'Atlassian Typography',
107
+ 'atlassian-typography-adg3': {
108
+ id: 'typography-adg3',
109
+ displayName: 'ADG3 Typography',
110
110
  palette: 'typographyPalette',
111
111
  attributes: {
112
112
  type: 'typography'
@@ -139,6 +139,22 @@ const themeConfig = {
139
139
  type: 'color',
140
140
  mode: 'dark'
141
141
  }
142
+ },
143
+ 'atlassian-typography': {
144
+ id: 'typography',
145
+ displayName: 'Atlassian Typography (Minor Second)',
146
+ palette: 'typographyPalette',
147
+ attributes: {
148
+ type: 'typography'
149
+ }
150
+ },
151
+ 'atlassian-typography-minor3': {
152
+ id: 'typography-minor3',
153
+ displayName: 'Atlassian Typography (Minor Third)',
154
+ palette: 'typographyPalette',
155
+ attributes: {
156
+ type: 'typography'
157
+ }
142
158
  }
143
159
  };
144
160
 
@@ -2,10 +2,19 @@ const font = {
2
2
  font: {
3
3
  family: {
4
4
  sans: {
5
- value: 'FontFamilySans'
5
+ value: 'FontFamilyWebSans'
6
6
  },
7
7
  monospace: {
8
- value: 'FontFamilyMonospace'
8
+ value: 'FontFamilyWebMono'
9
+ },
10
+ product: {
11
+ value: 'FontFamilyWebSans'
12
+ },
13
+ brand: {
14
+ value: 'FontFamilyCharlie'
15
+ },
16
+ code: {
17
+ value: 'FontFamilyWebMono'
9
18
  }
10
19
  }
11
20
  }
@@ -0,0 +1,22 @@
1
+ const font = {
2
+ font: {
3
+ letterSpacing: {
4
+ '0': {
5
+ value: 'LetterSpacing0'
6
+ },
7
+ '100': {
8
+ value: 'LetterSpacing0'
9
+ },
10
+ '200': {
11
+ value: 'LetterSpacing0'
12
+ },
13
+ '300': {
14
+ value: 'LetterSpacing0'
15
+ },
16
+ '400': {
17
+ value: 'LetterSpacing0'
18
+ }
19
+ }
20
+ }
21
+ };
22
+ export default font;
@@ -0,0 +1,133 @@
1
+ const typography = {
2
+ font: {
3
+ heading: {
4
+ xxl: {
5
+ value: {
6
+ fontWeight: 'FontWeight700',
7
+ fontSize: 'FontSize36',
8
+ lineHeight: 'LineHeight700',
9
+ fontFamily: 'FontFamilyWebSans',
10
+ fontStyle: 'normal',
11
+ letterSpacing: 'LetterSpacing0'
12
+ }
13
+ },
14
+ xl: {
15
+ value: {
16
+ fontWeight: 'FontWeight700',
17
+ fontSize: 'FontSize28',
18
+ lineHeight: 'LineHeight500',
19
+ fontFamily: 'FontFamilyWebSans',
20
+ fontStyle: 'normal',
21
+ letterSpacing: 'LetterSpacing0'
22
+ }
23
+ },
24
+ lg: {
25
+ value: {
26
+ fontWeight: 'FontWeight700',
27
+ fontSize: 'FontSize24',
28
+ lineHeight: 'LineHeight400',
29
+ fontFamily: 'FontFamilyWebSans',
30
+ fontStyle: 'normal',
31
+ letterSpacing: 'LetterSpacing0'
32
+ }
33
+ },
34
+ md: {
35
+ value: {
36
+ fontWeight: 'FontWeight700',
37
+ fontSize: 'FontSize20',
38
+ lineHeight: 'LineHeight300',
39
+ fontFamily: 'FontFamilyWebSans',
40
+ fontStyle: 'normal',
41
+ letterSpacing: 'LetterSpacing0'
42
+ }
43
+ },
44
+ sm: {
45
+ value: {
46
+ fontWeight: 'FontWeight700',
47
+ fontSize: 'FontSize16',
48
+ lineHeight: 'LineHeight200',
49
+ fontFamily: 'FontFamilyWebSans',
50
+ fontStyle: 'normal',
51
+ letterSpacing: 'LetterSpacing0'
52
+ }
53
+ },
54
+ xs: {
55
+ value: {
56
+ fontWeight: 'FontWeight700',
57
+ fontSize: 'FontSize14',
58
+ lineHeight: 'LineHeight100',
59
+ fontFamily: 'FontFamilyWebSans',
60
+ fontStyle: 'normal',
61
+ letterSpacing: 'LetterSpacing0'
62
+ }
63
+ },
64
+ xxs: {
65
+ value: {
66
+ fontWeight: 'FontWeight700',
67
+ fontSize: 'FontSize12',
68
+ lineHeight: 'LineHeight100',
69
+ fontFamily: 'FontFamilyWebSans',
70
+ fontStyle: 'normal',
71
+ letterSpacing: 'LetterSpacing0'
72
+ }
73
+ }
74
+ },
75
+ code: {
76
+ '[default]': {
77
+ value: {
78
+ fontWeight: 'FontWeight400',
79
+ fontSize: 'FontSizeCode',
80
+ lineHeight: 'LineHeight1',
81
+ fontFamily: 'FontFamilyWebMono',
82
+ fontStyle: 'normal',
83
+ letterSpacing: 'LetterSpacing0'
84
+ }
85
+ }
86
+ },
87
+ body: {
88
+ '[default]': {
89
+ value: {
90
+ fontWeight: 'FontWeight400',
91
+ fontSize: 'FontSize14',
92
+ lineHeight: 'LineHeight200',
93
+ fontFamily: 'FontFamilyWebSans',
94
+ fontStyle: 'normal',
95
+ letterSpacing: 'LetterSpacing0'
96
+ }
97
+ },
98
+ sm: {
99
+ value: {
100
+ fontWeight: 'FontWeight400',
101
+ fontSize: 'FontSize12',
102
+ lineHeight: 'LineHeight200',
103
+ fontFamily: 'FontFamilyWebSans',
104
+ fontStyle: 'normal',
105
+ letterSpacing: 'LetterSpacing0'
106
+ }
107
+ }
108
+ },
109
+ ui: {
110
+ '[default]': {
111
+ value: {
112
+ fontWeight: 'FontWeight400',
113
+ fontSize: 'FontSize14',
114
+ lineHeight: 'LineHeight1',
115
+ fontFamily: 'FontFamilyWebSans',
116
+ fontStyle: 'normal',
117
+ letterSpacing: 'LetterSpacing0'
118
+ }
119
+ },
120
+ sm: {
121
+ value: {
122
+ fontWeight: 'FontWeight400',
123
+ fontSize: 'FontSize12',
124
+ lineHeight: 'LineHeight1',
125
+ fontFamily: 'FontFamilyWebSans',
126
+ fontStyle: 'normal',
127
+ letterSpacing: 'LetterSpacing0'
128
+ }
129
+ }
130
+ }
131
+ }
132
+ };
133
+ export default typography;
@@ -0,0 +1,22 @@
1
+ const font = {
2
+ font: {
3
+ family: {
4
+ sans: {
5
+ value: 'LegacyFontFamilyWebSans'
6
+ },
7
+ monospace: {
8
+ value: 'FontFamilyWebMono'
9
+ },
10
+ product: {
11
+ value: 'FontFamilyWebSans'
12
+ },
13
+ brand: {
14
+ value: 'FontFamilyCharlie'
15
+ },
16
+ code: {
17
+ value: 'FontFamilyWebMono'
18
+ }
19
+ }
20
+ }
21
+ };
22
+ export default font;
@@ -0,0 +1,31 @@
1
+ const font = {
2
+ font: {
3
+ size: {
4
+ '050': {
5
+ value: 'LegacyFontSize11'
6
+ },
7
+ '075': {
8
+ value: 'FontSize12'
9
+ },
10
+ '100': {
11
+ value: 'FontSize14'
12
+ },
13
+ '200': {
14
+ value: 'FontSize16'
15
+ },
16
+ '300': {
17
+ value: 'FontSize20'
18
+ },
19
+ '400': {
20
+ value: 'FontSize24'
21
+ },
22
+ '500': {
23
+ value: 'LegacyFontSize29'
24
+ },
25
+ '600': {
26
+ value: 'LegacyFontSize35'
27
+ }
28
+ }
29
+ }
30
+ };
31
+ export default font;
@@ -0,0 +1,19 @@
1
+ const font = {
2
+ font: {
3
+ weight: {
4
+ regular: {
5
+ value: 'FontWeight400'
6
+ },
7
+ medium: {
8
+ value: 'FontWeight500'
9
+ },
10
+ semibold: {
11
+ value: 'FontWeight600'
12
+ },
13
+ bold: {
14
+ value: 'FontWeight700'
15
+ }
16
+ }
17
+ }
18
+ };
19
+ export default font;
@@ -0,0 +1,22 @@
1
+ const font = {
2
+ font: {
3
+ letterSpacing: {
4
+ '0': {
5
+ value: 'LetterSpacing0'
6
+ },
7
+ '100': {
8
+ value: 'LetterSpacing100'
9
+ },
10
+ '200': {
11
+ value: 'LetterSpacing200'
12
+ },
13
+ '300': {
14
+ value: 'LetterSpacing300'
15
+ },
16
+ '400': {
17
+ value: 'LetterSpacing400'
18
+ }
19
+ }
20
+ }
21
+ };
22
+ export default font;
@@ -1,6 +1,9 @@
1
1
  const font = {
2
2
  font: {
3
3
  lineHeight: {
4
+ '1': {
5
+ value: 'LineHeight1'
6
+ },
4
7
  '100': {
5
8
  value: 'LineHeight100'
6
9
  },
@@ -17,7 +20,7 @@ const font = {
17
20
  value: 'LineHeight500'
18
21
  },
19
22
  '600': {
20
- value: 'LineHeight600'
23
+ value: 'LineHeight700'
21
24
  }
22
25
  }
23
26
  }