@aurodesignsystem/design-tokens 4.3.1 → 4.5.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +54 -41
  3. package/dist/tokens/CSSCustomProperties.css +1542 -64
  4. package/dist/tokens/CSSSizeCustomProperties.css +2 -1
  5. package/dist/tokens/JSData--color.js +16599 -2192
  6. package/dist/tokens/JSONVariablesFlat.json +711 -0
  7. package/dist/tokens/JSONVariablesNested.json +1207 -0
  8. package/dist/tokens/JSObject--allTokens.js +13782 -2488
  9. package/dist/tokens/JSObject--deprecated.js +2294 -1925
  10. package/dist/tokens/JSVariables--color.js +736 -39
  11. package/dist/tokens/SCSSVariableMap.scss +3 -1
  12. package/dist/tokens/SCSSVariables.scss +1004 -46
  13. package/dist/tokens/SCSSVariablesMapFlat.scss +1008 -47
  14. package/dist/tokens/SassCustomProperties.scss +1542 -64
  15. package/dist/tokens/SassSizeCustomProperties.scss +2 -1
  16. package/dist/tokens/darkmode/CSSCustomProperties.css +4 -4
  17. package/dist/tokens/darkmode/JSDataColor.js +107 -43
  18. package/dist/tokens/darkmode/{JSObject--allDarkTokens.js → JSObject--deprecatedDark.js} +120 -56
  19. package/dist/tokens/darkmode/JSVariablesColor.js +4 -4
  20. package/dist/tokens/darkmode/SCSSVariables.scss +4 -4
  21. package/dist/tokens/darkmode/SCSSVariablesMapFlat.scss +4 -4
  22. package/dist/tokens/darkmode/SassCustomProperties.scss +4 -4
  23. package/dist/tokens/excursion/JSONVariablesFlat.json +67 -0
  24. package/dist/tokens/excursion/JSONVariablesNested.json +105 -0
  25. package/package.json +13 -12
  26. package/src/color/alert.json +18 -103
  27. package/src/color/background.json +213 -10
  28. package/src/color/base.json +1219 -70
  29. package/src/color/border.json +253 -133
  30. package/src/color/brand.json +1204 -185
  31. package/src/color/container.json +464 -0
  32. package/src/color/icon.json +449 -91
  33. package/src/color/text.json +200 -145
  34. package/src/color/tier.json +118 -52
  35. package/src/color/ui.json +29 -115
  36. package/src/color-darkmode/base.json +6 -2
  37. package/src/color-darkmode/border.json +6 -2
  38. package/src/color-darkmode/icon.json +6 -2
  39. package/src/color-darkmode/text.json +15 -5
  40. package/src/color-darkmode/tier.json +6 -2
  41. package/src/depth.json +0 -7
  42. package/src/size/radius.json +1 -1
  43. package/src/size/scale.json +6 -80
  44. package/src/themes/excursion/color/background.json +73 -0
  45. package/src/themes/excursion/color/base.json +234 -0
  46. package/src/themes/excursion/color/brand.json +254 -0
  47. package/src/breakpoint.json +0 -28
  48. package/src/shadow.json +0 -13
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ # [4.5.0](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v4.4.0...v4.5.0) (2024-05-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * add excursion theme [#151](https://github.com/AlaskaAirlines/AuroDesignTokens/issues/151) ([1f33445](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/1f334454c520871a7130f9f4a086b777e2ad2010))
9
+ * add new and depcrecate old tier 2 color tokens ([e3b946c](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/e3b946cda3a96842d23e4cd141284435f0d28960))
10
+ * add new and deprecate old tier 1 color tokens ([4a40ba2](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/4a40ba25a911ae5fcc869d81921045e76f2dcb78))
11
+
12
+
13
+ ### Performance Improvements
14
+
15
+ * remove previously deprecated tokens ([1bc164b](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/1bc164bc7b111f8defd6155edbd199711ca53ae5))
16
+
17
+ # [4.4.0](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v4.3.1...v4.4.0) (2024-05-09)
18
+
19
+
20
+ ### Features
21
+
22
+ * add support for JSON flat and nested [#144](https://github.com/AlaskaAirlines/AuroDesignTokens/issues/144) ([af7a657](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/af7a657f49aa247172d7f862fbc175992049d7a4))
23
+
24
+
25
+ ### Performance Improvements
26
+
27
+ * convert hard value to token [#124](https://github.com/AlaskaAirlines/AuroDesignTokens/issues/124) ([f54d4f4](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/f54d4f485b15893bb454bc32fb3f7f789dca8b7e))
28
+
3
29
  ## [4.3.1](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v4.3.0...v4.3.1) (2024-01-29)
4
30
 
5
31
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Auro Design Tokens
2
2
 
3
- ## Install
3
+ ## Installation
4
4
 
5
5
  [![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/AuroDesignTokens/testPublish.yml?branch=master&style=for-the-badge)](https://github.com/AlaskaAirlines/AuroDesignTokens/actions/workflows/testPublish.yml)
6
6
  [![See it on NPM!](https://img.shields.io/npm/v/@aurodesignsystem/design-tokens.svg?style=for-the-badge&color=orange)](https://www.npmjs.com/package/@aurodesignsystem/design-tokens)
@@ -10,15 +10,17 @@
10
10
  $ npm i @aurodesignsystem/design-tokens
11
11
  ```
12
12
 
13
- ## Use pre-processed resources
13
+ ## Using Pre-processed Resources
14
14
 
15
- Located in the `./dist/tokens` directory of the [npm](https://www.npmjs.com/package/@aurodesignsystem/design-tokens).
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
18
  └── tokens
19
19
  ├── CSSCustomProperties.css
20
20
  ├── CSSSizeCustomProperties.css
21
21
  ├── JSData--color.js
22
+ ├── JSONVariablesFlat.json
23
+ ├── JSONVariablesNested.json
22
24
  ├── JSObject--allTokens.js
23
25
  ├── JSObject--deprecated.js
24
26
  ├── JSVariables--color.js
@@ -27,71 +29,82 @@ Located in the `./dist/tokens` directory of the [npm](https://www.npmjs.com/pack
27
29
  ├── SCSSVariablesMapFlat.scss
28
30
  ├── SassCustomProperties.scss
29
31
  ├── 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
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
41
+ ├── JSONVariablesFlat.json
42
+ └── JSONVariablesNested.json
38
43
  ```
39
44
 
40
45
  ### Resource Descriptions
41
46
 
42
- | file | syntax | type | status | filter type / description |
43
- |---|---|---|---|---|
44
- | CSSCustomProperties | CSS | custom properties | current | full list of v3.0x release tokens |
45
- | CSSSizeCustomProperties | CSS | custom properties | current | filter: size, public |
46
- | JSData--color | JS module | color data | current | filter: color, current |
47
- | JSObject--deprecated | JS module | deprecated tokens | current | filter: deprecated, pubic |
48
- | JSObject--allTokens.js | JS module | all data | current | filter: public |
49
- | JSVariables--color | js es6 | color data | current | filter: color |
50
- | SCSSVariableMap | Sass | Sass variable map | current | filter: size, public |
51
- | SCSSVariables | scss | Sass variables | current | full list of v3.0x release tokens |
52
- | SCSSVariablesMapFlat | scss | Scss variable map | current | full list of v3.0x release tokens |
53
- | SassCustomProperties | scss | custom properties | current | full list of v3.0x release tokens |
54
- | SassSizeCustomProperties | Sass | custom properties | current | filter: size, public |
55
-
47
+ | File | Syntax | Type | Status | Filter Type / Description |
48
+ |------------------------|-----------|--------------------|---------|-----------------------------|
49
+ | CSSCustomProperties | CSS | Custom properties | Current | All v4.0x release tokens |
50
+ | CSSSizeCustomProperties| CSS | Custom properties | Current | Filter: size, public |
51
+ | JSData--color | JS module | Color data | Current | Filter: color, current |
52
+ | JSONVariablesFlat | JSON Data | All data | Current | All v4.0x release tokens |
53
+ | JSONVariablesNested | JSON Data | All data | Current | All v4.0x release tokens |
54
+ | JSObject--deprecated | JS module | Deprecated tokens | Current | Filter: deprecated, public |
55
+ | JSObject--allTokens.js | JS module | All data | Current | All v4.0x release tokens |
56
+ | JSVariables--color | JS ES6 | Color data | Current | Filter: color |
57
+ | SCSSVariableMap | Sass | Sass variable map | Current | Filter: size, public |
58
+ | SCSSVariables | SCSS | Sass variables | Current | All v4.0x release tokens |
59
+ | SCSSVariablesMapFlat | SCSS | Sass variable map | Current | All v4.0x release tokens |
60
+ | SassCustomProperties | SCSS | Custom properties | Current | All v4.0x release tokens |
61
+ | SassSizeCustomProperties| Sass | Custom properties | Current | Filter: size, public |
56
62
 
57
63
  ### Migration from 3.x to 4.x
58
64
 
59
- With the release of Auro Design Tokens 4.x a new variable namespace was introduced. The project has removed `--auro` and replaced with `--ds`. This was done to support upcoming theming capabilities.
60
-
61
- Since not all Auro web components are using the new tokens, simply removing the 3.x version and replacing with the 4.x version will break your UI.
65
+ 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.
62
66
 
63
- To allow for a seamless transition between the two sets of design tokens, we highly recommend the following install supoprt.
67
+ 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.
64
68
 
65
- 1. In your app, please install the new `@aurodesignsystem/design-tokens@4.x`, but DO NOT uninstall `@alaskaairux/design-tokens@3.15.5`.
66
- 1. Update to use the new `@aurodesignsystem/webcorestylesheets` which fully supports the new token naming spec.
67
- 1. Please review the [Deprecated tokens list](https://auro.alaskaair.com/getting-started/developers/design-tokens/deprecated) for a matrix of changes. Understand that some tokens have been removed from the project and need to be updated.
69
+ To ensure a smooth transition between the two sets of design tokens, we highly recommend the following approach:
68
70
 
69
- By allowing your project to support both the legacy and new Auro design tokens, this will 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.
71
+ 1. Install the new `@aurodesignsystem/design-tokens@4.x` in your app, but DO NOT uninstall `@alaskaairux/design-tokens@3.15.5`.
72
+ 2. Update to use the new `@aurodesignsystem/webcorestylesheets`, which fully supports the new token naming spec.
73
+ 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.
70
74
 
75
+ 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.
71
76
 
72
77
  ### Install with Sass
73
78
 
79
+ 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:
80
+
74
81
  ```scss
75
- @import "~@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
82
+ @import "~@aurodesignsystem/design-tokens/dist/tokens/SassCustomProperties.scss";
83
+ ```
76
84
 
77
- // or
85
+ 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.
78
86
 
79
- @import "~@aurodesignsystem/design-tokens/dist/tokens/SassCustomProperties";
87
+ 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.
88
+
89
+ ```scss
90
+ @import "~@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables.scss";
80
91
  ```
81
92
 
93
+ **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.
94
+
82
95
  ### Install with CSS
83
96
 
84
- With React or similar framework, the CSS file can be imported directly from the npm:
97
+ For React or similar frameworks, simply import the CSS file directly from npm:
85
98
 
86
99
  ```js
87
100
  import "@aurodesignsystem/design-tokens/dist/tokens/CSSCustomProperties.css"
88
101
  ```
89
102
 
90
- 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.
103
+ For other frameworks, you'll need to copy the CSS file from the npm resource into your project using a build scenario.
91
104
 
92
105
  ### Install ESModules
93
106
 
94
- Within a webpack supported application or a `type="module"` script:
107
+ In a webpack-supported application or a `type="module"` script:
95
108
 
96
109
  ```js
97
110
  import { AuroColorAlertNotificationOnLight, AuroColorBorderErrorOnLight } from '@aurodesignsystem/design-tokens/dist/tokens/JSVariables--color.js';
@@ -99,10 +112,10 @@ import { AuroColorAlertNotificationOnLight, AuroColorBorderErrorOnLight } from '
99
112
 
100
113
  ### Install from CDN
101
114
 
102
- Using the `https://cdn.jsdelivr.net/npm/` CDN, every file in the dist directory can be accessed like so.
115
+ Using the `https://cdn.jsdelivr.net/npm/` CDN, every file in the dist directory can be accessed like so:
103
116
 
104
117
  ```html
105
118
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm//@aurodesignsystem/design-tokens@latest/dist/tokens/CSSCustomProperties.css">
106
119
  ```
107
120
 
108
- **NOTE:** Please use caution when using the CDN solution. We are not responsible for the CDN `https://cdn.jsdelivr.net/` [uptime](https://www.isitupdown.com/jsdelivr) and are unable to effectively troubleshoot when there are response issues. It is recommended to use the installed version of Auro Design Tokens when using them in critical UIs.
121
+ **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).