@aurodesignsystem/design-tokens 5.0.1 → 5.0.2
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 +62 -86
- package/dist/{auro-classic → tokens}/CSSCustomProperties.css +312 -320
- package/dist/{auro-classic → tokens}/CSSSizeCustomProperties.css +1 -1
- package/dist/{auro-classic → tokens}/JSData--color.js +2071 -3145
- package/dist/{auro-classic → tokens}/JSONVariablesFlat.json +4 -12
- package/dist/{auro-classic → tokens}/JSONVariablesNested.json +9 -13
- package/dist/{auro-classic/JSObject--deprecated.js → tokens/JSObject--allTokens.js} +8777 -14655
- package/dist/tokens/JSObject--deprecated.js +3157 -0
- package/dist/{auro-classic → tokens}/JSVariables--color.js +312 -308
- package/dist/{auro-classic → tokens}/SCSSVariableMap.scss +1 -1
- package/dist/{auro-classic → tokens}/SCSSVariables.scss +312 -320
- package/dist/{auro-classic → tokens}/SCSSVariablesMapFlat.scss +312 -320
- package/dist/{auro-classic → tokens}/SassCustomProperties.scss +312 -320
- package/dist/{auro-classic → tokens}/SassSizeCustomProperties.scss +1 -1
- package/dist/tokens/base/SCSSVariables.scss +1372 -0
- package/dist/tokens/darkmode/CSSCustomProperties.css +28 -0
- package/dist/tokens/darkmode/JSDataColor.js +528 -0
- package/dist/tokens/darkmode/JSObject--deprecatedDark.js +528 -0
- package/dist/tokens/darkmode/JSVariablesColor.js +20 -0
- package/dist/tokens/darkmode/SCSSVariables.scss +21 -0
- package/dist/tokens/darkmode/SCSSVariablesMapFlat.scss +25 -0
- package/dist/tokens/darkmode/SassCustomProperties.scss +28 -0
- package/dist/tokens/excursion/JSONVariablesFlat.json +736 -0
- package/dist/tokens/excursion/JSONVariablesNested.json +1222 -0
- package/dist/tokens/hawaiian/CSSCustomProperties.css +20 -0
- package/dist/{transparent/CSSCustomProperties--transparent.css → tokens/transparent/CSSCustomProperties.css} +5 -1
- package/package.json +3 -5
- package/src/{themes/auro-classic/animation.json → animation.json} +3 -6
- package/src/{themes/auro-classic → asset}/font.json +5 -10
- package/src/{themes/auro-classic/color → color}/alert.json +0 -7
- package/src/{themes/auro-classic/color → color}/background.json +25 -53
- package/src/{themes/auro-classic/color → color}/base.json +147 -303
- package/src/{themes/auro-classic/color → color}/border.json +32 -68
- package/src/{themes/auro-classic/color → color}/brand.json +158 -289
- package/src/{themes/auro-classic/color → color}/container.json +50 -101
- package/src/{themes/auro-classic/color → color}/icon.json +64 -129
- package/src/{themes/auro-classic/color → color}/text.json +28 -58
- package/src/{themes/auro-classic/color → color}/tier.json +22 -43
- package/src/{themes/auro-classic/color → color}/ui.json +1 -12
- package/src/{themes/auro-classic/color → color}/utility.json +30 -60
- package/src/color-darkmode/base.json +24 -0
- package/src/color-darkmode/border.json +32 -0
- package/src/color-darkmode/icon.json +32 -0
- package/src/color-darkmode/text.json +71 -0
- package/src/color-darkmode/tier.json +34 -0
- package/src/comments.json +34 -0
- package/src/{themes/auro-classic/depth.json → depth.json} +4 -9
- package/src/{themes/auro-classic/elevation.json → elevation.json} +3 -6
- package/src/{themes/auro-classic/grid-breakpoint.json → grid-breakpoint.json} +5 -10
- package/src/{themes/auro-classic/grid-column.json → grid-column.json} +5 -10
- package/src/{themes/auro-classic/grid-gutter.json → grid-gutter.json} +5 -10
- package/src/{themes/auro-classic/grid-margin.json → grid-margin.json} +5 -10
- package/src/{themes/auro-classic/size → size}/radius.json +1 -2
- package/src/size/scale.json +240 -0
- package/src/size/unitless-scale.json +82 -0
- package/src/{themes/auro-classic/text.json → text.json} +97 -192
- package/src/themes/excursion/animation.json +21 -0
- package/src/themes/excursion/asset/font.json +35 -0
- package/src/themes/excursion/color/alert.json +90 -0
- package/src/themes/excursion/color/background.json +280 -0
- package/src/themes/excursion/color/base.json +1303 -0
- package/src/themes/excursion/color/border.json +288 -0
- package/src/themes/excursion/color/brand.json +1549 -0
- package/src/themes/excursion/color/container.json +464 -0
- package/src/themes/excursion/color/excursion.json +254 -0
- package/src/themes/excursion/color/icon.json +476 -0
- package/src/themes/excursion/color/text.json +270 -0
- package/src/themes/excursion/color/tier.json +180 -0
- package/src/themes/excursion/color/ui.json +125 -0
- package/src/themes/excursion/comments.json +34 -0
- package/src/themes/excursion/depth copy.json +22 -0
- package/src/themes/excursion/elevation.json +22 -0
- package/src/themes/excursion/grid-breakpoint.json +29 -0
- package/src/themes/excursion/grid-column.json +29 -0
- package/src/themes/excursion/grid-gutter.json +29 -0
- package/src/themes/excursion/grid-margin.json +29 -0
- package/src/themes/excursion/size/radius.json +9 -0
- package/src/themes/excursion/size/scale.json +234 -0
- package/src/themes/excursion/size/unitless-scale.json +82 -0
- package/src/themes/excursion/text.json +572 -0
- package/src/themes/hawaiian/color/background.json +15 -0
- package/src/themes/hawaiian/color/border.json +18 -0
- package/src/themes/hawaiian/color/container.json +56 -0
- package/src/themes/hawaiian/color/icon.json +24 -0
- package/src/themes/hawaiian/color/text.json +44 -0
- package/src/themes/transparent/color/alert.json +0 -7
- package/src/themes/transparent/color/background.json +2 -30
- package/src/themes/transparent/color/base.json +0 -156
- package/src/themes/transparent/color/border.json +0 -36
- package/src/themes/transparent/color/brand.json +36 -167
- package/src/themes/transparent/color/container.json +0 -50
- package/src/themes/transparent/color/icon.json +0 -65
- package/src/themes/transparent/color/text.json +0 -30
- package/src/themes/transparent/color/tier.json +1 -22
- package/src/themes/transparent/color/ui.json +1 -12
- package/src/themes/transparent/color/utility.json +0 -30
- package/src/themes/transparent/elevation.json +0 -3
- package/dist/alaska/CSSCustomProperties--alaska.css +0 -66
- package/dist/alaska/SCSSVariables--alaska.scss +0 -63
- package/dist/alaska/SCSSVariablesMapFlat--alaska.scss +0 -67
- package/dist/alaska/primitives--alaska.scss +0 -215
- package/dist/hawaiian/CSSCustomProperties--hawaiian.css +0 -66
- package/dist/hawaiian/SCSSVariables--hawaiian.scss +0 -63
- package/dist/hawaiian/SCSSVariablesMapFlat--hawaiian.scss +0 -67
- package/dist/hawaiian/primitives--hawaiian.scss +0 -175
- package/src/primitives/alaska/color.json +0 -796
- package/src/primitives/alaska/typography.json +0 -27
- package/src/primitives/base/color.json +0 -489
- package/src/primitives/base/transparency.json +0 -183
- package/src/primitives/base/typography.json +0 -210
- package/src/primitives/hawaiian/color.json +0 -508
- package/src/primitives/hawaiian/typography.json +0 -28
- package/src/themes/alaska/color.json +0 -394
- package/src/themes/alaska/typography.json +0 -132
- package/src/themes/auro-classic/comments.json +0 -50
- package/src/themes/auro-classic/size/scale.json +0 -347
- package/src/themes/auro-classic/size/unitless-scale.json +0 -126
- package/src/themes/hawaiian/color.json +0 -394
- package/src/themes/hawaiian/typography.json +0 -132
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
## [5.0.2](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v5.0.1...v5.0.2) (2025-02-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Performance Improvements
|
|
7
|
+
|
|
8
|
+
* revert to version 4.13.0 and change node version to 20 ([f5c4f5a](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/f5c4f5acad9a88128c093495eca0d4e36108cd84))
|
|
9
|
+
|
|
3
10
|
## [5.0.1](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v5.0.0...v5.0.1) (2025-02-26)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -12,95 +12,69 @@ $ npm i @aurodesignsystem/design-tokens
|
|
|
12
12
|
|
|
13
13
|
## Using Pre-processed Resources
|
|
14
14
|
|
|
15
|
-
Pre-processed resources are available in the `./dist
|
|
15
|
+
Pre-processed resources are available in the `./dist/tokens` directory of the [npm package](https://www.npmjs.com/package/@aurodesignsystem/design-tokens).
|
|
16
16
|
|
|
17
17
|
```
|
|
18
|
-
└──
|
|
19
|
-
├──
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
├──
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
├──
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
├──
|
|
39
|
-
|
|
40
|
-
└──
|
|
18
|
+
└── tokens
|
|
19
|
+
├── CSSCustomProperties.css
|
|
20
|
+
├── CSSSizeCustomProperties.css
|
|
21
|
+
├── JSData--color.js
|
|
22
|
+
├── JSONVariablesFlat.json
|
|
23
|
+
├── JSONVariablesNested.json
|
|
24
|
+
├── JSObject--allTokens.js
|
|
25
|
+
├── JSObject--deprecated.js
|
|
26
|
+
├── JSVariables--color.js
|
|
27
|
+
├── SCSSVariableMap.scss
|
|
28
|
+
├── SCSSVariables.scss
|
|
29
|
+
├── SCSSVariablesMapFlat.scss
|
|
30
|
+
├── SassCustomProperties.scss
|
|
31
|
+
├── SassSizeCustomProperties.scss
|
|
32
|
+
├── darkmode
|
|
33
|
+
| ├── CSSCustomProperties.css
|
|
34
|
+
| ├── JSDataColor.js
|
|
35
|
+
| ├── JSObject--deprecatedDark.js
|
|
36
|
+
| ├── JSVariablesColor.js
|
|
37
|
+
| ├── SCSSVariables.scss
|
|
38
|
+
| ├── SCSSVariablesMapFlat.scss
|
|
39
|
+
| └── SassCustomProperties.scss
|
|
40
|
+
└── excursion (BETA)
|
|
41
|
+
├── JSONVariablesFlat.json
|
|
42
|
+
└── JSONVariablesNested.json
|
|
41
43
|
```
|
|
42
44
|
|
|
43
|
-
###
|
|
44
|
-
|
|
45
|
-
### `alaska` theme
|
|
46
|
-
|
|
47
|
-
| File | Syntax | Type | Status | Filter Type / Description |
|
|
48
|
-
|-----------------------------|--------|--------------------|---------|------------------------------------------------------|
|
|
49
|
-
| CSSCustomProperties--alaska | CSS | Custom properties | Current | All v5.x semantic tokens for the Alaska theme |
|
|
50
|
-
| primitives--alaska | SCSS | Sass variables | Current | All v5.x semantic token values for the Alaska theme |
|
|
51
|
-
|
|
52
|
-
### `hawaiian` theme
|
|
53
|
-
|
|
54
|
-
| File | Syntax | Type | Status | Filter Type / Description |
|
|
55
|
-
|-------------------------------|--------|--------------------|---------|--------------------------------------------------------|
|
|
56
|
-
| CSSCustomProperties--hawaiian | CSS | Custom properties | Current | All v5.x release tokens for the Hawaiian theme |
|
|
57
|
-
| primitives--hawaiian | SCSS | Sass variables | Current | All v5.x semantic token values for the Hawaiian theme |
|
|
58
|
-
|
|
59
|
-
### `auro-classic` theme
|
|
60
|
-
|
|
61
|
-
| File | Syntax | Type | Status | Filter Type / Description |
|
|
62
|
-
|--------------------------|-----------|--------------------|------------|---------------------------------|
|
|
63
|
-
| CSSCustomProperties | CSS | Custom properties | Deprecated | All v4.x release tokens |
|
|
64
|
-
| CSSSizeCustomProperties | CSS | Custom properties | Deprecated | Filter v4.x: size, public |
|
|
65
|
-
| JSData--color | JS module | Color data | Deprecated | Filter v4.x: color, Deprecated |
|
|
66
|
-
| JSONVariablesFlat | JSON Data | All data | Deprecated | All v4.x release tokens |
|
|
67
|
-
| JSONVariablesNested | JSON Data | All data | Deprecated | All v4.x release tokens |
|
|
68
|
-
| JSObject--deprecated | JS module | Deprecated tokens | Deprecated | Filter v4.x: deprecated, public |
|
|
69
|
-
| JSObject--allTokens.js | JS module | All data | Deprecated | All v4.x release tokens |
|
|
70
|
-
| JSVariables--color | JS ES6 | Color data | Deprecated | Filter v4.x: color |
|
|
71
|
-
| SCSSVariableMap | Sass | Sass variable map | Deprecated | Filter v4.x: size, public |
|
|
72
|
-
| SCSSVariables | SCSS | Sass variables | Deprecated | All v4.x release tokens |
|
|
73
|
-
| SCSSVariablesMapFlat | SCSS | Sass variable map | Deprecated | All v4.x release tokens |
|
|
74
|
-
| SassCustomProperties | SCSS | Custom properties | Deprecated | All v4.x release tokens |
|
|
75
|
-
| SassSizeCustomProperties | Sass | Custom properties | Deprecated | Filter v4.x: size, public |
|
|
76
|
-
|
|
77
|
-
### `transparent` theme
|
|
45
|
+
### BETA Excursion release
|
|
78
46
|
|
|
79
|
-
|
|
80
|
-
|-------------------------------------|-----------|--------------------|------------|---------------------------|
|
|
81
|
-
| CSSCustomProperties--transparent | CSS | Custom properties | Deprecated | All v4.0x release tokens |
|
|
47
|
+
Auro Design Tokens v4.5.x includes some changes to existing token values as well as the inclusion of the new Excursion theme. This new theme is to be considered a BETA release with limited use. For all primary Auro UIs, please continue to use the primary Auro design tokens. Excursion is only intended for UIs that are being custom built to support this new UI with limited release. Expect significant changes in this space WITHOUT a MAJOR release. **You have been warned**.
|
|
82
48
|
|
|
83
|
-
###
|
|
49
|
+
### Resource Descriptions
|
|
84
50
|
|
|
85
|
-
| File
|
|
86
|
-
|
|
87
|
-
| CSSCustomProperties
|
|
51
|
+
| File | Syntax | Type | Status | Filter Type / Description |
|
|
52
|
+
|------------------------|-----------|--------------------|---------|-----------------------------|
|
|
53
|
+
| CSSCustomProperties | CSS | Custom properties | Current | All v4.0x release tokens |
|
|
54
|
+
| CSSSizeCustomProperties| CSS | Custom properties | Current | Filter: size, public |
|
|
55
|
+
| JSData--color | JS module | Color data | Current | Filter: color, current |
|
|
56
|
+
| JSONVariablesFlat | JSON Data | All data | Current | All v4.0x release tokens |
|
|
57
|
+
| JSONVariablesNested | JSON Data | All data | Current | All v4.0x release tokens |
|
|
58
|
+
| JSObject--deprecated | JS module | Deprecated tokens | Current | Filter: deprecated, public |
|
|
59
|
+
| JSObject--allTokens.js | JS module | All data | Current | All v4.0x release tokens |
|
|
60
|
+
| JSVariables--color | JS ES6 | Color data | Current | Filter: color |
|
|
61
|
+
| SCSSVariableMap | Sass | Sass variable map | Current | Filter: size, public |
|
|
62
|
+
| SCSSVariables | SCSS | Sass variables | Current | All v4.0x release tokens |
|
|
63
|
+
| SCSSVariablesMapFlat | SCSS | Sass variable map | Current | All v4.0x release tokens |
|
|
64
|
+
| SassCustomProperties | SCSS | Custom properties | Current | All v4.0x release tokens |
|
|
65
|
+
| SassSizeCustomProperties| Sass | Custom properties | Current | Filter: size, public |
|
|
88
66
|
|
|
89
|
-
|
|
67
|
+
### Migration from 3.x to 4.x
|
|
90
68
|
|
|
91
|
-
|
|
69
|
+
With the release of Auro Design Tokens 4.x, a new variable namespace was introduced. The project has replaced `--auro` with `--ds` to support upcoming theming capabilities.
|
|
92
70
|
|
|
93
|
-
|
|
71
|
+
Since not all Auro web components are using the new tokens, simply replacing the 3.x version with the 4.x version will break your UI.
|
|
94
72
|
|
|
95
|
-
|
|
73
|
+
To ensure a smooth transition between the two sets of design tokens, we highly recommend the following approach:
|
|
96
74
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
- **NEW** Hawaiian theme found in `./dist/hawaiian`.
|
|
101
|
-
- The Alaska theme and Hawaiian theme are intended to be used one at a time within a given DOM `scope`. It is not supported to load both themes into the same `scope` of the document.
|
|
102
|
-
- v4.x and v5.x token names are unique to each version. As such, the `./dist/auro-classic` theme can be loaded with any of the other themes to support old Auro component versions that do not yet run on the v5.x tokens.
|
|
103
|
-
- Review the [Deprecated tokens list](https://auro.alaskaair.com/getting-started/developers/design-tokens/deprecated) for a matrix of changes. Some tokens have been removed from the project and need to be updated.
|
|
75
|
+
1. Install the new `@aurodesignsystem/design-tokens@4.x` in your app, but DO NOT uninstall `@alaskaairux/design-tokens@3.15.5`.
|
|
76
|
+
2. Update to use the new `@aurodesignsystem/webcorestylesheets`, which fully supports the new token naming spec.
|
|
77
|
+
3. Review the [Deprecated tokens list](https://auro.alaskaair.com/getting-started/developers/design-tokens/deprecated) for a matrix of changes. Some tokens have been removed from the project and need to be updated.
|
|
104
78
|
|
|
105
79
|
By supporting both the legacy and new Auro design tokens in your project, you ensure a smooth transition until all Auro components have been updated and your project has also updated local SCSS/CSS files with the new references.
|
|
106
80
|
|
|
@@ -108,10 +82,16 @@ By supporting both the legacy and new Auro design tokens in your project, you en
|
|
|
108
82
|
|
|
109
83
|
When working with Sass, the preprocessor scripting language, there are several options for incorporating design tokens into your project. First, ensure that all design tokens are included to fulfill CSS custom property requests. This can be achieved by importing the SCSS file as demonstrated below:
|
|
110
84
|
|
|
111
|
-
|
|
85
|
+
```scss
|
|
86
|
+
@import "~@aurodesignsystem/design-tokens/dist/tokens/SassCustomProperties.scss";
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Even if Sass isn't utilized, `SassCustomProperties.scss` remains an option, though not mandatory. Alternatively, you can load all tokens using `CSSCustomProperties.css` anywhere within the project's header.
|
|
90
|
+
|
|
91
|
+
Moreover, if project specifications dictate the use of Sass variables, `SCSSVariables.scss` can be imported. This is necessary for projects utilizing WCSS due to a dependency on these variables.
|
|
112
92
|
|
|
113
93
|
```scss
|
|
114
|
-
@import "~@aurodesignsystem/design-tokens/dist/
|
|
94
|
+
@import "~@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables.scss";
|
|
115
95
|
```
|
|
116
96
|
|
|
117
97
|
**NOTE:** When developing new UI code in Sass, it's still advisable to leverage CSS custom properties over Sass variables. See **Install with CSS** below.
|
|
@@ -120,22 +100,18 @@ _note: this example is based on using the Alaska theme, substitute the directory
|
|
|
120
100
|
|
|
121
101
|
For React or similar frameworks, simply import the CSS file directly from npm:
|
|
122
102
|
|
|
123
|
-
_note: this example is based on using the Alaska theme, substitute the directory path for the theme you wish to use._
|
|
124
|
-
|
|
125
103
|
```js
|
|
126
|
-
import "@aurodesignsystem/design-tokens/dist/
|
|
104
|
+
import "@aurodesignsystem/design-tokens/dist/tokens/CSSCustomProperties.css"
|
|
127
105
|
```
|
|
128
106
|
|
|
129
107
|
For other frameworks, you'll need to copy the CSS file from the npm resource into your project using a build scenario.
|
|
130
108
|
|
|
131
109
|
### Install ESModules
|
|
132
110
|
|
|
133
|
-
_Note: ESModules are not yet available for the v5.x tokens._
|
|
134
|
-
|
|
135
111
|
In a webpack-supported application or a `type="module"` script:
|
|
136
112
|
|
|
137
113
|
```js
|
|
138
|
-
import { AuroColorAlertNotificationOnLight, AuroColorBorderErrorOnLight } from '@aurodesignsystem/design-tokens/dist/
|
|
114
|
+
import { AuroColorAlertNotificationOnLight, AuroColorBorderErrorOnLight } from '@aurodesignsystem/design-tokens/dist/tokens/JSVariables--color.js';
|
|
139
115
|
```
|
|
140
116
|
|
|
141
117
|
### Install from CDN
|
|
@@ -143,7 +119,7 @@ import { AuroColorAlertNotificationOnLight, AuroColorBorderErrorOnLight } from '
|
|
|
143
119
|
Using the `https://cdn.jsdelivr.net/npm/` CDN, every file in the dist directory can be accessed like so:
|
|
144
120
|
|
|
145
121
|
```html
|
|
146
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm//@aurodesignsystem/design-tokens@latest/dist/
|
|
122
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm//@aurodesignsystem/design-tokens@latest/dist/tokens/CSSCustomProperties.css">
|
|
147
123
|
```
|
|
148
124
|
|
|
149
125
|
**Note:** Exercise caution when using this CDN solution. The Auro team is NOT responsible for the maintenance of the CDN `https://cdn.jsdelivr.net/` [uptime](https://www.isitupdown.com/jsdelivr) and are unable to effectively troubleshoot response issues. It is recommended to use the installed version of Auro Design Tokens for critical UIs. Any additional CDN solution must be maintained by the team using this solution per this [Discussion](https://github.com/orgs/AlaskaAirlines/discussions/513).
|