@atlaskit/tokens 1.15.0 → 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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +48 -18
- package/dist/cjs/artifacts/theme-import-map.js +7 -1
- package/dist/cjs/artifacts/themes/atlassian-typography-minor3.js +13 -0
- package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +11 -11
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-minor3.js +666 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +11 -11
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/typography-palette.js +13 -1
- package/dist/cjs/theme-config.js +10 -2
- package/dist/cjs/tokens/atlassian-typography/letter-spacing.js +29 -0
- package/dist/cjs/tokens/atlassian-typography/theme.js +3 -3
- package/dist/cjs/tokens/atlassian-typography-adg3/font-size.js +1 -1
- package/dist/cjs/tokens/atlassian-typography-adg3/line-height.js +1 -1
- package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +3 -3
- package/dist/cjs/tokens/atlassian-typography-minor3/font-family.js +29 -0
- package/dist/cjs/tokens/atlassian-typography-minor3/theme.js +140 -0
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +48 -18
- package/dist/es2019/artifacts/theme-import-map.js +4 -2
- package/dist/es2019/artifacts/themes/atlassian-typography-minor3.js +31 -0
- package/dist/es2019/artifacts/themes/atlassian-typography.js +3 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +11 -11
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-minor3.js +659 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +11 -11
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/typography-palette.js +13 -1
- package/dist/es2019/theme-config.js +10 -2
- package/dist/es2019/tokens/atlassian-typography/letter-spacing.js +22 -0
- package/dist/es2019/tokens/atlassian-typography/theme.js +3 -3
- package/dist/es2019/tokens/atlassian-typography-adg3/font-size.js +1 -1
- package/dist/es2019/tokens/atlassian-typography-adg3/line-height.js +1 -1
- package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +3 -3
- package/dist/es2019/tokens/atlassian-typography-minor3/font-family.js +22 -0
- package/dist/es2019/tokens/atlassian-typography-minor3/theme.js +133 -0
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +48 -18
- package/dist/esm/artifacts/theme-import-map.js +5 -1
- package/dist/esm/artifacts/themes/atlassian-typography-minor3.js +6 -0
- package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +11 -11
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-minor3.js +659 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +11 -11
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/typography-palette.js +13 -1
- package/dist/esm/theme-config.js +10 -2
- package/dist/esm/tokens/atlassian-typography/letter-spacing.js +22 -0
- package/dist/esm/tokens/atlassian-typography/theme.js +3 -3
- package/dist/esm/tokens/atlassian-typography-adg3/font-size.js +1 -1
- package/dist/esm/tokens/atlassian-typography-adg3/line-height.js +1 -1
- package/dist/esm/tokens/atlassian-typography-adg3/theme.js +3 -3
- package/dist/esm/tokens/atlassian-typography-minor3/font-family.js +22 -0
- package/dist/esm/tokens/atlassian-typography-minor3/theme.js +133 -0
- 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-minor3.d.ts +7 -0
- package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +137 -0
- package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/palettes/typography-palette.d.ts +2 -2
- package/dist/types/theme-config.d.ts +4 -4
- package/dist/types/tokens/atlassian-typography/letter-spacing.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-minor3/font-family.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-minor3/letter-spacing.d.ts +4 -0
- package/dist/types/tokens/atlassian-typography-minor3/theme.d.ts +10 -0
- 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-minor3.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-minor3.d.ts +137 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/palettes/typography-palette.d.ts +2 -2
- package/dist/types-ts4.5/theme-config.d.ts +5 -3
- package/dist/types-ts4.5/tokens/atlassian-typography-minor3/font-family.d.ts +4 -0
- package/dist/types-ts4.5/tokens/atlassian-typography-minor3/theme.d.ts +10 -0
- package/figma/atlassian-typography-minor3.json +51 -0
- package/package.json +1 -2
- package/report.api.md +29 -2
- package/tmp/api-report-tmp.d.ts +20 -4
- /package/dist/cjs/tokens/atlassian-typography-adg3/{utils.js → letter-spacing.js} +0 -0
- /package/dist/cjs/tokens/{atlassian-typography/utils.js → atlassian-typography-minor3/letter-spacing.js} +0 -0
- /package/dist/es2019/tokens/atlassian-typography-adg3/{utils.js → letter-spacing.js} +0 -0
- /package/dist/es2019/tokens/{atlassian-typography/utils.js → atlassian-typography-minor3/letter-spacing.js} +0 -0
- /package/dist/esm/tokens/atlassian-typography-adg3/{utils.js → letter-spacing.js} +0 -0
- /package/dist/esm/tokens/{atlassian-typography/utils.js → atlassian-typography-minor3/letter-spacing.js} +0 -0
- /package/dist/types/tokens/{atlassian-typography/utils.d.ts → atlassian-typography-adg3/letter-spacing.d.ts} +0 -0
- /package/dist/{types/tokens/atlassian-typography-adg3/utils.d.ts → types-ts4.5/tokens/atlassian-typography/letter-spacing.d.ts} +0 -0
- /package/dist/types-ts4.5/tokens/atlassian-typography-adg3/{utils.d.ts → letter-spacing.d.ts} +0 -0
- /package/dist/types-ts4.5/tokens/{atlassian-typography/utils.d.ts → atlassian-typography-minor3/letter-spacing.d.ts} +0 -0
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::bf6a6956c0f05008a38d080067ade3fb>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
var tokens = [{
|
|
@@ -53,7 +53,7 @@ var tokens = [{
|
|
|
53
53
|
"description": "Smaller body font."
|
|
54
54
|
},
|
|
55
55
|
"value": {
|
|
56
|
-
"fontSize":
|
|
56
|
+
"fontSize": 12,
|
|
57
57
|
"fontStyle": "normal",
|
|
58
58
|
"fontWeight": "400",
|
|
59
59
|
"lineHeight": 20,
|
|
@@ -71,7 +71,7 @@ var tokens = [{
|
|
|
71
71
|
},
|
|
72
72
|
"value": {
|
|
73
73
|
"fontWeight": "FontWeight400",
|
|
74
|
-
"fontSize": "
|
|
74
|
+
"fontSize": "FontSize12",
|
|
75
75
|
"lineHeight": "LineHeight200",
|
|
76
76
|
"fontFamily": "FontFamilyWebSans",
|
|
77
77
|
"fontStyle": "normal",
|
|
@@ -324,7 +324,7 @@ var tokens = [{
|
|
|
324
324
|
"value": {
|
|
325
325
|
"fontWeight": "FontWeight700",
|
|
326
326
|
"fontSize": "FontSize36",
|
|
327
|
-
"lineHeight": "
|
|
327
|
+
"lineHeight": "LineHeight700",
|
|
328
328
|
"fontFamily": "FontFamilyWebSans",
|
|
329
329
|
"fontStyle": "normal",
|
|
330
330
|
"letterSpacing": "LetterSpacing0"
|
|
@@ -377,7 +377,7 @@ var tokens = [{
|
|
|
377
377
|
"description": "Helpful guidance goes here"
|
|
378
378
|
},
|
|
379
379
|
"value": "0",
|
|
380
|
-
"filePath": "src/tokens/atlassian-typography/
|
|
380
|
+
"filePath": "src/tokens/atlassian-typography/letter-spacing.tsx",
|
|
381
381
|
"isSource": true,
|
|
382
382
|
"original": {
|
|
383
383
|
"attributes": {
|
|
@@ -399,7 +399,7 @@ var tokens = [{
|
|
|
399
399
|
"description": "Helpful guidance goes here"
|
|
400
400
|
},
|
|
401
401
|
"value": "0",
|
|
402
|
-
"filePath": "src/tokens/atlassian-typography/
|
|
402
|
+
"filePath": "src/tokens/atlassian-typography/letter-spacing.tsx",
|
|
403
403
|
"isSource": true,
|
|
404
404
|
"original": {
|
|
405
405
|
"attributes": {
|
|
@@ -421,7 +421,7 @@ var tokens = [{
|
|
|
421
421
|
"description": "Helpful guidance goes here"
|
|
422
422
|
},
|
|
423
423
|
"value": "0",
|
|
424
|
-
"filePath": "src/tokens/atlassian-typography/
|
|
424
|
+
"filePath": "src/tokens/atlassian-typography/letter-spacing.tsx",
|
|
425
425
|
"isSource": true,
|
|
426
426
|
"original": {
|
|
427
427
|
"attributes": {
|
|
@@ -443,7 +443,7 @@ var tokens = [{
|
|
|
443
443
|
"description": "Helpful guidance goes here"
|
|
444
444
|
},
|
|
445
445
|
"value": "0",
|
|
446
|
-
"filePath": "src/tokens/atlassian-typography/
|
|
446
|
+
"filePath": "src/tokens/atlassian-typography/letter-spacing.tsx",
|
|
447
447
|
"isSource": true,
|
|
448
448
|
"original": {
|
|
449
449
|
"attributes": {
|
|
@@ -465,7 +465,7 @@ var tokens = [{
|
|
|
465
465
|
"description": "Helpful guidance goes here"
|
|
466
466
|
},
|
|
467
467
|
"value": "0",
|
|
468
|
-
"filePath": "src/tokens/atlassian-typography/
|
|
468
|
+
"filePath": "src/tokens/atlassian-typography/letter-spacing.tsx",
|
|
469
469
|
"isSource": true,
|
|
470
470
|
"original": {
|
|
471
471
|
"attributes": {
|
|
@@ -523,7 +523,7 @@ var tokens = [{
|
|
|
523
523
|
"description": "Single-line non-wrapping supporting text like that in a smaller label."
|
|
524
524
|
},
|
|
525
525
|
"value": {
|
|
526
|
-
"fontSize":
|
|
526
|
+
"fontSize": 12,
|
|
527
527
|
"fontStyle": "normal",
|
|
528
528
|
"fontWeight": "400",
|
|
529
529
|
"lineHeight": "1",
|
|
@@ -541,7 +541,7 @@ var tokens = [{
|
|
|
541
541
|
},
|
|
542
542
|
"value": {
|
|
543
543
|
"fontWeight": "FontWeight400",
|
|
544
|
-
"fontSize": "
|
|
544
|
+
"fontSize": "FontSize12",
|
|
545
545
|
"lineHeight": "LineHeight1",
|
|
546
546
|
"fontFamily": "FontFamilyWebSans",
|
|
547
547
|
"fontStyle": "normal",
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var name = "@atlaskit/tokens";
|
|
11
|
-
var version = "1.15.
|
|
11
|
+
var version = "1.15.1";
|
|
12
12
|
/**
|
|
13
13
|
* Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
|
|
14
14
|
* resulting CSS Custom Property.
|
package/dist/cjs/get-token.js
CHANGED
|
@@ -9,7 +9,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
|
9
9
|
var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
var name = "@atlaskit/tokens";
|
|
12
|
-
var version = "1.15.
|
|
12
|
+
var version = "1.15.1";
|
|
13
13
|
/**
|
|
14
14
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
|
15
15
|
* This should be used to implement design decisions throughout your application.
|
|
@@ -81,6 +81,12 @@ var lineHeightScale = {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
LineHeight600: {
|
|
84
|
+
value: 36,
|
|
85
|
+
attributes: {
|
|
86
|
+
group: 'typography'
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
LineHeight700: {
|
|
84
90
|
value: 40,
|
|
85
91
|
attributes: {
|
|
86
92
|
group: 'typography'
|
|
@@ -181,7 +187,7 @@ var fontSizeScale = {
|
|
|
181
187
|
group: 'typography'
|
|
182
188
|
}
|
|
183
189
|
},
|
|
184
|
-
|
|
190
|
+
LegacyFontSize11: {
|
|
185
191
|
value: 11,
|
|
186
192
|
attributes: {
|
|
187
193
|
group: 'typography'
|
|
@@ -229,6 +235,12 @@ var fontSizeScale = {
|
|
|
229
235
|
group: 'typography'
|
|
230
236
|
}
|
|
231
237
|
},
|
|
238
|
+
FontSize32: {
|
|
239
|
+
value: 32,
|
|
240
|
+
attributes: {
|
|
241
|
+
group: 'typography'
|
|
242
|
+
}
|
|
243
|
+
},
|
|
232
244
|
LegacyFontSize35: {
|
|
233
245
|
value: 35,
|
|
234
246
|
attributes: {
|
package/dist/cjs/theme-config.js
CHANGED
|
@@ -41,7 +41,7 @@ exports.themeColorModes = themeColorModes;
|
|
|
41
41
|
*
|
|
42
42
|
* These ids must be kebab case
|
|
43
43
|
*/
|
|
44
|
-
var themeIds = ['light', 'dark', 'legacy-light', 'legacy-dark', 'spacing', 'typography', 'shape', 'typography-adg3'];
|
|
44
|
+
var themeIds = ['light', 'dark', 'legacy-light', 'legacy-dark', 'spacing', 'typography', 'shape', 'typography-adg3', 'typography-minor3'];
|
|
45
45
|
exports.themeIds = themeIds;
|
|
46
46
|
/**
|
|
47
47
|
* Theme override ids: the equivalent of themeIds for theme overrides.
|
|
@@ -151,7 +151,15 @@ var themeConfig = {
|
|
|
151
151
|
},
|
|
152
152
|
'atlassian-typography': {
|
|
153
153
|
id: 'typography',
|
|
154
|
-
displayName: 'Atlassian Typography',
|
|
154
|
+
displayName: 'Atlassian Typography (Minor Second)',
|
|
155
|
+
palette: 'typographyPalette',
|
|
156
|
+
attributes: {
|
|
157
|
+
type: 'typography'
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
'atlassian-typography-minor3': {
|
|
161
|
+
id: 'typography-minor3',
|
|
162
|
+
displayName: 'Atlassian Typography (Minor Third)',
|
|
155
163
|
palette: 'typographyPalette',
|
|
156
164
|
attributes: {
|
|
157
165
|
type: 'typography'
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var font = {
|
|
8
|
+
font: {
|
|
9
|
+
letterSpacing: {
|
|
10
|
+
'0': {
|
|
11
|
+
value: 'LetterSpacing0'
|
|
12
|
+
},
|
|
13
|
+
'100': {
|
|
14
|
+
value: 'LetterSpacing0'
|
|
15
|
+
},
|
|
16
|
+
'200': {
|
|
17
|
+
value: 'LetterSpacing0'
|
|
18
|
+
},
|
|
19
|
+
'300': {
|
|
20
|
+
value: 'LetterSpacing0'
|
|
21
|
+
},
|
|
22
|
+
'400': {
|
|
23
|
+
value: 'LetterSpacing0'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var _default = font;
|
|
29
|
+
exports.default = _default;
|
|
@@ -11,7 +11,7 @@ var typography = {
|
|
|
11
11
|
value: {
|
|
12
12
|
fontWeight: 'FontWeight700',
|
|
13
13
|
fontSize: 'FontSize36',
|
|
14
|
-
lineHeight: '
|
|
14
|
+
lineHeight: 'LineHeight700',
|
|
15
15
|
fontFamily: 'FontFamilyWebSans',
|
|
16
16
|
fontStyle: 'normal',
|
|
17
17
|
letterSpacing: 'LetterSpacing0'
|
|
@@ -104,7 +104,7 @@ var typography = {
|
|
|
104
104
|
sm: {
|
|
105
105
|
value: {
|
|
106
106
|
fontWeight: 'FontWeight400',
|
|
107
|
-
fontSize: '
|
|
107
|
+
fontSize: 'FontSize12',
|
|
108
108
|
lineHeight: 'LineHeight200',
|
|
109
109
|
fontFamily: 'FontFamilyWebSans',
|
|
110
110
|
fontStyle: 'normal',
|
|
@@ -126,7 +126,7 @@ var typography = {
|
|
|
126
126
|
sm: {
|
|
127
127
|
value: {
|
|
128
128
|
fontWeight: 'FontWeight400',
|
|
129
|
-
fontSize: '
|
|
129
|
+
fontSize: 'FontSize12',
|
|
130
130
|
lineHeight: 'LineHeight1',
|
|
131
131
|
fontFamily: 'FontFamilyWebSans',
|
|
132
132
|
fontStyle: 'normal',
|
|
@@ -11,7 +11,7 @@ var typography = {
|
|
|
11
11
|
value: {
|
|
12
12
|
fontWeight: 'FontWeight500',
|
|
13
13
|
fontSize: 'LegacyFontSize35',
|
|
14
|
-
lineHeight: '
|
|
14
|
+
lineHeight: 'LineHeight700',
|
|
15
15
|
fontFamily: 'FontFamilyWebSans',
|
|
16
16
|
fontStyle: 'normal',
|
|
17
17
|
letterSpacing: 'LetterSpacing400'
|
|
@@ -104,7 +104,7 @@ var typography = {
|
|
|
104
104
|
sm: {
|
|
105
105
|
value: {
|
|
106
106
|
fontWeight: 'FontWeight400',
|
|
107
|
-
fontSize: '
|
|
107
|
+
fontSize: 'LegacyFontSize11',
|
|
108
108
|
lineHeight: 'LineHeight200',
|
|
109
109
|
fontFamily: 'FontFamilyWebSans',
|
|
110
110
|
fontStyle: 'normal',
|
|
@@ -126,7 +126,7 @@ var typography = {
|
|
|
126
126
|
sm: {
|
|
127
127
|
value: {
|
|
128
128
|
fontWeight: 'FontWeight400',
|
|
129
|
-
fontSize: '
|
|
129
|
+
fontSize: 'LegacyFontSize11',
|
|
130
130
|
lineHeight: 'LineHeight100',
|
|
131
131
|
fontFamily: 'FontFamilyWebSans',
|
|
132
132
|
fontStyle: 'normal',
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var font = {
|
|
8
|
+
font: {
|
|
9
|
+
family: {
|
|
10
|
+
sans: {
|
|
11
|
+
value: 'FontFamilyWebSans'
|
|
12
|
+
},
|
|
13
|
+
monospace: {
|
|
14
|
+
value: 'FontFamilyWebMono'
|
|
15
|
+
},
|
|
16
|
+
product: {
|
|
17
|
+
value: 'FontFamilyWebSans'
|
|
18
|
+
},
|
|
19
|
+
brand: {
|
|
20
|
+
value: 'FontFamilyCharlie'
|
|
21
|
+
},
|
|
22
|
+
code: {
|
|
23
|
+
value: 'FontFamilyWebMono'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var _default = font;
|
|
29
|
+
exports.default = _default;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var typography = {
|
|
8
|
+
font: {
|
|
9
|
+
heading: {
|
|
10
|
+
xxl: {
|
|
11
|
+
value: {
|
|
12
|
+
fontWeight: 'FontWeight700',
|
|
13
|
+
fontSize: 'FontSize32',
|
|
14
|
+
lineHeight: 'LineHeight600',
|
|
15
|
+
fontFamily: 'FontFamilyWebSans',
|
|
16
|
+
fontStyle: 'normal',
|
|
17
|
+
letterSpacing: 'LetterSpacing0'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
xl: {
|
|
21
|
+
value: {
|
|
22
|
+
fontWeight: 'FontWeight700',
|
|
23
|
+
fontSize: 'FontSize28',
|
|
24
|
+
lineHeight: 'LineHeight500',
|
|
25
|
+
fontFamily: 'FontFamilyWebSans',
|
|
26
|
+
fontStyle: 'normal',
|
|
27
|
+
letterSpacing: 'LetterSpacing0'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
lg: {
|
|
31
|
+
value: {
|
|
32
|
+
fontWeight: 'FontWeight700',
|
|
33
|
+
fontSize: 'FontSize24',
|
|
34
|
+
lineHeight: 'LineHeight400',
|
|
35
|
+
fontFamily: 'FontFamilyWebSans',
|
|
36
|
+
fontStyle: 'normal',
|
|
37
|
+
letterSpacing: 'LetterSpacing0'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
md: {
|
|
41
|
+
value: {
|
|
42
|
+
fontWeight: 'FontWeight700',
|
|
43
|
+
fontSize: 'FontSize20',
|
|
44
|
+
lineHeight: 'LineHeight300',
|
|
45
|
+
fontFamily: 'FontFamilyWebSans',
|
|
46
|
+
fontStyle: 'normal',
|
|
47
|
+
letterSpacing: 'LetterSpacing0'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
sm: {
|
|
51
|
+
value: {
|
|
52
|
+
fontWeight: 'FontWeight700',
|
|
53
|
+
fontSize: 'FontSize16',
|
|
54
|
+
lineHeight: 'LineHeight200',
|
|
55
|
+
fontFamily: 'FontFamilyWebSans',
|
|
56
|
+
fontStyle: 'normal',
|
|
57
|
+
letterSpacing: 'LetterSpacing0'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
xs: {
|
|
61
|
+
value: {
|
|
62
|
+
fontWeight: 'FontWeight700',
|
|
63
|
+
fontSize: 'FontSize14',
|
|
64
|
+
lineHeight: 'LineHeight100',
|
|
65
|
+
fontFamily: 'FontFamilyWebSans',
|
|
66
|
+
fontStyle: 'normal',
|
|
67
|
+
letterSpacing: 'LetterSpacing0'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
xxs: {
|
|
71
|
+
value: {
|
|
72
|
+
fontWeight: 'FontWeight700',
|
|
73
|
+
fontSize: 'FontSize12',
|
|
74
|
+
lineHeight: 'LineHeight100',
|
|
75
|
+
fontFamily: 'FontFamilyWebSans',
|
|
76
|
+
fontStyle: 'normal',
|
|
77
|
+
letterSpacing: 'LetterSpacing0'
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
code: {
|
|
82
|
+
'[default]': {
|
|
83
|
+
value: {
|
|
84
|
+
fontWeight: 'FontWeight400',
|
|
85
|
+
fontSize: 'FontSizeCode',
|
|
86
|
+
lineHeight: 'LineHeight1',
|
|
87
|
+
fontFamily: 'FontFamilyWebMono',
|
|
88
|
+
fontStyle: 'normal',
|
|
89
|
+
letterSpacing: 'LetterSpacing0'
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
body: {
|
|
94
|
+
'[default]': {
|
|
95
|
+
value: {
|
|
96
|
+
fontWeight: 'FontWeight400',
|
|
97
|
+
fontSize: 'FontSize14',
|
|
98
|
+
lineHeight: 'LineHeight200',
|
|
99
|
+
fontFamily: 'FontFamilyWebSans',
|
|
100
|
+
fontStyle: 'normal',
|
|
101
|
+
letterSpacing: 'LetterSpacing0'
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
sm: {
|
|
105
|
+
value: {
|
|
106
|
+
fontWeight: 'FontWeight400',
|
|
107
|
+
fontSize: 'FontSize12',
|
|
108
|
+
lineHeight: 'LineHeight200',
|
|
109
|
+
fontFamily: 'FontFamilyWebSans',
|
|
110
|
+
fontStyle: 'normal',
|
|
111
|
+
letterSpacing: 'LetterSpacing0'
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
ui: {
|
|
116
|
+
'[default]': {
|
|
117
|
+
value: {
|
|
118
|
+
fontWeight: 'FontWeight400',
|
|
119
|
+
fontSize: 'FontSize14',
|
|
120
|
+
lineHeight: 'LineHeight1',
|
|
121
|
+
fontFamily: 'FontFamilyWebSans',
|
|
122
|
+
fontStyle: 'normal',
|
|
123
|
+
letterSpacing: 'LetterSpacing0'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
sm: {
|
|
127
|
+
value: {
|
|
128
|
+
fontWeight: 'FontWeight400',
|
|
129
|
+
fontSize: 'FontSize12',
|
|
130
|
+
lineHeight: 'LineHeight1',
|
|
131
|
+
fontFamily: 'FontFamilyWebSans',
|
|
132
|
+
fontStyle: 'normal',
|
|
133
|
+
letterSpacing: 'LetterSpacing0'
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
var _default = typography;
|
|
140
|
+
exports.default = _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::c5a499034468ced262952ef968c2fd67>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -123,21 +123,6 @@ const tokens = [{
|
|
|
123
123
|
},
|
|
124
124
|
"name": "typography.fontFamily.LegacyFontFamilyWebSans",
|
|
125
125
|
"path": ["typography", "fontFamily", "LegacyFontFamilyWebSans"]
|
|
126
|
-
}, {
|
|
127
|
-
"value": "11px",
|
|
128
|
-
"attributes": {
|
|
129
|
-
"group": "typography"
|
|
130
|
-
},
|
|
131
|
-
"filePath": "src/palettes/typography-palette.tsx",
|
|
132
|
-
"isSource": true,
|
|
133
|
-
"original": {
|
|
134
|
-
"value": 11,
|
|
135
|
-
"attributes": {
|
|
136
|
-
"group": "typography"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
"name": "typography.fontSize.FontSize11",
|
|
140
|
-
"path": ["typography", "fontSize", "FontSize11"]
|
|
141
126
|
}, {
|
|
142
127
|
"value": "12px",
|
|
143
128
|
"attributes": {
|
|
@@ -228,6 +213,21 @@ const tokens = [{
|
|
|
228
213
|
},
|
|
229
214
|
"name": "typography.fontSize.FontSize28",
|
|
230
215
|
"path": ["typography", "fontSize", "FontSize28"]
|
|
216
|
+
}, {
|
|
217
|
+
"value": "32px",
|
|
218
|
+
"attributes": {
|
|
219
|
+
"group": "typography"
|
|
220
|
+
},
|
|
221
|
+
"filePath": "src/palettes/typography-palette.tsx",
|
|
222
|
+
"isSource": true,
|
|
223
|
+
"original": {
|
|
224
|
+
"value": 32,
|
|
225
|
+
"attributes": {
|
|
226
|
+
"group": "typography"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"name": "typography.fontSize.FontSize32",
|
|
230
|
+
"path": ["typography", "fontSize", "FontSize32"]
|
|
231
231
|
}, {
|
|
232
232
|
"value": "36px",
|
|
233
233
|
"attributes": {
|
|
@@ -273,6 +273,21 @@ const tokens = [{
|
|
|
273
273
|
},
|
|
274
274
|
"name": "typography.fontSize.FontSizeCode",
|
|
275
275
|
"path": ["typography", "fontSize", "FontSizeCode"]
|
|
276
|
+
}, {
|
|
277
|
+
"value": "11px",
|
|
278
|
+
"attributes": {
|
|
279
|
+
"group": "typography"
|
|
280
|
+
},
|
|
281
|
+
"filePath": "src/palettes/typography-palette.tsx",
|
|
282
|
+
"isSource": true,
|
|
283
|
+
"original": {
|
|
284
|
+
"value": 11,
|
|
285
|
+
"attributes": {
|
|
286
|
+
"group": "typography"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"name": "typography.fontSize.LegacyFontSize11",
|
|
290
|
+
"path": ["typography", "fontSize", "LegacyFontSize11"]
|
|
276
291
|
}, {
|
|
277
292
|
"value": "29px",
|
|
278
293
|
"attributes": {
|
|
@@ -529,19 +544,34 @@ const tokens = [{
|
|
|
529
544
|
"name": "typography.lineHeight.LineHeight500",
|
|
530
545
|
"path": ["typography", "lineHeight", "LineHeight500"]
|
|
531
546
|
}, {
|
|
532
|
-
"value": "
|
|
547
|
+
"value": "36px",
|
|
533
548
|
"attributes": {
|
|
534
549
|
"group": "typography"
|
|
535
550
|
},
|
|
536
551
|
"filePath": "src/palettes/typography-palette.tsx",
|
|
537
552
|
"isSource": true,
|
|
538
553
|
"original": {
|
|
539
|
-
"value":
|
|
554
|
+
"value": 36,
|
|
540
555
|
"attributes": {
|
|
541
556
|
"group": "typography"
|
|
542
557
|
}
|
|
543
558
|
},
|
|
544
559
|
"name": "typography.lineHeight.LineHeight600",
|
|
545
560
|
"path": ["typography", "lineHeight", "LineHeight600"]
|
|
561
|
+
}, {
|
|
562
|
+
"value": "40px",
|
|
563
|
+
"attributes": {
|
|
564
|
+
"group": "typography"
|
|
565
|
+
},
|
|
566
|
+
"filePath": "src/palettes/typography-palette.tsx",
|
|
567
|
+
"isSource": true,
|
|
568
|
+
"original": {
|
|
569
|
+
"value": 40,
|
|
570
|
+
"attributes": {
|
|
571
|
+
"group": "typography"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"name": "typography.lineHeight.LineHeight700",
|
|
575
|
+
"path": ["typography", "lineHeight", "LineHeight700"]
|
|
546
576
|
}];
|
|
547
577
|
export default tokens;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This allows users to compose their themes and only use the tokens that are requested.
|
|
7
7
|
* When a new theme is created, the import should automatically be added to the map
|
|
8
8
|
*
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::1e1c80a5700235c55449aa23948418be>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -30,6 +30,8 @@ const themeImportsMap = {
|
|
|
30
30
|
'dark-new-input-border': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-dark-new-input-border" */
|
|
31
31
|
'./themes/atlassian-dark-new-input-border'),
|
|
32
32
|
'typography': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography" */
|
|
33
|
-
'./themes/atlassian-typography')
|
|
33
|
+
'./themes/atlassian-typography'),
|
|
34
|
+
'typography-minor3': () => import( /* webpackChunkName: "@atlaskit-internal_atlassian-typography-minor3" */
|
|
35
|
+
'./themes/atlassian-typography-minor3')
|
|
34
36
|
};
|
|
35
37
|
export default themeImportsMap;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::88719508da65fd1b7ad398cc0681c4c5>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
export default `
|
|
7
|
+
html[data-theme~="typography:typography-minor3"] {
|
|
8
|
+
--ds-font-body: normal 400 0.875rem/1.25rem var(--ds-font-family-sans);
|
|
9
|
+
--ds-font-body-sm: normal 400 0.75rem/1.25rem var(--ds-font-family-sans);
|
|
10
|
+
--ds-font-code: normal 400 0.875em/1 var(--ds-font-family-monospace);
|
|
11
|
+
--ds-font-heading-lg: normal 700 1.5rem/1.75rem var(--ds-font-family-sans);
|
|
12
|
+
--ds-font-heading-md: normal 700 1.25rem/1.5rem var(--ds-font-family-sans);
|
|
13
|
+
--ds-font-heading-sm: normal 700 1rem/1.25rem var(--ds-font-family-sans);
|
|
14
|
+
--ds-font-heading-xl: normal 700 1.75rem/2rem var(--ds-font-family-sans);
|
|
15
|
+
--ds-font-heading-xs: normal 700 0.875rem/1rem var(--ds-font-family-sans);
|
|
16
|
+
--ds-font-heading-xxl: normal 700 2rem/2.25rem var(--ds-font-family-sans);
|
|
17
|
+
--ds-font-heading-xxs: normal 700 0.75rem/1rem var(--ds-font-family-sans);
|
|
18
|
+
--ds-font-letterSpacing-0: 0;
|
|
19
|
+
--ds-font-letterSpacing-100: 0;
|
|
20
|
+
--ds-font-letterSpacing-200: 0;
|
|
21
|
+
--ds-font-letterSpacing-300: 0;
|
|
22
|
+
--ds-font-letterSpacing-400: 0;
|
|
23
|
+
--ds-font-ui: normal 400 0.875rem/1 var(--ds-font-family-sans);
|
|
24
|
+
--ds-font-ui-sm: normal 400 0.75rem/1 var(--ds-font-family-sans);
|
|
25
|
+
--ds-font-family-code: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
|
|
26
|
+
--ds-font-family-monospace: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
|
|
27
|
+
--ds-font-family-product: ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif;
|
|
28
|
+
--ds-font-family-sans: ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif;
|
|
29
|
+
--ds-font-family-brand: Charlie Sans;
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::ce2e1e115aa9ff0027981ef8ba658c64>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
export default `
|
|
7
7
|
html[data-theme~="typography:typography"] {
|
|
8
8
|
--ds-font-body: normal 400 0.875rem/1.25rem var(--ds-font-family-sans);
|
|
9
|
-
--ds-font-body-sm: normal 400 0.
|
|
9
|
+
--ds-font-body-sm: normal 400 0.75rem/1.25rem var(--ds-font-family-sans);
|
|
10
10
|
--ds-font-code: normal 400 0.875em/1 var(--ds-font-family-monospace);
|
|
11
11
|
--ds-font-heading-lg: normal 700 1.5rem/1.75rem var(--ds-font-family-sans);
|
|
12
12
|
--ds-font-heading-md: normal 700 1.25rem/1.5rem var(--ds-font-family-sans);
|
|
@@ -21,7 +21,7 @@ html[data-theme~="typography:typography"] {
|
|
|
21
21
|
--ds-font-letterSpacing-300: 0;
|
|
22
22
|
--ds-font-letterSpacing-400: 0;
|
|
23
23
|
--ds-font-ui: normal 400 0.875rem/1 var(--ds-font-family-sans);
|
|
24
|
-
--ds-font-ui-sm: normal 400 0.
|
|
24
|
+
--ds-font-ui-sm: normal 400 0.75rem/1 var(--ds-font-family-sans);
|
|
25
25
|
--ds-font-family-code: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
|
|
26
26
|
--ds-font-family-monospace: ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace;
|
|
27
27
|
--ds-font-family-product: ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif;
|