@atlaskit/tokens 1.57.0 → 1.59.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 +24 -0
- package/dist/cjs/artifacts/palettes-raw/typography-palette.js +16 -1
- package/dist/cjs/artifacts/theme-import-map.js +7 -1
- package/dist/cjs/artifacts/themes/atlassian-typography-refreshed.js +12 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-typography-refreshed.js +749 -0
- package/dist/cjs/entry-points/tokens-raw.js +7 -0
- package/dist/cjs/theme-config.js +9 -1
- package/dist/es2019/artifacts/palettes-raw/typography-palette.js +16 -1
- package/dist/es2019/artifacts/theme-import-map.js +3 -1
- package/dist/es2019/artifacts/themes/atlassian-typography-refreshed.js +38 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-typography-refreshed.js +743 -0
- package/dist/es2019/entry-points/tokens-raw.js +1 -0
- package/dist/es2019/theme-config.js +9 -1
- package/dist/esm/artifacts/palettes-raw/typography-palette.js +16 -1
- package/dist/esm/artifacts/theme-import-map.js +5 -1
- package/dist/esm/artifacts/themes/atlassian-typography-refreshed.js +6 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-typography-refreshed.js +743 -0
- package/dist/esm/entry-points/tokens-raw.js +1 -0
- package/dist/esm/theme-config.js +9 -1
- 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-refreshed.d.ts +7 -0
- package/dist/types/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +86 -0
- package/dist/types/entry-points/tokens-raw.d.ts +1 -0
- package/dist/types/theme-config.d.ts +3 -3
- 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-refreshed.d.ts +7 -0
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-refreshed.d.ts +86 -0
- package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +1 -0
- package/dist/types-ts4.5/theme-config.d.ts +5 -3
- package/figma/atlassian-typography-refreshed.json +87 -0
- package/package.json +9 -9
|
@@ -3,5 +3,6 @@ export { default as legacyLightTokens } from '../artifacts/tokens-raw/atlassian-
|
|
|
3
3
|
export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
|
|
4
4
|
export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
|
|
5
5
|
export { default as typography } from '../artifacts/tokens-raw/atlassian-typography-modernized';
|
|
6
|
+
export { default as typographyRefreshed } from '../artifacts/tokens-raw/atlassian-typography-refreshed';
|
|
6
7
|
export { default as typographyAdg3 } from '../artifacts/tokens-raw/atlassian-typography-adg3';
|
|
7
8
|
export { default as shape } from '../artifacts/tokens-raw/atlassian-shape';
|
package/dist/esm/theme-config.js
CHANGED
|
@@ -38,7 +38,7 @@ export var themeContrastModes = ['more', 'no-preference', 'auto'];
|
|
|
38
38
|
*
|
|
39
39
|
* These ids must be kebab case
|
|
40
40
|
*/
|
|
41
|
-
export var themeIds = ['light-increased-contrast', 'light', 'light-future', 'light-brand-refresh', 'dark', 'dark-future', 'dark-increased-contrast', 'dark-brand-refresh', 'legacy-light', 'legacy-dark', 'spacing', 'shape', 'typography-adg3', 'typography-modernized'];
|
|
41
|
+
export var themeIds = ['light-increased-contrast', 'light', 'light-future', 'light-brand-refresh', 'dark', 'dark-future', 'dark-increased-contrast', 'dark-brand-refresh', 'legacy-light', 'legacy-dark', 'spacing', 'shape', 'typography-adg3', 'typography-modernized', 'typography-refreshed'];
|
|
42
42
|
/**
|
|
43
43
|
* Theme override ids: the equivalent of themeIds for theme overrides.
|
|
44
44
|
* Theme overrides are temporary and there may not be any defined at times.
|
|
@@ -174,6 +174,14 @@ var themeConfig = {
|
|
|
174
174
|
type: 'typography'
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
|
+
'atlassian-typography-refreshed': {
|
|
178
|
+
id: 'typography-refreshed',
|
|
179
|
+
displayName: 'Atlassian Typography (Refreshed)',
|
|
180
|
+
palette: 'typographyPalette',
|
|
181
|
+
attributes: {
|
|
182
|
+
type: 'typography'
|
|
183
|
+
}
|
|
184
|
+
},
|
|
177
185
|
'atlassian-light-brand-refresh': {
|
|
178
186
|
id: 'light-brand-refresh',
|
|
179
187
|
displayName: 'Light theme (Brand refresh)',
|
|
@@ -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::4f3e5bd6ca1dd12d81d074b2f03cb0aa>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const 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::8352f41e09dfe9d45ead708661744456>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
import { type ThemeIds, type ThemeOverrideIds } from '../theme-config';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::8125d075804c22bd4991a71f2c92d914>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::2ac0686893c6bd0de9650fa86b054e2b>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const tokens: ({
|
|
7
|
+
attributes: {
|
|
8
|
+
group: string;
|
|
9
|
+
state: string;
|
|
10
|
+
introduced: string;
|
|
11
|
+
description: string;
|
|
12
|
+
deprecated?: undefined;
|
|
13
|
+
};
|
|
14
|
+
value: string;
|
|
15
|
+
filePath: string;
|
|
16
|
+
isSource: boolean;
|
|
17
|
+
original: {
|
|
18
|
+
attributes: {
|
|
19
|
+
group: string;
|
|
20
|
+
state: string;
|
|
21
|
+
introduced: string;
|
|
22
|
+
description: string;
|
|
23
|
+
deprecated?: undefined;
|
|
24
|
+
};
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
name: string;
|
|
28
|
+
path: string[];
|
|
29
|
+
cleanName: string;
|
|
30
|
+
} | {
|
|
31
|
+
attributes: {
|
|
32
|
+
group: string;
|
|
33
|
+
state: string;
|
|
34
|
+
introduced: string;
|
|
35
|
+
description: string;
|
|
36
|
+
deprecated: string;
|
|
37
|
+
};
|
|
38
|
+
value: string;
|
|
39
|
+
filePath: string;
|
|
40
|
+
isSource: boolean;
|
|
41
|
+
original: {
|
|
42
|
+
attributes: {
|
|
43
|
+
group: string;
|
|
44
|
+
state: string;
|
|
45
|
+
introduced: string;
|
|
46
|
+
description: string;
|
|
47
|
+
deprecated: string;
|
|
48
|
+
};
|
|
49
|
+
value: string;
|
|
50
|
+
};
|
|
51
|
+
name: string;
|
|
52
|
+
path: string[];
|
|
53
|
+
cleanName: string;
|
|
54
|
+
} | {
|
|
55
|
+
attributes: {
|
|
56
|
+
group: string;
|
|
57
|
+
state: string;
|
|
58
|
+
introduced: string;
|
|
59
|
+
description: string;
|
|
60
|
+
deprecated?: undefined;
|
|
61
|
+
};
|
|
62
|
+
value: string;
|
|
63
|
+
filePath: string;
|
|
64
|
+
isSource: boolean;
|
|
65
|
+
original: {
|
|
66
|
+
attributes: {
|
|
67
|
+
group: string;
|
|
68
|
+
state: string;
|
|
69
|
+
introduced: string;
|
|
70
|
+
description: string;
|
|
71
|
+
deprecated?: undefined;
|
|
72
|
+
};
|
|
73
|
+
value: {
|
|
74
|
+
fontWeight: string;
|
|
75
|
+
fontSize: string;
|
|
76
|
+
lineHeight: string;
|
|
77
|
+
fontFamily: string;
|
|
78
|
+
fontStyle: string;
|
|
79
|
+
letterSpacing: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
name: string;
|
|
83
|
+
path: string[];
|
|
84
|
+
cleanName: string;
|
|
85
|
+
})[];
|
|
86
|
+
export default tokens;
|
|
@@ -3,5 +3,6 @@ export { default as legacyLightTokens } from '../artifacts/tokens-raw/atlassian-
|
|
|
3
3
|
export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
|
|
4
4
|
export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
|
|
5
5
|
export { default as typography } from '../artifacts/tokens-raw/atlassian-typography-modernized';
|
|
6
|
+
export { default as typographyRefreshed } from '../artifacts/tokens-raw/atlassian-typography-refreshed';
|
|
6
7
|
export { default as typographyAdg3 } from '../artifacts/tokens-raw/atlassian-typography-adg3';
|
|
7
8
|
export { default as shape } from '../artifacts/tokens-raw/atlassian-shape';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* These ids are what the actual theme files/folders are called.
|
|
7
7
|
* style-dictionary will attempt to locate these in the file-system.
|
|
8
8
|
*/
|
|
9
|
-
export type Themes = 'atlassian-light' | 'atlassian-light-future' | 'atlassian-light-increased-contrast' | 'atlassian-light-brand-refresh' | 'atlassian-dark' | 'atlassian-dark-future' | 'atlassian-dark-increased-contrast' | 'atlassian-dark-brand-refresh' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography-modernized' | 'atlassian-typography-adg3';
|
|
9
|
+
export type Themes = 'atlassian-light' | 'atlassian-light-future' | 'atlassian-light-increased-contrast' | 'atlassian-light-brand-refresh' | 'atlassian-dark' | 'atlassian-dark-future' | 'atlassian-dark-increased-contrast' | 'atlassian-dark-brand-refresh' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography-refreshed' | 'atlassian-typography-modernized' | 'atlassian-typography-adg3';
|
|
10
10
|
export type ThemeFileNames = Themes;
|
|
11
11
|
/**
|
|
12
12
|
* ThemeOverrides: The internal identifier of a theme override. Which are themes that contain
|
|
@@ -42,7 +42,7 @@ export type DataContrastModes = 'more' | 'no-preference' | 'auto';
|
|
|
42
42
|
*
|
|
43
43
|
* These ids must be kebab case
|
|
44
44
|
*/
|
|
45
|
-
export declare const themeIds: readonly ["light-increased-contrast", "light", "light-future", "light-brand-refresh", "dark", "dark-future", "dark-increased-contrast", "dark-brand-refresh", "legacy-light", "legacy-dark", "spacing", "shape", "typography-adg3", "typography-modernized"];
|
|
45
|
+
export declare const themeIds: readonly ["light-increased-contrast", "light", "light-future", "light-brand-refresh", "dark", "dark-future", "dark-increased-contrast", "dark-brand-refresh", "legacy-light", "legacy-dark", "spacing", "shape", "typography-adg3", "typography-modernized", "typography-refreshed"];
|
|
46
46
|
export type ThemeIds = (typeof themeIds)[number];
|
|
47
47
|
/**
|
|
48
48
|
* Theme override ids: the equivalent of themeIds for theme overrides.
|
|
@@ -50,7 +50,7 @@ export type ThemeIds = (typeof themeIds)[number];
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const themeOverrideIds: readonly [];
|
|
52
52
|
export type ThemeOverrideIds = (typeof themeOverrideIds)[number];
|
|
53
|
-
export declare const themeIdsWithOverrides: readonly ["light-increased-contrast", "light", "light-future", "light-brand-refresh", "dark", "dark-future", "dark-increased-contrast", "dark-brand-refresh", "legacy-light", "legacy-dark", "spacing", "shape", "typography-adg3", "typography-modernized"];
|
|
53
|
+
export declare const themeIdsWithOverrides: readonly ["light-increased-contrast", "light", "light-future", "light-brand-refresh", "dark", "dark-future", "dark-increased-contrast", "dark-brand-refresh", "legacy-light", "legacy-dark", "spacing", "shape", "typography-adg3", "typography-modernized", "typography-refreshed"];
|
|
54
54
|
export type ThemeIdsWithOverrides = (typeof themeIdsWithOverrides)[number];
|
|
55
55
|
/**
|
|
56
56
|
* Theme to use a base. This will create the theme as
|
|
@@ -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::4f3e5bd6ca1dd12d81d074b2f03cb0aa>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
declare const 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::8352f41e09dfe9d45ead708661744456>>
|
|
10
10
|
* @codegenCommand yarn build tokens
|
|
11
11
|
*/
|
|
12
12
|
import { type ThemeIds, type ThemeOverrideIds } from '../theme-config';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::8125d075804c22bd4991a71f2c92d914>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: "\nhtml[data-theme~=\"typography:typography-refreshed\"] {\n --ds-UNSAFE-textTransformUppercase: uppercase;\n --ds-font-letterSpacing-0: 0;\n --ds-font-letterSpacing-100: 0;\n --ds-font-letterSpacing-200: 0;\n --ds-font-letterSpacing-300: 0;\n --ds-font-letterSpacing-400: 0;\n --ds-font-heading-xxlarge: normal 700 2rem/2.25rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xlarge: normal 700 1.75rem/2rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-large: normal 700 1.5rem/1.75rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-medium: normal 700 1.25rem/1.5rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-small: normal 700 1rem/1.25rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xsmall: normal 700 0.875rem/1.25rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-heading-xxsmall: normal 700 0.75rem/1rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-large: normal 400 1rem/1.5rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body: normal 400 0.875rem/1.25rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-small: normal 400 0.75rem/1rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-body-UNSAFE_small: normal 400 0.75rem/1rem \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-code: normal 400 0.875em/1 ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-weight-regular: 400;\n --ds-font-weight-medium: 500;\n --ds-font-weight-semibold: 600;\n --ds-font-weight-bold: 700;\n --ds-font-family-heading: \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-body: \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-code: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-monospace: ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace;\n --ds-font-family-sans: \"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-heading: \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n --ds-font-family-brand-body: \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif;\n}\n";
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::2ac0686893c6bd0de9650fa86b054e2b>>
|
|
4
|
+
* @codegenCommand yarn build tokens
|
|
5
|
+
*/
|
|
6
|
+
declare const tokens: ({
|
|
7
|
+
attributes: {
|
|
8
|
+
group: string;
|
|
9
|
+
state: string;
|
|
10
|
+
introduced: string;
|
|
11
|
+
description: string;
|
|
12
|
+
deprecated?: undefined;
|
|
13
|
+
};
|
|
14
|
+
value: string;
|
|
15
|
+
filePath: string;
|
|
16
|
+
isSource: boolean;
|
|
17
|
+
original: {
|
|
18
|
+
attributes: {
|
|
19
|
+
group: string;
|
|
20
|
+
state: string;
|
|
21
|
+
introduced: string;
|
|
22
|
+
description: string;
|
|
23
|
+
deprecated?: undefined;
|
|
24
|
+
};
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
name: string;
|
|
28
|
+
path: string[];
|
|
29
|
+
cleanName: string;
|
|
30
|
+
} | {
|
|
31
|
+
attributes: {
|
|
32
|
+
group: string;
|
|
33
|
+
state: string;
|
|
34
|
+
introduced: string;
|
|
35
|
+
description: string;
|
|
36
|
+
deprecated: string;
|
|
37
|
+
};
|
|
38
|
+
value: string;
|
|
39
|
+
filePath: string;
|
|
40
|
+
isSource: boolean;
|
|
41
|
+
original: {
|
|
42
|
+
attributes: {
|
|
43
|
+
group: string;
|
|
44
|
+
state: string;
|
|
45
|
+
introduced: string;
|
|
46
|
+
description: string;
|
|
47
|
+
deprecated: string;
|
|
48
|
+
};
|
|
49
|
+
value: string;
|
|
50
|
+
};
|
|
51
|
+
name: string;
|
|
52
|
+
path: string[];
|
|
53
|
+
cleanName: string;
|
|
54
|
+
} | {
|
|
55
|
+
attributes: {
|
|
56
|
+
group: string;
|
|
57
|
+
state: string;
|
|
58
|
+
introduced: string;
|
|
59
|
+
description: string;
|
|
60
|
+
deprecated?: undefined;
|
|
61
|
+
};
|
|
62
|
+
value: string;
|
|
63
|
+
filePath: string;
|
|
64
|
+
isSource: boolean;
|
|
65
|
+
original: {
|
|
66
|
+
attributes: {
|
|
67
|
+
group: string;
|
|
68
|
+
state: string;
|
|
69
|
+
introduced: string;
|
|
70
|
+
description: string;
|
|
71
|
+
deprecated?: undefined;
|
|
72
|
+
};
|
|
73
|
+
value: {
|
|
74
|
+
fontWeight: string;
|
|
75
|
+
fontSize: string;
|
|
76
|
+
lineHeight: string;
|
|
77
|
+
fontFamily: string;
|
|
78
|
+
fontStyle: string;
|
|
79
|
+
letterSpacing: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
name: string;
|
|
83
|
+
path: string[];
|
|
84
|
+
cleanName: string;
|
|
85
|
+
})[];
|
|
86
|
+
export default tokens;
|
|
@@ -3,5 +3,6 @@ export { default as legacyLightTokens } from '../artifacts/tokens-raw/atlassian-
|
|
|
3
3
|
export { default as dark } from '../artifacts/tokens-raw/atlassian-dark';
|
|
4
4
|
export { default as spacing } from '../artifacts/tokens-raw/atlassian-spacing';
|
|
5
5
|
export { default as typography } from '../artifacts/tokens-raw/atlassian-typography-modernized';
|
|
6
|
+
export { default as typographyRefreshed } from '../artifacts/tokens-raw/atlassian-typography-refreshed';
|
|
6
7
|
export { default as typographyAdg3 } from '../artifacts/tokens-raw/atlassian-typography-adg3';
|
|
7
8
|
export { default as shape } from '../artifacts/tokens-raw/atlassian-shape';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* These ids are what the actual theme files/folders are called.
|
|
7
7
|
* style-dictionary will attempt to locate these in the file-system.
|
|
8
8
|
*/
|
|
9
|
-
export type Themes = 'atlassian-light' | 'atlassian-light-future' | 'atlassian-light-increased-contrast' | 'atlassian-light-brand-refresh' | 'atlassian-dark' | 'atlassian-dark-future' | 'atlassian-dark-increased-contrast' | 'atlassian-dark-brand-refresh' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography-modernized' | 'atlassian-typography-adg3';
|
|
9
|
+
export type Themes = 'atlassian-light' | 'atlassian-light-future' | 'atlassian-light-increased-contrast' | 'atlassian-light-brand-refresh' | 'atlassian-dark' | 'atlassian-dark-future' | 'atlassian-dark-increased-contrast' | 'atlassian-dark-brand-refresh' | 'atlassian-legacy-light' | 'atlassian-legacy-dark' | 'atlassian-shape' | 'atlassian-spacing' | 'atlassian-typography-refreshed' | 'atlassian-typography-modernized' | 'atlassian-typography-adg3';
|
|
10
10
|
export type ThemeFileNames = Themes;
|
|
11
11
|
/**
|
|
12
12
|
* ThemeOverrides: The internal identifier of a theme override. Which are themes that contain
|
|
@@ -64,7 +64,8 @@ export declare const themeIds: readonly [
|
|
|
64
64
|
"spacing",
|
|
65
65
|
"shape",
|
|
66
66
|
"typography-adg3",
|
|
67
|
-
"typography-modernized"
|
|
67
|
+
"typography-modernized",
|
|
68
|
+
"typography-refreshed"
|
|
68
69
|
];
|
|
69
70
|
export type ThemeIds = (typeof themeIds)[number];
|
|
70
71
|
/**
|
|
@@ -88,7 +89,8 @@ export declare const themeIdsWithOverrides: readonly [
|
|
|
88
89
|
"spacing",
|
|
89
90
|
"shape",
|
|
90
91
|
"typography-adg3",
|
|
91
|
-
"typography-modernized"
|
|
92
|
+
"typography-modernized",
|
|
93
|
+
"typography-refreshed"
|
|
92
94
|
];
|
|
93
95
|
export type ThemeIdsWithOverrides = (typeof themeIdsWithOverrides)[number];
|
|
94
96
|
/**
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Typography refreshed",
|
|
3
|
+
"tokens": {
|
|
4
|
+
"Typography refreshed/font.weight.regular": {
|
|
5
|
+
"attributes": {
|
|
6
|
+
"group": "fontWeight",
|
|
7
|
+
"state": "active",
|
|
8
|
+
"introduced": "0.10.33",
|
|
9
|
+
"description": "Default font weight for body text styles."
|
|
10
|
+
},
|
|
11
|
+
"value": "400"
|
|
12
|
+
},
|
|
13
|
+
"Typography refreshed/font.weight.medium": {
|
|
14
|
+
"attributes": {
|
|
15
|
+
"group": "fontWeight",
|
|
16
|
+
"state": "active",
|
|
17
|
+
"introduced": "0.10.33",
|
|
18
|
+
"description": "For all text that may appear beside iconography, such as in a button."
|
|
19
|
+
},
|
|
20
|
+
"value": "500"
|
|
21
|
+
},
|
|
22
|
+
"Typography refreshed/font.weight.semibold": {
|
|
23
|
+
"attributes": {
|
|
24
|
+
"group": "fontWeight",
|
|
25
|
+
"state": "active",
|
|
26
|
+
"introduced": "0.10.33",
|
|
27
|
+
"description": "Use with caution as fallback fonts do not support this font weight and will default to bold weight."
|
|
28
|
+
},
|
|
29
|
+
"value": "600"
|
|
30
|
+
},
|
|
31
|
+
"Typography refreshed/font.weight.bold": {
|
|
32
|
+
"attributes": {
|
|
33
|
+
"group": "fontWeight",
|
|
34
|
+
"state": "active",
|
|
35
|
+
"introduced": "0.10.33",
|
|
36
|
+
"description": "Use sparingly for emphasising text, such as in a lozenge."
|
|
37
|
+
},
|
|
38
|
+
"value": "700"
|
|
39
|
+
},
|
|
40
|
+
"Typography refreshed/font.family.heading": {
|
|
41
|
+
"attributes": {
|
|
42
|
+
"group": "fontFamily",
|
|
43
|
+
"state": "active",
|
|
44
|
+
"introduced": "1.14.0",
|
|
45
|
+
"description": "For our default product UI heading text."
|
|
46
|
+
},
|
|
47
|
+
"value": "\"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
48
|
+
},
|
|
49
|
+
"Typography refreshed/font.family.body": {
|
|
50
|
+
"attributes": {
|
|
51
|
+
"group": "fontFamily",
|
|
52
|
+
"state": "active",
|
|
53
|
+
"introduced": "1.14.0",
|
|
54
|
+
"description": "For our default product UI body text."
|
|
55
|
+
},
|
|
56
|
+
"value": "\"Inter Variable\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
57
|
+
},
|
|
58
|
+
"Typography refreshed/font.family.code": {
|
|
59
|
+
"attributes": {
|
|
60
|
+
"group": "fontFamily",
|
|
61
|
+
"state": "active",
|
|
62
|
+
"introduced": "1.14.0",
|
|
63
|
+
"description": "For representing code only."
|
|
64
|
+
},
|
|
65
|
+
"value": "ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace"
|
|
66
|
+
},
|
|
67
|
+
"Typography refreshed/font.family.brand.heading": {
|
|
68
|
+
"attributes": {
|
|
69
|
+
"group": "fontFamily",
|
|
70
|
+
"state": "active",
|
|
71
|
+
"introduced": "1.14.0",
|
|
72
|
+
"description": "For our brand heading text. Uses Charlie Display."
|
|
73
|
+
},
|
|
74
|
+
"value": "\"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
75
|
+
},
|
|
76
|
+
"Typography refreshed/font.family.brand.body": {
|
|
77
|
+
"attributes": {
|
|
78
|
+
"group": "fontFamily",
|
|
79
|
+
"state": "active",
|
|
80
|
+
"introduced": "1.14.0",
|
|
81
|
+
"description": "For our brand body text. Uses Charlie Text."
|
|
82
|
+
},
|
|
83
|
+
"value": "\"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"renameMap": {}
|
|
87
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.59.0",
|
|
4
4
|
"description": "Design tokens are the single source of truth to name and store design decisions.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"codegen-tokens": "ts-node --project $(npx repo-root)/tsconfig.node.json ./scripts/style-dictionary/build && cd $(npx repo-root)/packages/design-system/primitives && yarn codegen-styles && cd $(npx repo-root)/packages/design-system/ds-explorations && yarn codegen-styles && cd $(npx repo-root)/packages/design-system/heading && yarn codegen"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@atlaskit/ds-lib": "^2.
|
|
38
|
+
"@atlaskit/ds-lib": "^2.5.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"@babel/traverse": "^7.23.2",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"bind-event-listener": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"react": "^16.8.0 || ^17.0.0 ||
|
|
46
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@af/accessibility-testing": "*",
|
|
50
50
|
"@af/formatting": "*",
|
|
51
|
-
"@atlaskit/button": "^
|
|
52
|
-
"@atlaskit/calendar": "^14.
|
|
53
|
-
"@atlaskit/checkbox": "^13.
|
|
54
|
-
"@atlaskit/radio": "^6.
|
|
55
|
-
"@atlaskit/textfield": "^6.
|
|
56
|
-
"@atlaskit/tooltip": "^18.
|
|
51
|
+
"@atlaskit/button": "^20.1.0",
|
|
52
|
+
"@atlaskit/calendar": "^14.5.0",
|
|
53
|
+
"@atlaskit/checkbox": "^13.7.0",
|
|
54
|
+
"@atlaskit/radio": "^6.5.0",
|
|
55
|
+
"@atlaskit/textfield": "^6.5.0",
|
|
56
|
+
"@atlaskit/tooltip": "^18.7.0",
|
|
57
57
|
"@atlaskit/visual-regression": "*",
|
|
58
58
|
"@atlassian/codegen": "^0.1.0",
|
|
59
59
|
"@atlassian/feature-flags-test-utils": "*",
|