@atlaskit/tokens 1.14.2 → 1.15.0
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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
- package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +277 -37
- package/dist/cjs/artifacts/theme-import-map.js +10 -4
- package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +13 -0
- package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +23 -2
- package/dist/cjs/artifacts/token-names.js +22 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +1084 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +465 -253
- package/dist/cjs/entry-points/tokens-raw.js +2 -2
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/typography-palette.js +121 -16
- package/dist/cjs/theme-config.js +12 -4
- package/dist/cjs/tokens/atlassian-typography/font-family.js +11 -2
- package/dist/cjs/tokens/atlassian-typography/theme.js +140 -0
- package/dist/cjs/tokens/atlassian-typography/utils.js +29 -0
- package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +29 -0
- package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.js +8 -8
- package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.js +4 -4
- package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +3 -0
- package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +140 -0
- package/dist/cjs/tokens/atlassian-typography-adg3/utils.js +29 -0
- package/dist/cjs/tokens/default/typography/font-family.js +24 -0
- package/dist/cjs/tokens/default/typography/font.js +133 -0
- package/dist/cjs/tokens/default/typography/letter-spacing.js +54 -0
- package/dist/cjs/tokens/default/typography/line-height.js +8 -0
- package/dist/es2019/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
- package/dist/es2019/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +277 -37
- package/dist/es2019/artifacts/theme-import-map.js +6 -4
- package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +50 -0
- package/dist/es2019/artifacts/themes/atlassian-typography.js +23 -21
- package/dist/es2019/artifacts/token-default-values.js +23 -2
- package/dist/es2019/artifacts/token-names.js +22 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +1077 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +465 -253
- package/dist/es2019/entry-points/tokens-raw.js +1 -1
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/typography-palette.js +123 -17
- package/dist/es2019/theme-config.js +12 -4
- package/dist/es2019/tokens/atlassian-typography/font-family.js +11 -2
- package/dist/es2019/tokens/atlassian-typography/theme.js +133 -0
- package/dist/es2019/tokens/atlassian-typography/utils.js +22 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/font-family.js +22 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/font-size.js +31 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/font-weight.js +19 -0
- package/dist/es2019/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +3 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +133 -0
- package/dist/es2019/tokens/atlassian-typography-adg3/utils.js +22 -0
- package/dist/es2019/tokens/default/typography/font-family.js +24 -0
- package/dist/es2019/tokens/default/typography/font.js +126 -0
- package/dist/es2019/tokens/default/typography/letter-spacing.js +47 -0
- package/dist/es2019/tokens/default/typography/line-height.js +8 -0
- package/dist/esm/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
- package/dist/esm/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +277 -37
- package/dist/esm/artifacts/theme-import-map.js +8 -4
- package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +23 -2
- package/dist/esm/artifacts/token-names.js +22 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +1077 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +465 -253
- package/dist/esm/entry-points/tokens-raw.js +1 -1
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/typography-palette.js +121 -16
- package/dist/esm/theme-config.js +12 -4
- package/dist/esm/tokens/atlassian-typography/font-family.js +11 -2
- package/dist/esm/tokens/atlassian-typography/theme.js +133 -0
- package/dist/esm/tokens/atlassian-typography/utils.js +22 -0
- package/dist/esm/tokens/atlassian-typography-adg3/font-family.js +22 -0
- package/dist/esm/tokens/atlassian-typography-adg3/font-size.js +31 -0
- package/dist/esm/tokens/atlassian-typography-adg3/font-weight.js +19 -0
- package/dist/esm/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +3 -0
- package/dist/esm/tokens/atlassian-typography-adg3/theme.js +133 -0
- package/dist/esm/tokens/atlassian-typography-adg3/utils.js +22 -0
- package/dist/esm/tokens/default/typography/font-family.js +24 -0
- package/dist/esm/tokens/default/typography/font.js +126 -0
- package/dist/esm/tokens/default/typography/letter-spacing.js +47 -0
- package/dist/esm/tokens/default/typography/line-height.js +8 -0
- package/dist/types/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +23 -2
- package/dist/types/artifacts/token-names.d.ts +43 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +101 -0
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +111 -3
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/entry-points/tokens-raw.d.ts +1 -1
- package/dist/types/palettes/typography-palette.d.ts +8 -6
- package/dist/types/theme-config.d.ts +4 -4
- package/dist/types/tokens/atlassian-typography/theme.d.ts +10 -0
- package/dist/types/tokens/atlassian-typography/utils.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-adg3/font-family.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +10 -0
- package/dist/types/tokens/atlassian-typography-adg3/utils.d.ts +4 -0
- package/dist/types/tokens/default/typography/font.d.ts +20 -0
- package/dist/types/tokens/default/typography/letter-spacing.d.ts +4 -0
- package/dist/types/types.d.ts +111 -22
- package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +23 -2
- package/dist/types-ts4.5/artifacts/token-names.d.ts +43 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +101 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +111 -3
- package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
- package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +1 -1
- package/dist/types-ts4.5/palettes/typography-palette.d.ts +8 -6
- package/dist/types-ts4.5/theme-config.d.ts +5 -3
- package/dist/types-ts4.5/tokens/atlassian-typography/theme.d.ts +10 -0
- package/dist/types-ts4.5/tokens/atlassian-typography/utils.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-adg3/font-family.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +10 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-adg3/utils.d.ts +4 -0
- package/dist/types-ts4.5/tokens/default/typography/font.d.ts +20 -0
- package/dist/types-ts4.5/tokens/default/typography/letter-spacing.d.ts +4 -0
- package/dist/types-ts4.5/types.d.ts +111 -22
- package/figma/atlassian-typography-adg3.json +150 -0
- package/figma/atlassian-typography.json +19 -82
- package/package.json +1 -1
- package/report.api.md +60 -2
- package/tmp/api-report-tmp.d.ts +49 -7
- package/dist/es2019/tokens/atlassian-typography/font-size.js +0 -31
- package/dist/es2019/tokens/atlassian-typography/font-weight.js +0 -19
- package/dist/esm/tokens/atlassian-typography/font-size.js +0 -31
- package/dist/esm/tokens/atlassian-typography/font-weight.js +0 -19
- /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.d.ts +0 -0
- /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.d.ts +0 -0
- /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.d.ts +0 -0
- /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.d.ts +0 -0
- /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.d.ts +0 -0
- /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.
|
|
4
|
+
const version = "1.15.0";
|
|
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.
|
package/dist/es2019/get-token.js
CHANGED
|
@@ -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.
|
|
5
|
+
const version = "1.15.0";
|
|
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: {
|
|
@@ -40,25 +80,25 @@ const lineHeightScale = {
|
|
|
40
80
|
};
|
|
41
81
|
const fontWeightScale = {
|
|
42
82
|
fontWeight: {
|
|
43
|
-
|
|
83
|
+
FontWeight400: {
|
|
44
84
|
value: '400',
|
|
45
85
|
attributes: {
|
|
46
86
|
group: 'typography'
|
|
47
87
|
}
|
|
48
88
|
},
|
|
49
|
-
|
|
89
|
+
FontWeight500: {
|
|
50
90
|
value: '500',
|
|
51
91
|
attributes: {
|
|
52
92
|
group: 'typography'
|
|
53
93
|
}
|
|
54
94
|
},
|
|
55
|
-
|
|
95
|
+
FontWeight600: {
|
|
56
96
|
value: '600',
|
|
57
97
|
attributes: {
|
|
58
98
|
group: 'typography'
|
|
59
99
|
}
|
|
60
100
|
},
|
|
61
|
-
|
|
101
|
+
FontWeight700: {
|
|
62
102
|
value: '700',
|
|
63
103
|
attributes: {
|
|
64
104
|
group: 'typography'
|
|
@@ -68,14 +108,55 @@ const fontWeightScale = {
|
|
|
68
108
|
};
|
|
69
109
|
const fontFamilyPalette = {
|
|
70
110
|
fontFamily: {
|
|
71
|
-
|
|
72
|
-
value:
|
|
111
|
+
FontFamilyCharlie: {
|
|
112
|
+
value: 'Charlie Sans',
|
|
113
|
+
attributes: {
|
|
114
|
+
group: 'typography'
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
LegacyFontFamilyWebSans: {
|
|
118
|
+
value: `-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif`,
|
|
119
|
+
attributes: {
|
|
120
|
+
group: 'typography'
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
* @see https://infinnie.github.io/blog/2017/systemui.html
|
|
125
|
+
* @see https://github.com/twbs/bootstrap/pull/22377
|
|
126
|
+
* @see https://fonts.google.com/knowledge/glossary/system_font_web_safe_font
|
|
127
|
+
*/
|
|
128
|
+
FontFamilyWebSans: {
|
|
129
|
+
value: `ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif`,
|
|
73
130
|
attributes: {
|
|
74
131
|
group: 'typography'
|
|
75
132
|
}
|
|
76
133
|
},
|
|
77
|
-
|
|
78
|
-
value:
|
|
134
|
+
FontFamilyiOSSans: {
|
|
135
|
+
value: 'SF Pro',
|
|
136
|
+
attributes: {
|
|
137
|
+
group: 'typography'
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
FontFamilyAndroidSans: {
|
|
141
|
+
value: 'Roboto',
|
|
142
|
+
attributes: {
|
|
143
|
+
group: 'typography'
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
FontFamilyWebMono: {
|
|
147
|
+
value: `ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace`,
|
|
148
|
+
attributes: {
|
|
149
|
+
group: 'typography'
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
FontFamilyiOSMono: {
|
|
153
|
+
value: 'SF Mono',
|
|
154
|
+
attributes: {
|
|
155
|
+
group: 'typography'
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
FontFamilyAndroidMono: {
|
|
159
|
+
value: 'Roboto Mono',
|
|
79
160
|
attributes: {
|
|
80
161
|
group: 'typography'
|
|
81
162
|
}
|
|
@@ -84,53 +165,77 @@ const fontFamilyPalette = {
|
|
|
84
165
|
};
|
|
85
166
|
const fontSizeScale = {
|
|
86
167
|
fontSize: {
|
|
87
|
-
|
|
168
|
+
FontSizeCode: {
|
|
169
|
+
value: '0.875em',
|
|
170
|
+
attributes: {
|
|
171
|
+
group: 'typography'
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
FontSize11: {
|
|
88
175
|
value: 11,
|
|
89
176
|
attributes: {
|
|
90
177
|
group: 'typography'
|
|
91
178
|
}
|
|
92
179
|
},
|
|
93
|
-
|
|
180
|
+
FontSize12: {
|
|
94
181
|
value: 12,
|
|
95
182
|
attributes: {
|
|
96
183
|
group: 'typography'
|
|
97
184
|
}
|
|
98
185
|
},
|
|
99
|
-
|
|
186
|
+
FontSize14: {
|
|
100
187
|
value: 14,
|
|
101
188
|
attributes: {
|
|
102
189
|
group: 'typography'
|
|
103
190
|
}
|
|
104
191
|
},
|
|
105
|
-
|
|
192
|
+
FontSize16: {
|
|
106
193
|
value: 16,
|
|
107
194
|
attributes: {
|
|
108
195
|
group: 'typography'
|
|
109
196
|
}
|
|
110
197
|
},
|
|
111
|
-
|
|
198
|
+
FontSize20: {
|
|
112
199
|
value: 20,
|
|
113
200
|
attributes: {
|
|
114
201
|
group: 'typography'
|
|
115
202
|
}
|
|
116
203
|
},
|
|
117
|
-
|
|
204
|
+
FontSize24: {
|
|
118
205
|
value: 24,
|
|
119
206
|
attributes: {
|
|
120
207
|
group: 'typography'
|
|
121
208
|
}
|
|
122
209
|
},
|
|
123
|
-
|
|
210
|
+
FontSize28: {
|
|
211
|
+
value: 28,
|
|
212
|
+
attributes: {
|
|
213
|
+
group: 'typography'
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
LegacyFontSize29: {
|
|
124
217
|
value: 29,
|
|
125
218
|
attributes: {
|
|
126
219
|
group: 'typography'
|
|
127
220
|
}
|
|
128
221
|
},
|
|
129
|
-
|
|
222
|
+
LegacyFontSize35: {
|
|
130
223
|
value: 35,
|
|
131
224
|
attributes: {
|
|
132
225
|
group: 'typography'
|
|
133
226
|
}
|
|
227
|
+
},
|
|
228
|
+
FontSize36: {
|
|
229
|
+
value: 36,
|
|
230
|
+
attributes: {
|
|
231
|
+
group: 'typography'
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
FontSize48: {
|
|
235
|
+
value: 48,
|
|
236
|
+
attributes: {
|
|
237
|
+
group: 'typography'
|
|
238
|
+
}
|
|
134
239
|
}
|
|
135
240
|
}
|
|
136
241
|
};
|
|
@@ -139,7 +244,8 @@ const typographyPalette = {
|
|
|
139
244
|
...fontSizeScale,
|
|
140
245
|
...fontWeightScale,
|
|
141
246
|
...fontFamilyPalette,
|
|
142
|
-
...lineHeightScale
|
|
247
|
+
...lineHeightScale,
|
|
248
|
+
...letterSpacingScale
|
|
143
249
|
}
|
|
144
250
|
};
|
|
145
251
|
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'];
|
|
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: '
|
|
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,14 @@ const themeConfig = {
|
|
|
139
139
|
type: 'color',
|
|
140
140
|
mode: 'dark'
|
|
141
141
|
}
|
|
142
|
+
},
|
|
143
|
+
'atlassian-typography': {
|
|
144
|
+
id: 'typography',
|
|
145
|
+
displayName: 'Atlassian Typography',
|
|
146
|
+
palette: 'typographyPalette',
|
|
147
|
+
attributes: {
|
|
148
|
+
type: 'typography'
|
|
149
|
+
}
|
|
142
150
|
}
|
|
143
151
|
};
|
|
144
152
|
|
|
@@ -2,10 +2,19 @@ const font = {
|
|
|
2
2
|
font: {
|
|
3
3
|
family: {
|
|
4
4
|
sans: {
|
|
5
|
-
value: '
|
|
5
|
+
value: 'FontFamilyWebSans'
|
|
6
6
|
},
|
|
7
7
|
monospace: {
|
|
8
|
-
value: '
|
|
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,133 @@
|
|
|
1
|
+
const typography = {
|
|
2
|
+
font: {
|
|
3
|
+
heading: {
|
|
4
|
+
xxl: {
|
|
5
|
+
value: {
|
|
6
|
+
fontWeight: 'FontWeight700',
|
|
7
|
+
fontSize: 'FontSize36',
|
|
8
|
+
lineHeight: 'LineHeight600',
|
|
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: 'FontSize11',
|
|
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: 'FontSize11',
|
|
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
|
+
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,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: 'FontSize11'
|
|
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,133 @@
|
|
|
1
|
+
const typography = {
|
|
2
|
+
font: {
|
|
3
|
+
heading: {
|
|
4
|
+
xxl: {
|
|
5
|
+
value: {
|
|
6
|
+
fontWeight: 'FontWeight500',
|
|
7
|
+
fontSize: 'LegacyFontSize35',
|
|
8
|
+
lineHeight: 'LineHeight600',
|
|
9
|
+
fontFamily: 'FontFamilyWebSans',
|
|
10
|
+
fontStyle: 'normal',
|
|
11
|
+
letterSpacing: 'LetterSpacing400'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
xl: {
|
|
15
|
+
value: {
|
|
16
|
+
fontWeight: 'FontWeight600',
|
|
17
|
+
fontSize: 'LegacyFontSize29',
|
|
18
|
+
lineHeight: 'LineHeight500',
|
|
19
|
+
fontFamily: 'FontFamilyWebSans',
|
|
20
|
+
fontStyle: 'normal',
|
|
21
|
+
letterSpacing: 'LetterSpacing400'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
lg: {
|
|
25
|
+
value: {
|
|
26
|
+
fontWeight: 'FontWeight500',
|
|
27
|
+
fontSize: 'FontSize24',
|
|
28
|
+
lineHeight: 'LineHeight400',
|
|
29
|
+
fontFamily: 'FontFamilyWebSans',
|
|
30
|
+
fontStyle: 'normal',
|
|
31
|
+
letterSpacing: 'LetterSpacing400'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
md: {
|
|
35
|
+
value: {
|
|
36
|
+
fontWeight: 'FontWeight500',
|
|
37
|
+
fontSize: 'FontSize20',
|
|
38
|
+
lineHeight: 'LineHeight300',
|
|
39
|
+
fontFamily: 'FontFamilyWebSans',
|
|
40
|
+
fontStyle: 'normal',
|
|
41
|
+
letterSpacing: 'LetterSpacing300'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
sm: {
|
|
45
|
+
value: {
|
|
46
|
+
fontWeight: 'FontWeight600',
|
|
47
|
+
fontSize: 'FontSize16',
|
|
48
|
+
lineHeight: 'LineHeight200',
|
|
49
|
+
fontFamily: 'FontFamilyWebSans',
|
|
50
|
+
fontStyle: 'normal',
|
|
51
|
+
letterSpacing: 'LetterSpacing200'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
xs: {
|
|
55
|
+
value: {
|
|
56
|
+
fontWeight: 'FontWeight600',
|
|
57
|
+
fontSize: 'FontSize14',
|
|
58
|
+
lineHeight: 'LineHeight100',
|
|
59
|
+
fontFamily: 'FontFamilyWebSans',
|
|
60
|
+
fontStyle: 'normal',
|
|
61
|
+
letterSpacing: 'LetterSpacing100'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
xxs: {
|
|
65
|
+
value: {
|
|
66
|
+
fontWeight: 'FontWeight600',
|
|
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: 'FontSize11',
|
|
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: 'LineHeight100',
|
|
115
|
+
fontFamily: 'FontFamilyWebSans',
|
|
116
|
+
fontStyle: 'normal',
|
|
117
|
+
letterSpacing: 'LetterSpacing0'
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
sm: {
|
|
121
|
+
value: {
|
|
122
|
+
fontWeight: 'FontWeight400',
|
|
123
|
+
fontSize: 'FontSize11',
|
|
124
|
+
lineHeight: 'LineHeight100',
|
|
125
|
+
fontFamily: 'FontFamilyWebSans',
|
|
126
|
+
fontStyle: 'normal',
|
|
127
|
+
letterSpacing: 'LetterSpacing0'
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
export default typography;
|