@aurodesignsystem/design-tokens 4.0.0 → 4.1.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 +7 -0
- package/README.md +20 -26
- package/dist/tokens/CSSCustomProperties.css +1 -1
- package/dist/tokens/CSSSizeCustomProperties.css +1 -1
- package/dist/tokens/JSData--color.js +1 -1
- package/dist/tokens/JSObject--allTokens.js +1 -1
- package/dist/tokens/JSObject--deprecated.js +1 -1
- package/dist/tokens/JSVariables--color.js +1 -1
- package/dist/tokens/SCSSVariableMap.scss +1 -1
- package/dist/tokens/SCSSVariables.scss +1 -1
- package/dist/tokens/SCSSVariablesMapFlat.scss +1 -1
- package/dist/tokens/SassCustomProperties.scss +1 -1
- package/dist/tokens/SassSizeCustomProperties.scss +1 -1
- package/dist/tokens/darkmode/CSSCustomProperties.css +22 -0
- package/dist/tokens/darkmode/JSDataColor.js +464 -0
- package/dist/tokens/darkmode/JSObject--allDarkTokens.js +464 -0
- package/dist/tokens/darkmode/JSVariablesColor.js +20 -0
- package/dist/tokens/darkmode/SCSSVariables.scss +19 -0
- package/dist/tokens/darkmode/SCSSVariablesMapFlat.scss +25 -0
- package/dist/tokens/darkmode/SassCustomProperties.scss +22 -0
- package/package.json +1 -1
- package/src/color-darkmode/base.json +6 -126
- package/src/color-darkmode/border.json +2 -40
- package/src/color-darkmode/icon.json +2 -20
- package/src/color-darkmode/text.json +5 -10
- package/src/color-darkmode/tier.json +2 -26
- package/dist/tokens/CSSCustomProperties--darkmode.css +0 -302
- package/dist/tokens/CSSCustomPropertiesColorRGB--darkmode.css +0 -155
- package/dist/tokens/CSSCustomPropertiesColorRGB.css +0 -168
- package/dist/tokens/CSSOpacityProperties--darkmode.scss +0 -10
- package/dist/tokens/CSSOpacityProperties.scss +0 -10
- package/dist/tokens/CSSSizeCustomProperties--darkmode.css +0 -20
- package/dist/tokens/CSSVariables--darkmode.css +0 -302
- package/dist/tokens/CSSVariablesMapFlat--darkmode.css +0 -368
- package/dist/tokens/JSData--darkmodeColor.js +0 -3254
- package/dist/tokens/JSObject--allDarkTokens.js +0 -7087
- package/dist/tokens/JSObject--deprecatedDark.js +0 -675
- package/dist/tokens/JSVariables--darkmodeColor.js +0 -153
- package/dist/tokens/SCSSOpacityVariables--darkmode.scss +0 -7
- package/dist/tokens/SCSSOpacityVariables.scss +0 -7
- package/dist/tokens/SCSSVariableMap--darkmode.scss +0 -37
- package/dist/tokens/SCSSVariables--darkmode.scss +0 -299
- package/dist/tokens/SCSSVariablesMapFlat--darkmode.scss +0 -368
- package/dist/tokens/SassCustomProperties--darkmode.scss +0 -302
- package/dist/tokens/SassCustomPropertiesColorRGB--darkmode.scss +0 -155
- package/dist/tokens/SassCustomPropertiesColorRGB.scss +0 -168
- package/dist/tokens/SassSizeCustomProperties--darkmode.scss +0 -20
- package/src/color-darkmode/alert.json +0 -56
- package/src/color-darkmode/background.json +0 -38
- package/src/color-darkmode/brand.json +0 -530
- package/src/color-darkmode/ui.json +0 -57
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
# [4.1.0](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v4.0.0...v4.1.0) (2023-09-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* edit tokens for better control of output ([9a1521b](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/9a1521b68472c6ce664e555fb12c8d39565cc2c6))
|
|
9
|
+
|
|
3
10
|
# [4.0.0](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v3.15.5...v4.0.0) (2023-09-13)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -3,34 +3,38 @@
|
|
|
3
3
|
## Install
|
|
4
4
|
|
|
5
5
|
[](https://github.com/AlaskaAirlines/AuroDesignTokens/actions/workflows/testPublish.yml)
|
|
6
|
-
[](https://www.npmjs.com/package/@aurodesignsystem/design-tokens)
|
|
7
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
$ npm i @
|
|
10
|
+
$ npm i @aurodesignsystem/design-tokens
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Use pre-processed resources
|
|
14
14
|
|
|
15
|
-
Located in the `./dist/tokens` directory of the [npm](https://www.npmjs.com/package/@
|
|
15
|
+
Located in the `./dist/tokens` directory of the [npm](https://www.npmjs.com/package/@aurodesignsystem/design-tokens).
|
|
16
16
|
|
|
17
17
|
```
|
|
18
18
|
└── tokens
|
|
19
19
|
├── CSSCustomProperties.css
|
|
20
|
-
├── CSSCustomPropertiesColorRGB.css
|
|
21
|
-
├── CSSOpacityProperties.scss
|
|
22
20
|
├── CSSSizeCustomProperties.css
|
|
23
21
|
├── JSData--color.js
|
|
24
22
|
├── JSObject--allTokens.js
|
|
25
23
|
├── JSObject--deprecated.js
|
|
26
24
|
├── JSVariables--color.js
|
|
27
|
-
├── SCSSOpacityVariables.scss
|
|
28
25
|
├── SCSSVariableMap.scss
|
|
29
26
|
├── SCSSVariables.scss
|
|
30
27
|
├── SCSSVariablesMapFlat.scss
|
|
31
28
|
├── SassCustomProperties.scss
|
|
32
|
-
├──
|
|
33
|
-
└──
|
|
29
|
+
├── SassSizeCustomProperties.scss
|
|
30
|
+
└── darkmode
|
|
31
|
+
├── CSSCustomProperties.css
|
|
32
|
+
├── JSDataColor.js
|
|
33
|
+
├── JSObject--allDarkTokens.js
|
|
34
|
+
├── JSVariablesColor.js
|
|
35
|
+
├── SCSSVariables.scss
|
|
36
|
+
├── SCSSVariablesMapFlat.scss
|
|
37
|
+
└── SassCustomProperties.scss
|
|
34
38
|
```
|
|
35
39
|
|
|
36
40
|
### Resource Descriptions
|
|
@@ -38,30 +42,26 @@ Located in the `./dist/tokens` directory of the [npm](https://www.npmjs.com/pack
|
|
|
38
42
|
| file | syntax | type | status | filter type / description |
|
|
39
43
|
|---|---|---|---|---|
|
|
40
44
|
| CSSCustomProperties | CSS | custom properties | current | full list of v3.0x release tokens |
|
|
41
|
-
| CSSCustomPropertiesColorRGB | CSS | custom properties | current| Filter: color, public<br>custom RGB output
|
|
42
|
-
| CSSOpacityProperties | Sass | custom properties | current | filter: opacity |
|
|
43
45
|
| CSSSizeCustomProperties | CSS | custom properties | current | filter: size, public |
|
|
44
46
|
| JSData--color | JS module | color data | current | filter: color, current |
|
|
45
47
|
| JSObject--deprecated | JS module | deprecated tokens | current | filter: deprecated, pubic |
|
|
46
48
|
| JSObject--allTokens.js | JS module | all data | current | filter: public |
|
|
47
49
|
| JSVariables--color | js es6 | color data | current | filter: color |
|
|
48
|
-
| SCSSOpacityVariables | Sass | Sass variables | current | filter: opacity |
|
|
49
50
|
| SCSSVariableMap | Sass | Sass variable map | current | filter: size, public |
|
|
50
51
|
| SCSSVariables | scss | Sass variables | current | full list of v3.0x release tokens |
|
|
51
52
|
| SCSSVariablesMapFlat | scss | Scss variable map | current | full list of v3.0x release tokens |
|
|
52
53
|
| SassCustomProperties | scss | custom properties | current | full list of v3.0x release tokens |
|
|
53
|
-
| SassCustomPropertiesColorRGB | Sass | custom properties | current| Filter: color, public<br>custom RGB output
|
|
54
54
|
| SassSizeCustomProperties | Sass | custom properties | current | filter: size, public |
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
### Install with Sass
|
|
58
58
|
|
|
59
59
|
```scss
|
|
60
|
-
@import "~@
|
|
60
|
+
@import "~@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
|
|
61
61
|
|
|
62
62
|
// or
|
|
63
63
|
|
|
64
|
-
@import "~@
|
|
64
|
+
@import "~@aurodesignsystem/design-tokens/dist/tokens/SassCustomProperties";
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
### Install with CSS
|
|
@@ -69,29 +69,23 @@ Located in the `./dist/tokens` directory of the [npm](https://www.npmjs.com/pack
|
|
|
69
69
|
With React or similar framework, the CSS file can be imported directly from the npm:
|
|
70
70
|
|
|
71
71
|
```js
|
|
72
|
-
import "@
|
|
72
|
+
import "@aurodesignsystem/design-tokens/dist/tokens/CSSCustomProperties.css"
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
For other frameworks, it's suggested that the CSS file be copied from the npm into the scope of the project with a build scenario.
|
|
76
76
|
|
|
77
77
|
### Install ESModules
|
|
78
78
|
|
|
79
|
-
Within a
|
|
79
|
+
Within a webpack supported application or a `type="module"` script:
|
|
80
80
|
|
|
81
81
|
```js
|
|
82
|
-
import { AuroColorAlertNotificationOnLight, AuroColorBorderErrorOnLight } from '@
|
|
82
|
+
import { AuroColorAlertNotificationOnLight, AuroColorBorderErrorOnLight } from '@aurodesignsystem/design-tokens/dist/tokens/JSVariables--color.js';
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
### Install from CDN
|
|
86
86
|
|
|
87
|
-
Using
|
|
87
|
+
Using the `https://cdn.jsdelivr.net/npm/` CDN, every file in the dist directory can be accessed like so.
|
|
88
88
|
|
|
89
89
|
```html
|
|
90
|
-
<link rel="stylesheet" href="https://
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
For specifically the CSSCustomProperties.css file, a faster CDN resource is available.
|
|
94
|
-
|
|
95
|
-
```html
|
|
96
|
-
<link rel="stylesheet" href="https://p2pcontent-fd-prod.azurefd.net/auro/tokens/CSSCustomProperties.css">
|
|
90
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm//@aurodesignsystem/design-tokens@latest/dist/tokens/CSSCustomProperties.css">
|
|
97
91
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Thu, 14 Sep 2023 15:47:12 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--ds-color-base-white: #000000; /*
|
|
8
|
+
// Base value for token support; should not use in code! */
|
|
9
|
+
--ds-color-base-black: #ffffff; /*
|
|
10
|
+
// Base value for token support; should not use in code! */
|
|
11
|
+
--ds-color-border-primary-default: #9fabbb;
|
|
12
|
+
--ds-color-border-divider-default: #000000;
|
|
13
|
+
--ds-color-icon-primary-default: #9fabbb;
|
|
14
|
+
--ds-color-icon-emphasis-default: #000000;
|
|
15
|
+
--ds-color-text-primary-default: #000000;
|
|
16
|
+
--ds-color-text-secondary-default: #9fabbb;
|
|
17
|
+
--ds-color-text-link-default: #00cff0;
|
|
18
|
+
--ds-color-text-error-default: #ff999b;
|
|
19
|
+
--ds-color-text-emphasis-default: #c1daf0;
|
|
20
|
+
--ds-color-tier-alaska-mvp-default: #c5c1bf;
|
|
21
|
+
--ds-color-tier-alaska-mvpgold-default: #ccbc94;
|
|
22
|
+
}
|