@atlaskit/tokens 0.1.0 → 0.3.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 +37 -0
- package/README.md +42 -3
- package/css/atlassian-dark.css +88 -81
- package/css/atlassian-light.css +88 -81
- package/dist/cjs/entry-points/token-default-values.js +15 -0
- package/dist/cjs/figma/synchronize-figma-tokens.js +4 -4
- package/dist/cjs/tokens/atlassian-dark/color/accent.js +25 -28
- package/dist/cjs/tokens/atlassian-dark/color/background.js +49 -196
- package/dist/cjs/tokens/atlassian-dark/color/border.js +2 -8
- package/dist/cjs/tokens/atlassian-dark/color/icon-border.js +5 -20
- package/dist/cjs/tokens/atlassian-dark/color/overlay.js +2 -8
- package/dist/cjs/tokens/atlassian-dark/color/text.js +14 -56
- package/dist/cjs/tokens/atlassian-dark/shadow/shadow.js +2 -8
- package/dist/cjs/tokens/atlassian-dark/utility/utility.js +17 -0
- package/dist/cjs/tokens/atlassian-light/color/accent.js +25 -28
- package/dist/cjs/tokens/atlassian-light/color/background.js +49 -196
- package/dist/cjs/tokens/atlassian-light/color/border.js +2 -8
- package/dist/cjs/tokens/atlassian-light/color/icon-border.js +5 -20
- package/dist/cjs/tokens/atlassian-light/color/overlay.js +2 -8
- package/dist/cjs/tokens/atlassian-light/color/text.js +14 -56
- package/dist/cjs/tokens/atlassian-light/shadow/shadow.js +2 -8
- package/dist/cjs/tokens/atlassian-light/utility/utility.js +17 -0
- package/dist/cjs/tokens/default/color/accent.js +92 -0
- package/dist/cjs/tokens/default/color/background.js +338 -0
- package/dist/cjs/tokens/default/color/border.js +26 -0
- package/dist/cjs/tokens/default/color/icon-border.js +44 -0
- package/dist/cjs/tokens/default/color/overlay.js +26 -0
- package/dist/cjs/tokens/default/color/text.js +100 -0
- package/dist/cjs/tokens/default/shadow/shadow.js +24 -0
- package/dist/cjs/tokens/default/utility/utility.js +20 -0
- package/dist/cjs/tokens/rename-mapping.js +1 -11
- package/dist/cjs/tokens/token-default-values.js +104 -0
- package/dist/cjs/tokens/token-names.js +88 -81
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/entry-points/token-default-values.js +1 -0
- package/dist/es2019/figma/synchronize-figma-tokens.js +4 -4
- package/dist/es2019/tokens/atlassian-dark/color/accent.js +25 -28
- package/dist/es2019/tokens/atlassian-dark/color/background.js +49 -196
- package/dist/es2019/tokens/atlassian-dark/color/border.js +2 -8
- package/dist/es2019/tokens/atlassian-dark/color/icon-border.js +5 -20
- package/dist/es2019/tokens/atlassian-dark/color/overlay.js +2 -8
- package/dist/es2019/tokens/atlassian-dark/color/text.js +14 -56
- package/dist/es2019/tokens/atlassian-dark/shadow/shadow.js +2 -8
- package/dist/es2019/tokens/atlassian-dark/utility/utility.js +10 -0
- package/dist/es2019/tokens/atlassian-light/color/accent.js +25 -28
- package/dist/es2019/tokens/atlassian-light/color/background.js +49 -196
- package/dist/es2019/tokens/atlassian-light/color/border.js +2 -8
- package/dist/es2019/tokens/atlassian-light/color/icon-border.js +5 -20
- package/dist/es2019/tokens/atlassian-light/color/overlay.js +2 -8
- package/dist/es2019/tokens/atlassian-light/color/text.js +14 -56
- package/dist/es2019/tokens/atlassian-light/shadow/shadow.js +2 -8
- package/dist/es2019/tokens/atlassian-light/utility/utility.js +10 -0
- package/dist/es2019/tokens/default/color/accent.js +85 -0
- package/dist/es2019/tokens/default/color/background.js +336 -0
- package/dist/es2019/tokens/default/color/border.js +19 -0
- package/dist/es2019/tokens/default/color/icon-border.js +55 -0
- package/dist/es2019/tokens/default/color/overlay.js +19 -0
- package/dist/es2019/tokens/default/color/text.js +100 -0
- package/dist/es2019/tokens/default/shadow/shadow.js +25 -0
- package/dist/es2019/tokens/default/utility/utility.js +13 -0
- package/dist/es2019/tokens/rename-mapping.js +1 -11
- package/dist/es2019/tokens/token-default-values.js +97 -0
- package/dist/es2019/tokens/token-names.js +88 -81
- package/dist/es2019/version.json +1 -1
- package/dist/esm/entry-points/token-default-values.js +1 -0
- package/dist/esm/figma/synchronize-figma-tokens.js +4 -4
- package/dist/esm/tokens/atlassian-dark/color/accent.js +25 -28
- package/dist/esm/tokens/atlassian-dark/color/background.js +49 -196
- package/dist/esm/tokens/atlassian-dark/color/border.js +2 -8
- package/dist/esm/tokens/atlassian-dark/color/icon-border.js +5 -20
- package/dist/esm/tokens/atlassian-dark/color/overlay.js +2 -8
- package/dist/esm/tokens/atlassian-dark/color/text.js +14 -56
- package/dist/esm/tokens/atlassian-dark/shadow/shadow.js +2 -8
- package/dist/esm/tokens/atlassian-dark/utility/utility.js +10 -0
- package/dist/esm/tokens/atlassian-light/color/accent.js +25 -28
- package/dist/esm/tokens/atlassian-light/color/background.js +49 -196
- package/dist/esm/tokens/atlassian-light/color/border.js +2 -8
- package/dist/esm/tokens/atlassian-light/color/icon-border.js +5 -20
- package/dist/esm/tokens/atlassian-light/color/overlay.js +2 -8
- package/dist/esm/tokens/atlassian-light/color/text.js +14 -56
- package/dist/esm/tokens/atlassian-light/shadow/shadow.js +2 -8
- package/dist/esm/tokens/atlassian-light/utility/utility.js +10 -0
- package/dist/esm/tokens/default/color/accent.js +85 -0
- package/dist/esm/tokens/default/color/background.js +331 -0
- package/dist/esm/tokens/default/color/border.js +19 -0
- package/dist/esm/tokens/default/color/icon-border.js +37 -0
- package/dist/esm/tokens/default/color/overlay.js +19 -0
- package/dist/esm/tokens/default/color/text.js +93 -0
- package/dist/esm/tokens/default/shadow/shadow.js +17 -0
- package/dist/esm/tokens/default/utility/utility.js +13 -0
- package/dist/esm/tokens/rename-mapping.js +1 -11
- package/dist/esm/tokens/token-default-values.js +97 -0
- package/dist/esm/tokens/token-names.js +88 -81
- package/dist/esm/version.json +1 -1
- package/dist/types/entry-points/token-default-values.d.ts +1 -0
- package/dist/types/tokens/atlassian-dark/color/accent.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/background.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/border.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/icon-border.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/overlay.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/color/text.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/shadow/shadow.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +5 -0
- package/dist/types/tokens/atlassian-light/color/accent.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/background.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/border.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/icon-border.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/overlay.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/color/text.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/shadow/shadow.d.ts +2 -2
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +5 -0
- package/dist/types/tokens/default/color/accent.d.ts +3 -0
- package/dist/types/tokens/default/color/background.d.ts +3 -0
- package/dist/types/tokens/default/color/border.d.ts +3 -0
- package/dist/types/tokens/default/color/icon-border.d.ts +3 -0
- package/dist/types/tokens/default/color/overlay.d.ts +3 -0
- package/dist/types/tokens/default/color/text.d.ts +3 -0
- package/dist/types/tokens/default/shadow/shadow.d.ts +3 -0
- package/dist/types/tokens/default/utility/utility.d.ts +5 -0
- package/dist/types/tokens/token-default-values.d.ts +94 -0
- package/dist/types/tokens/token-names.d.ts +176 -162
- package/dist/types/types.d.ts +22 -4
- package/package.json +4 -2
- package/token-default-values/package.json +7 -0
- package/tokens-browser-extension/README.md +28 -0
- package/tokens-browser-extension/atlassian-theme.css +375 -0
- package/tokens-browser-extension/background.js +75 -0
- package/tokens-browser-extension/content-script.js +75 -0
- package/tokens-browser-extension/devtools.html +1 -0
- package/tokens-browser-extension/devtools.js +14 -0
- package/tokens-browser-extension/manifest.json +36 -0
- package/tokens-browser-extension/messageback-script.js +10 -0
- package/tokens-browser-extension/messaging.js +36 -0
- package/tokens-browser-extension/panel.html +25 -0
- package/tokens-browser-extension/panel.js +46 -0
- package/tokens-browser-extension/toast.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @atlaskit/tokens
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`092e10c6184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/092e10c6184) - CSS variables generated by the tokens package now have a prefix "ds-" to differentiate them from other CSS variables in an application
|
|
8
|
+
|
|
9
|
+
## 0.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`5c1cf4723e4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5c1cf4723e4) - typescript-token-name formatter now outputs token names with an indexable Record type
|
|
14
|
+
- [`2f9faec5201`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2f9faec5201) - Tokens now provided with descriptions for when they should be used
|
|
15
|
+
|
|
16
|
+
## 0.2.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [`18b502b7083`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18b502b7083) - Added a new export, token-default-values, which maps token names to their value in the default theme (currently the "atlassian-light" theme).
|
|
21
|
+
|
|
22
|
+
## 0.1.1
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [`6f3632e65d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6f3632e65d4) - Updates README with MVP instructions for usage.
|
|
27
|
+
- [`c1498cb226e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c1498cb226e) - Removes previous rename map
|
|
28
|
+
- [`0936217160c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0936217160c) - Add bold accent tokens:
|
|
29
|
+
|
|
30
|
+
- `color.accent.boldBlue`
|
|
31
|
+
- `color.accent.boldRed`
|
|
32
|
+
- `color.accent.boldGreen`
|
|
33
|
+
- `color.accent.boldOrange`
|
|
34
|
+
- `color.accent.boldTeal`
|
|
35
|
+
- `color.accent.boldPurple`
|
|
36
|
+
|
|
37
|
+
- [`6d72bea69a0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d72bea69a0) - Descriptions and other token metadata is now stored in the "default" theme.
|
|
38
|
+
- [`addf9436414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/addf9436414) - [ux] Introduced a restricted util token for use during the initial token migration. This token is for internal use only and will be removed in a future version of `@atlaskit/tokens`.
|
|
39
|
+
|
|
3
40
|
## 0.1.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# Tokens
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
> ⚠️ This package is under development and comes with no semver guarantees,
|
|
4
|
+
> your app will break if you use this directly.
|
|
5
|
+
|
|
6
|
+
Tokens are a single source of truth to name and store Atlassian design decisions.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
yarn add @atlaskit/tokens
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
### Setup your environment
|
|
17
|
+
|
|
18
|
+
Before continuing ensure the CSS themes are installed,
|
|
19
|
+
depending on your bundler configuration may differ.
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import '@atlaskit/tokens/css/atlassian-light.css';
|
|
23
|
+
import '@atlaskit/tokens/css/atlassian-dark.css';
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Token
|
|
27
|
+
|
|
28
|
+
Use the `token` function to get a [CSS variable](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) for the named token.
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import { token } from '@atlaskit/tokens';
|
|
32
|
+
|
|
33
|
+
token('color.background.default');
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Set global theme
|
|
37
|
+
|
|
38
|
+
Change the global theme during runtime.
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
import { setGlobalTheme } from '@atlaskit/tokens';
|
|
42
|
+
|
|
43
|
+
setGlobalTheme('light');
|
|
44
|
+
```
|
package/css/atlassian-dark.css
CHANGED
|
@@ -1,85 +1,92 @@
|
|
|
1
1
|
/* THIS IS AN AUTO-GENERATED FILE DO NOT MODIFY DIRECTLY */
|
|
2
2
|
/* Re-generate by running `yarn build tokens`. */
|
|
3
3
|
html[data-theme="dark"] {
|
|
4
|
-
--accent-
|
|
5
|
-
--accent-
|
|
6
|
-
--accent-
|
|
7
|
-
--accent-
|
|
8
|
-
--accent-
|
|
9
|
-
--accent-
|
|
10
|
-
--accent-
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--background-
|
|
18
|
-
--background-
|
|
19
|
-
--background-
|
|
20
|
-
--background-
|
|
21
|
-
--background-
|
|
22
|
-
--background-
|
|
23
|
-
--background-
|
|
24
|
-
--background-
|
|
25
|
-
--background-
|
|
26
|
-
--background-
|
|
27
|
-
--background-
|
|
28
|
-
--background-
|
|
29
|
-
--background-
|
|
30
|
-
--background-
|
|
31
|
-
--background-
|
|
32
|
-
--background-
|
|
33
|
-
--background-
|
|
34
|
-
--background-
|
|
35
|
-
--background-
|
|
36
|
-
--background-
|
|
37
|
-
--background-
|
|
38
|
-
--background-
|
|
39
|
-
--background-
|
|
40
|
-
--background-
|
|
41
|
-
--background-
|
|
42
|
-
--background-
|
|
43
|
-
--background-
|
|
44
|
-
--background-
|
|
45
|
-
--background-
|
|
46
|
-
--background-
|
|
47
|
-
--background-
|
|
48
|
-
--background-
|
|
49
|
-
--background-
|
|
50
|
-
--background-
|
|
51
|
-
--background-
|
|
52
|
-
--background-
|
|
53
|
-
--background-
|
|
54
|
-
--background-
|
|
55
|
-
--background-
|
|
56
|
-
--background-
|
|
57
|
-
--background-
|
|
58
|
-
--background-
|
|
59
|
-
--background-
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
--
|
|
68
|
-
--
|
|
69
|
-
--
|
|
70
|
-
--
|
|
71
|
-
--
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--
|
|
75
|
-
--text-
|
|
76
|
-
--text-
|
|
77
|
-
--text-
|
|
78
|
-
--text-
|
|
79
|
-
--text-
|
|
80
|
-
--text-
|
|
81
|
-
--text-
|
|
82
|
-
--text-
|
|
83
|
-
--
|
|
84
|
-
--
|
|
4
|
+
--ds-accent-boldBlue: #0C66E4;
|
|
5
|
+
--ds-accent-boldGreen: #1F845A;
|
|
6
|
+
--ds-accent-boldOrange: #B85C00;
|
|
7
|
+
--ds-accent-boldPurple: #6E5DC6;
|
|
8
|
+
--ds-accent-boldRed: #CE2E1C;
|
|
9
|
+
--ds-accent-boldTeal: #1D7F8C;
|
|
10
|
+
--ds-accent-subtleBlue: #09326C;
|
|
11
|
+
--ds-accent-subtleGreen: #164B35;
|
|
12
|
+
--ds-accent-subtleMagenta: #50253F;
|
|
13
|
+
--ds-accent-subtleOrange: #5F3811;
|
|
14
|
+
--ds-accent-subtlePurple: #352C63;
|
|
15
|
+
--ds-accent-subtleRed: #601D16;
|
|
16
|
+
--ds-accent-subtleTeal: #1D474C;
|
|
17
|
+
--ds-background-sunken: #03040454;
|
|
18
|
+
--ds-background-default: #161A1D;
|
|
19
|
+
--ds-background-card: #1D2125;
|
|
20
|
+
--ds-background-overlay: #22272B;
|
|
21
|
+
--ds-background-selected-resting: #A1BDD914;
|
|
22
|
+
--ds-background-selected-hover: #A6C5E229;
|
|
23
|
+
--ds-background-selected-pressed: #BFDBF847;
|
|
24
|
+
--ds-background-blanket: #03040454;
|
|
25
|
+
--ds-background-disabled: #A1BDD914;
|
|
26
|
+
--ds-background-boldBrand-resting: #579DFF;
|
|
27
|
+
--ds-background-boldBrand-hover: #85B8FF;
|
|
28
|
+
--ds-background-boldBrand-pressed: #CCE0FF;
|
|
29
|
+
--ds-background-subtleBrand-resting: #082145;
|
|
30
|
+
--ds-background-subtleBrand-hover: #09326C;
|
|
31
|
+
--ds-background-subtleBrand-pressed: #0055CC;
|
|
32
|
+
--ds-background-boldDanger-resting: #F97362;
|
|
33
|
+
--ds-background-boldDanger-hover: #FF9A8F;
|
|
34
|
+
--ds-background-boldDanger-pressed: #FFD2CC;
|
|
35
|
+
--ds-background-subtleDanger-resting: #391713;
|
|
36
|
+
--ds-background-subtleDanger-hover: #601D16;
|
|
37
|
+
--ds-background-subtleDanger-pressed: #B22515;
|
|
38
|
+
--ds-background-boldWarning-resting: #EBB800;
|
|
39
|
+
--ds-background-boldWarning-hover: #FFD138;
|
|
40
|
+
--ds-background-boldWarning-pressed: #FFE785;
|
|
41
|
+
--ds-background-subtleWarning-resting: #3D2E00;
|
|
42
|
+
--ds-background-subtleWarning-hover: #533F04;
|
|
43
|
+
--ds-background-subtleWarning-pressed: #7F5F01;
|
|
44
|
+
--ds-background-boldSuccess-resting: #3ACF91;
|
|
45
|
+
--ds-background-boldSuccess-hover: #76E0B4;
|
|
46
|
+
--ds-background-boldSuccess-pressed: #AFF3D6;
|
|
47
|
+
--ds-background-subtleSuccess-resting: #133527;
|
|
48
|
+
--ds-background-subtleSuccess-hover: #164B35;
|
|
49
|
+
--ds-background-subtleSuccess-pressed: #216E4E;
|
|
50
|
+
--ds-background-boldDiscovery-resting: #9F8FEF;
|
|
51
|
+
--ds-background-boldDiscovery-hover: #B8ACF6;
|
|
52
|
+
--ds-background-boldDiscovery-pressed: #DFD8FD;
|
|
53
|
+
--ds-background-subtleDiscovery-resting: #231C3F;
|
|
54
|
+
--ds-background-subtleDiscovery-hover: #352C63;
|
|
55
|
+
--ds-background-subtleDiscovery-pressed: #5E4DB2;
|
|
56
|
+
--ds-background-boldNeutral-resting: #9FADBC;
|
|
57
|
+
--ds-background-boldNeutral-hover: #B6C2CF;
|
|
58
|
+
--ds-background-boldNeutral-pressed: #C7D1DB;
|
|
59
|
+
--ds-background-transparentNeutral-hover: #A1BDD914;
|
|
60
|
+
--ds-background-transparentNeutral-pressed: #A6C5E229;
|
|
61
|
+
--ds-background-subtleNeutral-resting: #A1BDD914;
|
|
62
|
+
--ds-background-subtleNeutral-hover: #A6C5E229;
|
|
63
|
+
--ds-background-subtleNeutral-pressed: #BFDBF847;
|
|
64
|
+
--ds-background-subtleBorderedNeutral-resting: #BCD6F00A;
|
|
65
|
+
--ds-background-subtleBorderedNeutral-pressed: #A1BDD914;
|
|
66
|
+
--ds-border-focus: #85B8FF;
|
|
67
|
+
--ds-border-neutral: #A6C5E229;
|
|
68
|
+
--ds-iconBorder-brand: #388BFF;
|
|
69
|
+
--ds-iconBorder-danger: #F35844;
|
|
70
|
+
--ds-iconBorder-warning: #D19D00;
|
|
71
|
+
--ds-iconBorder-success: #2ABB7F;
|
|
72
|
+
--ds-iconBorder-discovery: #8F7EE7;
|
|
73
|
+
--ds-overlay-hover: #BFDBF847;
|
|
74
|
+
--ds-overlay-pressed: #A3C0DB7A;
|
|
75
|
+
--ds-text-selected: #579DFF;
|
|
76
|
+
--ds-text-highEmphasis: #C7D1DB;
|
|
77
|
+
--ds-text-mediumEmphasis: #9FADBC;
|
|
78
|
+
--ds-text-lowEmphasis: #8696A7;
|
|
79
|
+
--ds-text-onBold: #161A1D;
|
|
80
|
+
--ds-text-onBoldWarning: #161A1D;
|
|
81
|
+
--ds-text-link-resting: #579DFF;
|
|
82
|
+
--ds-text-link-pressed: #85B8FF;
|
|
83
|
+
--ds-text-brand: #85B8FF;
|
|
84
|
+
--ds-text-warning: #FFD138;
|
|
85
|
+
--ds-text-danger: #FF9A8F;
|
|
86
|
+
--ds-text-success: #76E0B4;
|
|
87
|
+
--ds-text-discovery: #B8ACF6;
|
|
88
|
+
--ds-text-disabled: #5A6977;
|
|
89
|
+
--ds-card: 0px 1px 1px #03040480, 0px 0px 1px #03040480;
|
|
90
|
+
--ds-overlay: inset 0px 0px 0px 1px #BCD6F00A, 0px 8px 12px #0304045C, 0px 0px 1px #03040480;
|
|
91
|
+
--ds-UNSAFE_util-transparent: transparent;
|
|
85
92
|
}
|
package/css/atlassian-light.css
CHANGED
|
@@ -1,85 +1,92 @@
|
|
|
1
1
|
/* THIS IS AN AUTO-GENERATED FILE DO NOT MODIFY DIRECTLY */
|
|
2
2
|
/* Re-generate by running `yarn build tokens`. */
|
|
3
3
|
:root, html[data-theme="light"] {
|
|
4
|
-
--accent-
|
|
5
|
-
--accent-
|
|
6
|
-
--accent-
|
|
7
|
-
--accent-
|
|
8
|
-
--accent-
|
|
9
|
-
--accent-
|
|
10
|
-
--accent-
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--background-
|
|
18
|
-
--background-
|
|
19
|
-
--background-
|
|
20
|
-
--background-
|
|
21
|
-
--background-
|
|
22
|
-
--background-
|
|
23
|
-
--background-
|
|
24
|
-
--background-
|
|
25
|
-
--background-
|
|
26
|
-
--background-
|
|
27
|
-
--background-
|
|
28
|
-
--background-
|
|
29
|
-
--background-
|
|
30
|
-
--background-
|
|
31
|
-
--background-
|
|
32
|
-
--background-
|
|
33
|
-
--background-
|
|
34
|
-
--background-
|
|
35
|
-
--background-
|
|
36
|
-
--background-
|
|
37
|
-
--background-
|
|
38
|
-
--background-
|
|
39
|
-
--background-
|
|
40
|
-
--background-
|
|
41
|
-
--background-
|
|
42
|
-
--background-
|
|
43
|
-
--background-
|
|
44
|
-
--background-
|
|
45
|
-
--background-
|
|
46
|
-
--background-
|
|
47
|
-
--background-
|
|
48
|
-
--background-
|
|
49
|
-
--background-
|
|
50
|
-
--background-
|
|
51
|
-
--background-
|
|
52
|
-
--background-
|
|
53
|
-
--background-
|
|
54
|
-
--background-
|
|
55
|
-
--background-
|
|
56
|
-
--background-
|
|
57
|
-
--background-
|
|
58
|
-
--background-
|
|
59
|
-
--background-
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
--
|
|
68
|
-
--
|
|
69
|
-
--
|
|
70
|
-
--
|
|
71
|
-
--
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--
|
|
75
|
-
--text-
|
|
76
|
-
--text-
|
|
77
|
-
--text-
|
|
78
|
-
--text-
|
|
79
|
-
--text-
|
|
80
|
-
--text-
|
|
81
|
-
--text-
|
|
82
|
-
--text-
|
|
83
|
-
--
|
|
84
|
-
--
|
|
4
|
+
--ds-accent-boldBlue: #579DFF;
|
|
5
|
+
--ds-accent-boldGreen: #3ACF91;
|
|
6
|
+
--ds-accent-boldOrange: #FFA333;
|
|
7
|
+
--ds-accent-boldPurple: #9F8FEF;
|
|
8
|
+
--ds-accent-boldRed: #F97362;
|
|
9
|
+
--ds-accent-boldTeal: #53C8D5;
|
|
10
|
+
--ds-accent-subtleBlue: #CCE0FF;
|
|
11
|
+
--ds-accent-subtleGreen: #AFF3D6;
|
|
12
|
+
--ds-accent-subtleMagenta: #FDD0EC;
|
|
13
|
+
--ds-accent-subtleOrange: #FFDEB8;
|
|
14
|
+
--ds-accent-subtlePurple: #DFD8FD;
|
|
15
|
+
--ds-accent-subtleRed: #FFD2CC;
|
|
16
|
+
--ds-accent-subtleTeal: #ADEEF5;
|
|
17
|
+
--ds-background-sunken: #091E4208;
|
|
18
|
+
--ds-background-default: #FFFFFF;
|
|
19
|
+
--ds-background-card: #FFFFFF;
|
|
20
|
+
--ds-background-overlay: #FFFFFF;
|
|
21
|
+
--ds-background-selected-resting: #E9F2FF;
|
|
22
|
+
--ds-background-selected-hover: #CCE0FF;
|
|
23
|
+
--ds-background-selected-pressed: #85B8FF;
|
|
24
|
+
--ds-background-blanket: #091E427A;
|
|
25
|
+
--ds-background-disabled: #091E420F;
|
|
26
|
+
--ds-background-boldBrand-resting: #0C66E4;
|
|
27
|
+
--ds-background-boldBrand-hover: #0055CC;
|
|
28
|
+
--ds-background-boldBrand-pressed: #09326C;
|
|
29
|
+
--ds-background-subtleBrand-resting: #E9F2FF;
|
|
30
|
+
--ds-background-subtleBrand-hover: #CCE0FF;
|
|
31
|
+
--ds-background-subtleBrand-pressed: #85B8FF;
|
|
32
|
+
--ds-background-boldDanger-resting: #CE2E1C;
|
|
33
|
+
--ds-background-boldDanger-hover: #B22515;
|
|
34
|
+
--ds-background-boldDanger-pressed: #601D16;
|
|
35
|
+
--ds-background-subtleDanger-resting: #FFEDEB;
|
|
36
|
+
--ds-background-subtleDanger-hover: #FFD2CC;
|
|
37
|
+
--ds-background-subtleDanger-pressed: #FF9A8F;
|
|
38
|
+
--ds-background-boldWarning-resting: #EBB800;
|
|
39
|
+
--ds-background-boldWarning-hover: #D19D00;
|
|
40
|
+
--ds-background-boldWarning-pressed: #B38600;
|
|
41
|
+
--ds-background-subtleWarning-resting: #FFF7D6;
|
|
42
|
+
--ds-background-subtleWarning-hover: #FFE785;
|
|
43
|
+
--ds-background-subtleWarning-pressed: #FFD138;
|
|
44
|
+
--ds-background-boldSuccess-resting: #1F845A;
|
|
45
|
+
--ds-background-boldSuccess-hover: #216E4E;
|
|
46
|
+
--ds-background-boldSuccess-pressed: #164B35;
|
|
47
|
+
--ds-background-subtleSuccess-resting: #DFFCF0;
|
|
48
|
+
--ds-background-subtleSuccess-hover: #AFF3D6;
|
|
49
|
+
--ds-background-subtleSuccess-pressed: #76E0B4;
|
|
50
|
+
--ds-background-boldDiscovery-resting: #6E5DC6;
|
|
51
|
+
--ds-background-boldDiscovery-hover: #5E4DB2;
|
|
52
|
+
--ds-background-boldDiscovery-pressed: #352C63;
|
|
53
|
+
--ds-background-subtleDiscovery-resting: #F3F0FF;
|
|
54
|
+
--ds-background-subtleDiscovery-hover: #DFD8FD;
|
|
55
|
+
--ds-background-subtleDiscovery-pressed: #B8ACF6;
|
|
56
|
+
--ds-background-boldNeutral-resting: #44546F;
|
|
57
|
+
--ds-background-boldNeutral-hover: #2C3E5D;
|
|
58
|
+
--ds-background-boldNeutral-pressed: #172B4D;
|
|
59
|
+
--ds-background-transparentNeutral-hover: #091E420F;
|
|
60
|
+
--ds-background-transparentNeutral-pressed: #091E4224;
|
|
61
|
+
--ds-background-subtleNeutral-resting: #091E420F;
|
|
62
|
+
--ds-background-subtleNeutral-hover: #091E4224;
|
|
63
|
+
--ds-background-subtleNeutral-pressed: #091E424F;
|
|
64
|
+
--ds-background-subtleBorderedNeutral-resting: #091E4208;
|
|
65
|
+
--ds-background-subtleBorderedNeutral-pressed: #091E420F;
|
|
66
|
+
--ds-border-focus: #388BFF;
|
|
67
|
+
--ds-border-neutral: #091E4224;
|
|
68
|
+
--ds-iconBorder-brand: #1D7AFC;
|
|
69
|
+
--ds-iconBorder-danger: #E8422C;
|
|
70
|
+
--ds-iconBorder-warning: #DB6E00;
|
|
71
|
+
--ds-iconBorder-success: #22A06B;
|
|
72
|
+
--ds-iconBorder-discovery: #8270DB;
|
|
73
|
+
--ds-overlay-hover: #091E424F;
|
|
74
|
+
--ds-overlay-pressed: #091E427A;
|
|
75
|
+
--ds-text-selected: #0C66E4;
|
|
76
|
+
--ds-text-highEmphasis: #172B4D;
|
|
77
|
+
--ds-text-mediumEmphasis: #44546F;
|
|
78
|
+
--ds-text-lowEmphasis: #626F86;
|
|
79
|
+
--ds-text-onBold: #FFFFFF;
|
|
80
|
+
--ds-text-onBoldWarning: #172B4D;
|
|
81
|
+
--ds-text-link-resting: #0C66E4;
|
|
82
|
+
--ds-text-link-pressed: #0055CC;
|
|
83
|
+
--ds-text-brand: #0055CC;
|
|
84
|
+
--ds-text-warning: #974F0C;
|
|
85
|
+
--ds-text-danger: #B22515;
|
|
86
|
+
--ds-text-success: #216E4E;
|
|
87
|
+
--ds-text-discovery: #5E4DB2;
|
|
88
|
+
--ds-text-disabled: #8993A5;
|
|
89
|
+
--ds-card: 0px 1px 1px #091E4240, 0px 0px 1px #091E424F;
|
|
90
|
+
--ds-overlay: 0px 8px 12px #091E4226, 0px 0px 1px #091E424F;
|
|
91
|
+
--ds-UNSAFE_util-transparent: transparent;
|
|
85
92
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "default", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _tokenDefaultValues.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var _tokenDefaultValues = _interopRequireDefault(require("../tokens/token-default-values"));
|
|
@@ -114,7 +114,7 @@ function synchronizeFigmaTokens(themeName, tokens) {
|
|
|
114
114
|
// It's still an effect! Update it.
|
|
115
115
|
console.log("=> ".concat(style.name, " shadow style has been updated!"));
|
|
116
116
|
style.effects = createEffects(token.value);
|
|
117
|
-
style.description = token.
|
|
117
|
+
style.description = (token.attributes.description || '').trim(); // Remove from themeValues so it isn't picked up as a new token.
|
|
118
118
|
|
|
119
119
|
delete tokens[style.name];
|
|
120
120
|
}
|
|
@@ -150,7 +150,7 @@ function synchronizeFigmaTokens(themeName, tokens) {
|
|
|
150
150
|
console.log("=> ".concat(style.name, " paint style has been updated!")); // Mutating is how Figma updates.
|
|
151
151
|
|
|
152
152
|
style.paints = [createPaint(token.value)];
|
|
153
|
-
style.description = token.
|
|
153
|
+
style.description = (token.attributes.description || '').trim(); // Remove from themeValues so it isn't picked up as a new token.
|
|
154
154
|
|
|
155
155
|
delete tokens[style.name];
|
|
156
156
|
}
|
|
@@ -168,7 +168,7 @@ function synchronizeFigmaTokens(themeName, tokens) {
|
|
|
168
168
|
if (token.attributes.group === 'paint') {
|
|
169
169
|
var newStyle = figma.createPaintStyle();
|
|
170
170
|
newStyle.name = key;
|
|
171
|
-
newStyle.description = token.
|
|
171
|
+
newStyle.description = (token.attributes.description || '').trim();
|
|
172
172
|
newStyle.paints = [createPaint(token.value)];
|
|
173
173
|
console.log("=> ".concat(key, " paint style has been added!"));
|
|
174
174
|
}
|
|
@@ -177,7 +177,7 @@ function synchronizeFigmaTokens(themeName, tokens) {
|
|
|
177
177
|
var _newStyle = figma.createEffectStyle();
|
|
178
178
|
|
|
179
179
|
_newStyle.name = key;
|
|
180
|
-
_newStyle.description = token.
|
|
180
|
+
_newStyle.description = (token.attributes.description || '').trim();
|
|
181
181
|
_newStyle.effects = createEffects(token.value);
|
|
182
182
|
console.log("=> ".concat(key, " shadow style has been added!"));
|
|
183
183
|
}
|
|
@@ -7,47 +7,44 @@ exports.default = void 0;
|
|
|
7
7
|
var color = {
|
|
8
8
|
color: {
|
|
9
9
|
accent: {
|
|
10
|
+
boldBlue: {
|
|
11
|
+
value: 'B700'
|
|
12
|
+
},
|
|
13
|
+
boldGreen: {
|
|
14
|
+
value: 'G700'
|
|
15
|
+
},
|
|
16
|
+
boldOrange: {
|
|
17
|
+
value: 'O700'
|
|
18
|
+
},
|
|
19
|
+
boldPurple: {
|
|
20
|
+
value: 'P700'
|
|
21
|
+
},
|
|
22
|
+
boldRed: {
|
|
23
|
+
value: 'R700'
|
|
24
|
+
},
|
|
25
|
+
boldTeal: {
|
|
26
|
+
value: 'T700'
|
|
27
|
+
},
|
|
10
28
|
subtleBlue: {
|
|
11
|
-
value: 'B900'
|
|
12
|
-
attributes: {
|
|
13
|
-
group: 'paint'
|
|
14
|
-
}
|
|
29
|
+
value: 'B900'
|
|
15
30
|
},
|
|
16
31
|
subtleGreen: {
|
|
17
|
-
value: 'G900'
|
|
18
|
-
attributes: {
|
|
19
|
-
group: 'paint'
|
|
20
|
-
}
|
|
32
|
+
value: 'G900'
|
|
21
33
|
},
|
|
22
34
|
subtleMagenta: {
|
|
23
|
-
value: 'M900'
|
|
24
|
-
attributes: {
|
|
25
|
-
group: 'paint'
|
|
26
|
-
}
|
|
35
|
+
value: 'M900'
|
|
27
36
|
},
|
|
28
37
|
subtleOrange: {
|
|
29
|
-
value: 'O900'
|
|
30
|
-
attributes: {
|
|
31
|
-
group: 'paint'
|
|
32
|
-
}
|
|
38
|
+
value: 'O900'
|
|
33
39
|
},
|
|
34
40
|
subtlePurple: {
|
|
35
|
-
value: 'P900'
|
|
36
|
-
attributes: {
|
|
37
|
-
group: 'paint'
|
|
38
|
-
}
|
|
41
|
+
value: 'P900'
|
|
39
42
|
},
|
|
40
43
|
subtleRed: {
|
|
41
|
-
value: 'R900'
|
|
42
|
-
attributes: {
|
|
43
|
-
group: 'paint'
|
|
44
|
-
}
|
|
44
|
+
value: 'R900'
|
|
45
45
|
},
|
|
46
46
|
subtleTeal: {
|
|
47
|
-
value: 'T900'
|
|
48
|
-
attributes: {
|
|
49
|
-
group: 'paint'
|
|
50
|
-
}
|
|
47
|
+
value: 'T900'
|
|
51
48
|
}
|
|
52
49
|
}
|
|
53
50
|
}
|