@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
  var name = "@atlaskit/tokens";
4
- var version = "1.14.2";
4
+ var 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
  var name = "@atlaskit/tokens";
5
- var version = "1.14.2";
5
+ var 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,8 +1,48 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ var letterSpacingScale = {
5
+ letterSpacing: {
6
+ LetterSpacing0: {
7
+ value: '0',
8
+ attributes: {
9
+ group: 'typography'
10
+ }
11
+ },
12
+ LetterSpacing100: {
13
+ value: '-0.003em',
14
+ attributes: {
15
+ group: 'typography'
16
+ }
17
+ },
18
+ LetterSpacing200: {
19
+ value: '-0.006em',
20
+ attributes: {
21
+ group: 'typography'
22
+ }
23
+ },
24
+ LetterSpacing300: {
25
+ value: '-0.008em',
26
+ attributes: {
27
+ group: 'typography'
28
+ }
29
+ },
30
+ LetterSpacing400: {
31
+ value: '-0.01em',
32
+ attributes: {
33
+ group: 'typography'
34
+ }
35
+ }
36
+ }
37
+ };
4
38
  var lineHeightScale = {
5
39
  lineHeight: {
40
+ LineHeight1: {
41
+ value: '1',
42
+ attributes: {
43
+ group: 'typography'
44
+ }
45
+ },
6
46
  LineHeight100: {
7
47
  value: 16,
8
48
  attributes: {
@@ -34,6 +74,12 @@ var lineHeightScale = {
34
74
  }
35
75
  },
36
76
  LineHeight600: {
77
+ value: 36,
78
+ attributes: {
79
+ group: 'typography'
80
+ }
81
+ },
82
+ LineHeight700: {
37
83
  value: 40,
38
84
  attributes: {
39
85
  group: 'typography'
@@ -43,25 +89,25 @@ var lineHeightScale = {
43
89
  };
44
90
  var fontWeightScale = {
45
91
  fontWeight: {
46
- FontWeightRegular: {
92
+ FontWeight400: {
47
93
  value: '400',
48
94
  attributes: {
49
95
  group: 'typography'
50
96
  }
51
97
  },
52
- FontWeightMedium: {
98
+ FontWeight500: {
53
99
  value: '500',
54
100
  attributes: {
55
101
  group: 'typography'
56
102
  }
57
103
  },
58
- FontWeightSemiBold: {
104
+ FontWeight600: {
59
105
  value: '600',
60
106
  attributes: {
61
107
  group: 'typography'
62
108
  }
63
109
  },
64
- FontWeightBold: {
110
+ FontWeight700: {
65
111
  value: '700',
66
112
  attributes: {
67
113
  group: 'typography'
@@ -71,14 +117,55 @@ var fontWeightScale = {
71
117
  };
72
118
  var fontFamilyPalette = {
73
119
  fontFamily: {
74
- FontFamilySans: {
120
+ FontFamilyCharlie: {
121
+ value: 'Charlie Sans',
122
+ attributes: {
123
+ group: 'typography'
124
+ }
125
+ },
126
+ LegacyFontFamilyWebSans: {
75
127
  value: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif",
76
128
  attributes: {
77
129
  group: 'typography'
78
130
  }
79
131
  },
80
- FontFamilyMonospace: {
81
- value: "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace",
132
+ /**
133
+ * @see https://infinnie.github.io/blog/2017/systemui.html
134
+ * @see https://github.com/twbs/bootstrap/pull/22377
135
+ * @see https://fonts.google.com/knowledge/glossary/system_font_web_safe_font
136
+ */
137
+ FontFamilyWebSans: {
138
+ value: "ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif",
139
+ attributes: {
140
+ group: 'typography'
141
+ }
142
+ },
143
+ FontFamilyiOSSans: {
144
+ value: 'SF Pro',
145
+ attributes: {
146
+ group: 'typography'
147
+ }
148
+ },
149
+ FontFamilyAndroidSans: {
150
+ value: 'Roboto',
151
+ attributes: {
152
+ group: 'typography'
153
+ }
154
+ },
155
+ FontFamilyWebMono: {
156
+ value: "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace",
157
+ attributes: {
158
+ group: 'typography'
159
+ }
160
+ },
161
+ FontFamilyiOSMono: {
162
+ value: 'SF Mono',
163
+ attributes: {
164
+ group: 'typography'
165
+ }
166
+ },
167
+ FontFamilyAndroidMono: {
168
+ value: 'Roboto Mono',
82
169
  attributes: {
83
170
  group: 'typography'
84
171
  }
@@ -87,57 +174,87 @@ var fontFamilyPalette = {
87
174
  };
88
175
  var fontSizeScale = {
89
176
  fontSize: {
90
- FontSize050: {
177
+ FontSizeCode: {
178
+ value: '0.875em',
179
+ attributes: {
180
+ group: 'typography'
181
+ }
182
+ },
183
+ LegacyFontSize11: {
91
184
  value: 11,
92
185
  attributes: {
93
186
  group: 'typography'
94
187
  }
95
188
  },
96
- FontSize075: {
189
+ FontSize12: {
97
190
  value: 12,
98
191
  attributes: {
99
192
  group: 'typography'
100
193
  }
101
194
  },
102
- FontSize100: {
195
+ FontSize14: {
103
196
  value: 14,
104
197
  attributes: {
105
198
  group: 'typography'
106
199
  }
107
200
  },
108
- FontSize200: {
201
+ FontSize16: {
109
202
  value: 16,
110
203
  attributes: {
111
204
  group: 'typography'
112
205
  }
113
206
  },
114
- FontSize300: {
207
+ FontSize20: {
115
208
  value: 20,
116
209
  attributes: {
117
210
  group: 'typography'
118
211
  }
119
212
  },
120
- FontSize400: {
213
+ FontSize24: {
121
214
  value: 24,
122
215
  attributes: {
123
216
  group: 'typography'
124
217
  }
125
218
  },
126
- FontSize500: {
219
+ FontSize28: {
220
+ value: 28,
221
+ attributes: {
222
+ group: 'typography'
223
+ }
224
+ },
225
+ LegacyFontSize29: {
127
226
  value: 29,
128
227
  attributes: {
129
228
  group: 'typography'
130
229
  }
131
230
  },
132
- FontSize600: {
231
+ FontSize32: {
232
+ value: 32,
233
+ attributes: {
234
+ group: 'typography'
235
+ }
236
+ },
237
+ LegacyFontSize35: {
133
238
  value: 35,
134
239
  attributes: {
135
240
  group: 'typography'
136
241
  }
242
+ },
243
+ FontSize36: {
244
+ value: 36,
245
+ attributes: {
246
+ group: 'typography'
247
+ }
248
+ },
249
+ FontSize48: {
250
+ value: 48,
251
+ attributes: {
252
+ group: 'typography'
253
+ }
137
254
  }
138
255
  }
139
256
  };
140
257
  var typographyPalette = {
141
- typography: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontSizeScale), fontWeightScale), fontFamilyPalette), lineHeightScale)
258
+ typography: _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, fontSizeScale), fontWeightScale), fontFamilyPalette), lineHeightScale), letterSpacingScale)
142
259
  };
143
260
  export default typographyPalette;
@@ -34,7 +34,7 @@ export var themeColorModes = ['light', 'dark', 'auto'];
34
34
  *
35
35
  * These ids must be kebab case
36
36
  */
37
- export var themeIds = ['light', 'dark', 'legacy-light', 'legacy-dark', 'spacing', 'typography', 'shape'];
37
+ export var 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 @@ var 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 @@ var 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 @@ var 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
+ var 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
+ var 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
+ var 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
+ var 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
+ var 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
+ var 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
  var 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 @@ var font = {
17
20
  value: 'LineHeight500'
18
21
  },
19
22
  '600': {
20
- value: 'LineHeight600'
23
+ value: 'LineHeight700'
21
24
  }
22
25
  }
23
26
  }