@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.
Files changed (120) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +62 -86
  3. package/dist/{auro-classic → tokens}/CSSCustomProperties.css +312 -320
  4. package/dist/{auro-classic → tokens}/CSSSizeCustomProperties.css +1 -1
  5. package/dist/{auro-classic → tokens}/JSData--color.js +2071 -3145
  6. package/dist/{auro-classic → tokens}/JSONVariablesFlat.json +4 -12
  7. package/dist/{auro-classic → tokens}/JSONVariablesNested.json +9 -13
  8. package/dist/{auro-classic/JSObject--deprecated.js → tokens/JSObject--allTokens.js} +8777 -14655
  9. package/dist/tokens/JSObject--deprecated.js +3157 -0
  10. package/dist/{auro-classic → tokens}/JSVariables--color.js +312 -308
  11. package/dist/{auro-classic → tokens}/SCSSVariableMap.scss +1 -1
  12. package/dist/{auro-classic → tokens}/SCSSVariables.scss +312 -320
  13. package/dist/{auro-classic → tokens}/SCSSVariablesMapFlat.scss +312 -320
  14. package/dist/{auro-classic → tokens}/SassCustomProperties.scss +312 -320
  15. package/dist/{auro-classic → tokens}/SassSizeCustomProperties.scss +1 -1
  16. package/dist/tokens/base/SCSSVariables.scss +1372 -0
  17. package/dist/tokens/darkmode/CSSCustomProperties.css +28 -0
  18. package/dist/tokens/darkmode/JSDataColor.js +528 -0
  19. package/dist/tokens/darkmode/JSObject--deprecatedDark.js +528 -0
  20. package/dist/tokens/darkmode/JSVariablesColor.js +20 -0
  21. package/dist/tokens/darkmode/SCSSVariables.scss +21 -0
  22. package/dist/tokens/darkmode/SCSSVariablesMapFlat.scss +25 -0
  23. package/dist/tokens/darkmode/SassCustomProperties.scss +28 -0
  24. package/dist/tokens/excursion/JSONVariablesFlat.json +736 -0
  25. package/dist/tokens/excursion/JSONVariablesNested.json +1222 -0
  26. package/dist/tokens/hawaiian/CSSCustomProperties.css +20 -0
  27. package/dist/{transparent/CSSCustomProperties--transparent.css → tokens/transparent/CSSCustomProperties.css} +5 -1
  28. package/package.json +3 -5
  29. package/src/{themes/auro-classic/animation.json → animation.json} +3 -6
  30. package/src/{themes/auro-classic → asset}/font.json +5 -10
  31. package/src/{themes/auro-classic/color → color}/alert.json +0 -7
  32. package/src/{themes/auro-classic/color → color}/background.json +25 -53
  33. package/src/{themes/auro-classic/color → color}/base.json +147 -303
  34. package/src/{themes/auro-classic/color → color}/border.json +32 -68
  35. package/src/{themes/auro-classic/color → color}/brand.json +158 -289
  36. package/src/{themes/auro-classic/color → color}/container.json +50 -101
  37. package/src/{themes/auro-classic/color → color}/icon.json +64 -129
  38. package/src/{themes/auro-classic/color → color}/text.json +28 -58
  39. package/src/{themes/auro-classic/color → color}/tier.json +22 -43
  40. package/src/{themes/auro-classic/color → color}/ui.json +1 -12
  41. package/src/{themes/auro-classic/color → color}/utility.json +30 -60
  42. package/src/color-darkmode/base.json +24 -0
  43. package/src/color-darkmode/border.json +32 -0
  44. package/src/color-darkmode/icon.json +32 -0
  45. package/src/color-darkmode/text.json +71 -0
  46. package/src/color-darkmode/tier.json +34 -0
  47. package/src/comments.json +34 -0
  48. package/src/{themes/auro-classic/depth.json → depth.json} +4 -9
  49. package/src/{themes/auro-classic/elevation.json → elevation.json} +3 -6
  50. package/src/{themes/auro-classic/grid-breakpoint.json → grid-breakpoint.json} +5 -10
  51. package/src/{themes/auro-classic/grid-column.json → grid-column.json} +5 -10
  52. package/src/{themes/auro-classic/grid-gutter.json → grid-gutter.json} +5 -10
  53. package/src/{themes/auro-classic/grid-margin.json → grid-margin.json} +5 -10
  54. package/src/{themes/auro-classic/size → size}/radius.json +1 -2
  55. package/src/size/scale.json +240 -0
  56. package/src/size/unitless-scale.json +82 -0
  57. package/src/{themes/auro-classic/text.json → text.json} +97 -192
  58. package/src/themes/excursion/animation.json +21 -0
  59. package/src/themes/excursion/asset/font.json +35 -0
  60. package/src/themes/excursion/color/alert.json +90 -0
  61. package/src/themes/excursion/color/background.json +280 -0
  62. package/src/themes/excursion/color/base.json +1303 -0
  63. package/src/themes/excursion/color/border.json +288 -0
  64. package/src/themes/excursion/color/brand.json +1549 -0
  65. package/src/themes/excursion/color/container.json +464 -0
  66. package/src/themes/excursion/color/excursion.json +254 -0
  67. package/src/themes/excursion/color/icon.json +476 -0
  68. package/src/themes/excursion/color/text.json +270 -0
  69. package/src/themes/excursion/color/tier.json +180 -0
  70. package/src/themes/excursion/color/ui.json +125 -0
  71. package/src/themes/excursion/comments.json +34 -0
  72. package/src/themes/excursion/depth copy.json +22 -0
  73. package/src/themes/excursion/elevation.json +22 -0
  74. package/src/themes/excursion/grid-breakpoint.json +29 -0
  75. package/src/themes/excursion/grid-column.json +29 -0
  76. package/src/themes/excursion/grid-gutter.json +29 -0
  77. package/src/themes/excursion/grid-margin.json +29 -0
  78. package/src/themes/excursion/size/radius.json +9 -0
  79. package/src/themes/excursion/size/scale.json +234 -0
  80. package/src/themes/excursion/size/unitless-scale.json +82 -0
  81. package/src/themes/excursion/text.json +572 -0
  82. package/src/themes/hawaiian/color/background.json +15 -0
  83. package/src/themes/hawaiian/color/border.json +18 -0
  84. package/src/themes/hawaiian/color/container.json +56 -0
  85. package/src/themes/hawaiian/color/icon.json +24 -0
  86. package/src/themes/hawaiian/color/text.json +44 -0
  87. package/src/themes/transparent/color/alert.json +0 -7
  88. package/src/themes/transparent/color/background.json +2 -30
  89. package/src/themes/transparent/color/base.json +0 -156
  90. package/src/themes/transparent/color/border.json +0 -36
  91. package/src/themes/transparent/color/brand.json +36 -167
  92. package/src/themes/transparent/color/container.json +0 -50
  93. package/src/themes/transparent/color/icon.json +0 -65
  94. package/src/themes/transparent/color/text.json +0 -30
  95. package/src/themes/transparent/color/tier.json +1 -22
  96. package/src/themes/transparent/color/ui.json +1 -12
  97. package/src/themes/transparent/color/utility.json +0 -30
  98. package/src/themes/transparent/elevation.json +0 -3
  99. package/dist/alaska/CSSCustomProperties--alaska.css +0 -66
  100. package/dist/alaska/SCSSVariables--alaska.scss +0 -63
  101. package/dist/alaska/SCSSVariablesMapFlat--alaska.scss +0 -67
  102. package/dist/alaska/primitives--alaska.scss +0 -215
  103. package/dist/hawaiian/CSSCustomProperties--hawaiian.css +0 -66
  104. package/dist/hawaiian/SCSSVariables--hawaiian.scss +0 -63
  105. package/dist/hawaiian/SCSSVariablesMapFlat--hawaiian.scss +0 -67
  106. package/dist/hawaiian/primitives--hawaiian.scss +0 -175
  107. package/src/primitives/alaska/color.json +0 -796
  108. package/src/primitives/alaska/typography.json +0 -27
  109. package/src/primitives/base/color.json +0 -489
  110. package/src/primitives/base/transparency.json +0 -183
  111. package/src/primitives/base/typography.json +0 -210
  112. package/src/primitives/hawaiian/color.json +0 -508
  113. package/src/primitives/hawaiian/typography.json +0 -28
  114. package/src/themes/alaska/color.json +0 -394
  115. package/src/themes/alaska/typography.json +0 -132
  116. package/src/themes/auro-classic/comments.json +0 -50
  117. package/src/themes/auro-classic/size/scale.json +0 -347
  118. package/src/themes/auro-classic/size/unitless-scale.json +0 -126
  119. package/src/themes/hawaiian/color.json +0 -394
  120. 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/` directory of the [npm package](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
- └── dist
19
- ├── alaska
20
- │ └── CSSCustomProperties--alaska.css
21
- │ └── primitives--alaska.scss
22
- ├── auro-classic
23
- ├── CSSCustomProperties.css
24
- ├── CSSSizeCustomProperties.css
25
- ├── JSData--color.js
26
- ├── JSObject--deprecated.js
27
- ├── JSONVariablesFlat.json
28
- ├── JSONVariablesNested.json
29
- ├── JSVariables--color.js
30
- ├── SassCustomProperties.scss
31
- ├── SassSizeCustomProperties.scss
32
- ├── SCSSVariableMap.scss
33
- ├── SCSSVariables.scss
34
- │ └── SCSSVariablesMapFlat.scss
35
- ├── hawaiian
36
- │ └── CSSCustomProperties--hawaiian.css
37
- │ └── primitives--hawaiian.scss
38
- ├── transparent
39
- └── CSSCustomProperties--transparent.css
40
- └── CSSCustomProperties--bundled.css
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
- ### Resource Descriptions
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
- | File | Syntax | Type | Status | Filter Type / Description |
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
- ### `bundled` file
49
+ ### Resource Descriptions
84
50
 
85
- | File | Syntax | Type | Status | Filter Type / Description |
86
- |-------------|--------|-------------------|---------|------------------------------------------------------|
87
- | CSSCustomProperties--bundled.css | CSS | Custom properties | Current | Combined v5.x `semantic` CSS custom properties from all supported themes.
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
- NOTE: Not intended for general use.
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
- ### Migration from v4.x to v5.x
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
- With the release of Auro Design Tokens 5.x significant changes have occurred.
73
+ To ensure a smooth transition between the two sets of design tokens, we highly recommend the following approach:
96
74
 
97
- - `./dist/` directory has been restructured. All file imports will need to have their paths updated.
98
- - The v4.x default theme is now called `Auro Classic`. The files for this theme may be found in `./dist/auro-classic`. This theme is now deprecated.
99
- - **NEW** Alaska theme found in `./dist/alaska`.
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
- _note: this example is based on using the Alaska theme, substitute the directory path for the theme you wish to use._
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/alaska/primitives--alaska.scss";
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/alaska/CSSCustomProperties--alaska.css"
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/auro-classic/JSVariables--color.js';
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/auro-alaska/CSSCustomProperties--alaska">
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).