@aurodesignsystem/design-tokens 5.3.0 → 5.4.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 +18 -0
- package/README.md +44 -255
- package/dist/CSSCustomProperties--bundled.css +129 -345
- package/dist/auro-classic/CSSCustomProperties.css +162 -162
- package/dist/auro-classic/CSSSizeCustomProperties.css +1 -1
- package/dist/auro-classic/JSData--color.js +1 -1
- package/dist/auro-classic/JSONVariablesFlat.json +162 -162
- package/dist/auro-classic/JSONVariablesNested.json +452 -452
- package/dist/auro-classic/JSObject--allTokens.js +16610 -16610
- package/dist/auro-classic/JSObject--deprecated.js +17434 -17434
- package/dist/auro-classic/JSVariables--color.js +1 -1
- package/dist/auro-classic/SCSSVariableMap.scss +1 -1
- package/dist/auro-classic/SCSSVariables.scss +162 -162
- package/dist/auro-classic/SCSSVariablesMapFlat.scss +181 -181
- package/dist/auro-classic/SassCustomProperties.scss +162 -162
- package/dist/auro-classic/SassSizeCustomProperties.scss +1 -1
- package/dist/hawaiian/CSSCustomProperties--hawaiian.css +129 -113
- package/dist/hawaiian/JSONVariablesNested--hawaiian.json +188 -0
- package/dist/hawaiian/JSObject--allTokens.js +3362 -2893
- package/dist/hawaiian/SCSSVariables--hawaiian.scss +129 -113
- package/dist/hawaiian/SCSSVariablesMapFlat--hawaiian.scss +129 -113
- package/dist/hawaiian/primitives--hawaiian.scss +202 -172
- package/dist/transparent/CSSCustomProperties--transparent.css +1 -1
- package/package.json +1 -1
- package/src/primitives/alaska/{typography.json → font.json} +4 -11
- package/src/primitives/alaska-classic/{typography.json → font.json} +4 -11
- package/src/primitives/base/{typography.json → font.json} +102 -48
- package/src/primitives/base/transparency.json +7 -0
- package/src/primitives/hawaiian/{typography.json → font.json} +3 -11
- package/src/themes/alaska/advanced/boolean.json +136 -0
- package/src/themes/alaska/{component.json → advanced/button.json} +1 -133
- package/src/themes/alaska/advanced/hyperlink.json +62 -0
- package/src/themes/alaska/advanced/shared.json +46 -0
- package/src/themes/alaska/advanced/state.json +70 -0
- package/src/themes/alaska/basic/color/border.json +66 -0
- package/src/themes/alaska/basic/color/brand.json +108 -0
- package/src/themes/alaska/basic/color/fare-brand.json +74 -0
- package/src/themes/alaska/basic/color/page-background.json +24 -0
- package/src/themes/alaska/basic/color/status.json +88 -0
- package/src/themes/alaska/basic/color/surface.json +96 -0
- package/src/themes/alaska/basic/color/text-icon.json +96 -0
- package/src/themes/alaska/basic/corner-radius.json +30 -0
- package/src/themes/alaska/basic/font/accent.json +288 -0
- package/src/themes/alaska/basic/font/body.json +63 -0
- package/src/themes/alaska/basic/font/display.json +248 -0
- package/src/themes/alaska/basic/font/heading.json +245 -0
- package/src/themes/alaska-classic/component/boolean.json +70 -0
- package/src/themes/alaska-classic/{component.json → component/button.json} +1 -133
- package/src/themes/alaska-classic/component/hyperlink.json +62 -0
- package/src/themes/alaska-classic/component/shared.json +46 -0
- package/src/themes/alaska-classic/component/state.json +70 -0
- package/src/themes/alaska-classic/typography.json +799 -107
- package/src/themes/hawaiian/advanced/boolean.json +138 -0
- package/src/themes/hawaiian/advanced/button.json +334 -0
- package/src/themes/hawaiian/advanced/hyperlink.json +64 -0
- package/src/themes/hawaiian/advanced/shared.json +48 -0
- package/src/themes/hawaiian/advanced/state.json +72 -0
- package/src/themes/hawaiian/basic/color/border.json +65 -0
- package/src/themes/hawaiian/basic/color/brand.json +105 -0
- package/src/themes/hawaiian/basic/color/color.json +57 -0
- package/src/themes/hawaiian/basic/color/fare-brand.json +75 -0
- package/src/themes/hawaiian/basic/color/page-background.json +25 -0
- package/src/themes/hawaiian/basic/color/status.json +81 -0
- package/src/themes/hawaiian/basic/color/surface.json +89 -0
- package/src/themes/hawaiian/basic/color/text-icon.json +58 -0
- package/src/themes/hawaiian/basic/font/accent.json +288 -0
- package/src/themes/hawaiian/basic/font/body.json +63 -0
- package/src/themes/hawaiian/basic/font/heading.json +248 -0
- package/src/themes/hawaiian/basic/font/typography.json +248 -0
- package/dist/alaska/CSSCustomProperties--alaska.css +0 -119
- package/dist/alaska/JSObject--allTokens.js +0 -3731
- package/dist/alaska/SCSSVariables--alaska.scss +0 -116
- package/dist/alaska/SCSSVariablesMapFlat--alaska.scss +0 -120
- package/dist/alaska/primitives--alaska.scss +0 -215
- package/dist/alaska-classic/CSSCustomProperties--alaskaClassic.css +0 -119
- package/dist/alaska-classic/JSObject--allTokens.js +0 -3731
- package/dist/alaska-classic/SCSSVariables--alaskaClassic.scss +0 -116
- package/dist/alaska-classic/SCSSVariablesMapFlat--alaskaClassic.scss +0 -120
- package/dist/alaska-classic/primitives--alaskaClassic.scss +0 -215
- package/src/themes/alaska/color.json +0 -444
- package/src/themes/alaska/typography.json +0 -132
- package/src/themes/hawaiian/color.json +0 -444
- package/src/themes/hawaiian/component.json +0 -392
- package/src/themes/hawaiian/typography.json +0 -132
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
# [5.4.0](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v5.3.1...v5.4.0) (2025-04-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add updated typography primitives & themes ([84fc25d](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/84fc25d6ec26bd079eb08edd973336a7f9434919))
|
|
9
|
+
* design token updates ([c3cb008](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/c3cb008bd5911979e756c76e9df6a39013cd93bc))
|
|
10
|
+
* update color tokens ([fc81bf9](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/fc81bf9cbcd4790790a2800ad494e6b2c0da28c6))
|
|
11
|
+
* update themes with new component tokens ([913c1fa](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/913c1fa452a3a2c25c4e41e8bd62dfa3fd6eae5e))
|
|
12
|
+
* update token values ([a9697d1](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/a9697d12ce58997a26cc4244367865faac761b63))
|
|
13
|
+
|
|
14
|
+
## [5.3.1](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v5.3.0...v5.3.1) (2025-03-14)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Performance Improvements
|
|
18
|
+
|
|
19
|
+
* add JSONVariablesNested export to dist ([a293c86](https://github.com/AlaskaAirlines/AuroDesignTokens/commit/a293c86c08955081db226b432731426b8e165187))
|
|
20
|
+
|
|
3
21
|
# [5.3.0](https://github.com/AlaskaAirlines/AuroDesignTokens/compare/v5.2.1...v5.3.0) (2025-03-11)
|
|
4
22
|
|
|
5
23
|
|
package/README.md
CHANGED
|
@@ -4,302 +4,91 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/@aurodesignsystem/design-tokens)
|
|
5
5
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Overview
|
|
8
8
|
|
|
9
|
-
Auro Design Tokens are the foundation of the Auro Design System, providing consistent design values across different platforms and implementations.
|
|
10
|
-
|
|
11
|
-
These tokens define colors, typography, spacing, and other visual attributes for Alaska Airlines and Hawaiian Airlines brands.
|
|
9
|
+
Auro Design Tokens are the foundation of the Auro Design System, providing consistent design values across different platforms and implementations. These tokens define colors, typography, spacing, and other visual attributes for Alaska Airlines and Hawaiian Airlines brands.
|
|
12
10
|
|
|
13
11
|
## Installation
|
|
14
12
|
|
|
15
|
-
```
|
|
16
|
-
|
|
13
|
+
```bash
|
|
14
|
+
npm install @aurodesignsystem/design-tokens
|
|
17
15
|
```
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
## Quick Start
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
### CSS Custom Properties
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
├── alaska-classic
|
|
29
|
-
│ ├── CSSCustomProperties--alaskaClassic.css
|
|
30
|
-
│ ├── JSObject--allTokens.js
|
|
31
|
-
│ ├── primitives--alaskaClassic.scss
|
|
32
|
-
│ ├── SCSSVariables--alaskaClassic.scss
|
|
33
|
-
│ └── SCSSVariablesMapFlat--alaskaClassic.scss
|
|
34
|
-
├── auro-classic
|
|
35
|
-
│ ├── CSSCustomProperties.css
|
|
36
|
-
│ ├── CSSSizeCustomProperties.css
|
|
37
|
-
│ ├── JSData--color.js
|
|
38
|
-
│ ├── JSObject--allTokens.js
|
|
39
|
-
│ ├── JSObject--deprecated.js
|
|
40
|
-
│ ├── JSONVariablesFlat.json
|
|
41
|
-
│ ├── JSONVariablesNested.json
|
|
42
|
-
│ ├── JSVariables--color.js
|
|
43
|
-
│ ├── SassCustomProperties.scss
|
|
44
|
-
│ ├── SassSizeCustomProperties.scss
|
|
45
|
-
│ ├── SCSSVariableMap.scss
|
|
46
|
-
│ ├── SCSSVariables.scss
|
|
47
|
-
│ └── SCSSVariablesMapFlat.scss
|
|
48
|
-
├── hawaiian
|
|
49
|
-
│ └── CSSCustomProperties--hawaiian.css
|
|
50
|
-
│ └── primitives--hawaiian.scss
|
|
51
|
-
├── transparent
|
|
52
|
-
│ └── CSSCustomProperties--transparent.css
|
|
53
|
-
└── CSSCustomProperties--bundled.css
|
|
21
|
+
For most web applications, using CSS Custom Properties is recommended:
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
// In a React or similar application
|
|
25
|
+
import "@aurodesignsystem/design-tokens/dist/alaska/CSSCustomProperties--alaska.css"
|
|
54
26
|
```
|
|
55
27
|
|
|
56
|
-
|
|
28
|
+
```html
|
|
29
|
+
<!-- In an HTML file -->
|
|
30
|
+
<link rel="stylesheet" href="node_modules/@aurodesignsystem/design-tokens/dist/alaska/CSSCustomProperties--alaska.css">
|
|
31
|
+
```
|
|
57
32
|
|
|
58
|
-
###
|
|
33
|
+
### With Sass
|
|
59
34
|
|
|
60
|
-
When working with Sass
|
|
35
|
+
When working with Sass:
|
|
61
36
|
|
|
62
37
|
```scss
|
|
63
38
|
@import "~@aurodesignsystem/design-tokens/dist/alaska/primitives--alaska.scss";
|
|
64
39
|
```
|
|
65
40
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### Install with CSS
|
|
69
|
-
|
|
70
|
-
For React or similar frameworks, import the CSS file directly:
|
|
41
|
+
### JavaScript Usage
|
|
71
42
|
|
|
72
43
|
```js
|
|
73
|
-
import
|
|
44
|
+
import { AuroColorAlertNotificationOnLight } from '@aurodesignsystem/design-tokens/dist/auro-classic/JSVariables--color.js';
|
|
74
45
|
```
|
|
75
46
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### Install ESModules
|
|
79
|
-
|
|
80
|
-
_Note: ESModules are not yet available for the v5.x tokens._
|
|
47
|
+
## Available Themes
|
|
81
48
|
|
|
82
|
-
|
|
49
|
+
Auro Design Tokens support multiple themes:
|
|
83
50
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
51
|
+
| Theme | Description | Usage |
|
|
52
|
+
|-------|-------------|-------|
|
|
53
|
+
| Alaska | Current Alaska Airlines theme | Alaska Airlines branded interfaces |
|
|
54
|
+
| Alaska Classic | Transition theme with `v5.x` token names but Auro Classic values | For migration scenarios only |
|
|
55
|
+
| Hawaiian | Hawaiian Airlines theme | Hawaiian Airlines branded interfaces |
|
|
56
|
+
| Auro Classic | Legacy theme (deprecated) | Only for backward compatibility |
|
|
87
57
|
|
|
88
|
-
|
|
58
|
+
## Theme Scoping
|
|
89
59
|
|
|
90
|
-
|
|
60
|
+
Apply different themes using the `data-aag-theme` attribute:
|
|
91
61
|
|
|
92
62
|
```html
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**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.
|
|
97
|
-
|
|
98
|
-
## Theme Scoping with data-aag-theme
|
|
99
|
-
|
|
100
|
-
The Auro Design System supports multiple themes that can be applied using the `data-aag-theme` attribute.
|
|
101
|
-
|
|
102
|
-
### Implementation Example
|
|
103
|
-
|
|
104
|
-
```html
|
|
105
|
-
<!-- Alaska-themed section -->
|
|
63
|
+
<!-- Alaska-themed -->
|
|
106
64
|
<div data-aag-theme="aag-theme-as">
|
|
107
65
|
<h1>Alaska Airlines Content</h1>
|
|
108
|
-
<!-- Elements here will use Alaska theme tokens -->
|
|
109
66
|
</div>
|
|
110
67
|
|
|
111
|
-
<!-- Hawaiian-themed
|
|
68
|
+
<!-- Hawaiian-themed -->
|
|
112
69
|
<div data-aag-theme="aag-theme-ha">
|
|
113
70
|
<h1>Hawaiian Airlines Content</h1>
|
|
114
|
-
<!-- Elements here will use Hawaiian theme tokens -->
|
|
115
71
|
</div>
|
|
116
72
|
```
|
|
117
73
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
- The bundled CSS file (`CSSCustomProperties--bundled.css`) contains all themes rescoped with their respective `data-aag-theme` selectors
|
|
121
|
-
- See the [Theme Data Attributes](#theme-data-attributes) table below for all available theme codes.
|
|
122
|
-
|
|
123
|
-
## Available Themes & Resources
|
|
124
|
-
|
|
125
|
-
### Theme Data Attributes
|
|
126
|
-
|
|
127
|
-
For theme scoping with CSS Custom Properties, use the following data attributes:
|
|
128
|
-
|
|
129
|
-
| Theme | Data Attribute | Theme Code |
|
|
130
|
-
|---------------|----------------------------------|------------|
|
|
131
|
-
| Alaska | `data-aag-theme="aag-theme-as"` | `as` |
|
|
132
|
-
| Alaska Classic| `data-aag-theme="aag-theme-asc"` | `asc` |
|
|
133
|
-
| Hawaiian | `data-aag-theme="aag-theme-ha"` | `ha` |
|
|
134
|
-
|
|
135
|
-
### Alaska
|
|
136
|
-
|
|
137
|
-
| File | Syntax | Type | Description |
|
|
138
|
-
|-----------------------------|--------|--------------------|-------------------------------------------------------|
|
|
139
|
-
| CSSCustomProperties--alaska | CSS | Custom properties | All v5.x semantic tokens |
|
|
140
|
-
| primitives--alaska | SCSS | Sass variables | All v5.x semantic token values |
|
|
141
|
-
|
|
142
|
-
### Alaska Classic
|
|
143
|
-
|
|
144
|
-
The Alaska Classic theme uses the `v5.x` token names with the deprecated Auro Classic values.
|
|
145
|
-
|
|
146
|
-
It serves as a gateway to the `v5.x` tokens, facilitating a smooth transition for Auro components, leading to an eventual switch to the new "Alaska" theme.
|
|
147
|
-
|
|
148
|
-
| File | Syntax | Type | Description |
|
|
149
|
-
|----------------------------------------|-----------|--------------------|------------------------------------------------------|
|
|
150
|
-
| CSSCustomProperties--alaskaClassic | CSS | Custom properties | All v5.x semantic tokens |
|
|
151
|
-
| JSObject--allTokens.js | JS module | All data | All v5.x token data |
|
|
152
|
-
| primitives--alaskaClassic | SCSS | Sass variables | All v5.x semantic token values |
|
|
153
|
-
| SCSSVariables--alaskaClassic | SCSS | Sass variables | All v5.x semantic tokens |
|
|
154
|
-
| SCSSVariablesMapFlat--alaskaClassic | SCSS | Sass variable map | All v5.x semantic tokens as flat map |
|
|
155
|
-
|
|
156
|
-
### Hawaiian
|
|
157
|
-
|
|
158
|
-
| File | Syntax | Type | Description |
|
|
159
|
-
|-------------------------------|--------|--------------------|-------------------------------------------------------|
|
|
160
|
-
| CSSCustomProperties--hawaiian | CSS | Custom properties | All v5.x release tokens |
|
|
161
|
-
| primitives--hawaiian | SCSS | Sass variables | All v5.x semantic token values |
|
|
162
|
-
|
|
163
|
-
### Auro Classic (Deprecated)
|
|
164
|
-
|
|
165
|
-
| File | Syntax | Type | Filter Type / Description |
|
|
166
|
-
|--------------------------|-----------|--------------------|----------------------------------|
|
|
167
|
-
| CSSCustomProperties | CSS | Custom properties | All v4.x release tokens |
|
|
168
|
-
| CSSSizeCustomProperties | CSS | Custom properties | Filter v4.x: size, public |
|
|
169
|
-
| JSData--color | JS module | Color data | Filter v4.x: color, Deprecated |
|
|
170
|
-
| JSONVariablesFlat | JSON Data | All data | All v4.x release tokens |
|
|
171
|
-
| JSONVariablesNested | JSON Data | All data | All v4.x release tokens |
|
|
172
|
-
| JSObject--deprecated | JS module | Deprecated tokens | Filter v4.x: deprecated, public |
|
|
173
|
-
| JSObject--allTokens.js | JS module | All data | All v4.x release tokens |
|
|
174
|
-
| JSVariables--color | JS ES6 | Color data | Filter v4.x: color |
|
|
175
|
-
| SCSSVariableMap | Sass | Sass variable map | Filter v4.x: size, public |
|
|
176
|
-
| SCSSVariables | SCSS | Sass variables | All v4.x release tokens |
|
|
177
|
-
| SCSSVariablesMapFlat | SCSS | Sass variable map | All v4.x release tokens |
|
|
178
|
-
| SassCustomProperties | SCSS | Custom properties | All v4.x release tokens |
|
|
179
|
-
| SassSizeCustomProperties | Sass | Custom properties | Filter v4.x: size, public |
|
|
180
|
-
|
|
181
|
-
### Transparent (Deprecated)
|
|
182
|
-
|
|
183
|
-
| File | Syntax | Type | Filter Type / Description |
|
|
184
|
-
|-------------------------------------|-----------|--------------------|---------------------------|
|
|
185
|
-
| CSSCustomProperties--transparent | CSS | Custom properties | All v4.0x release tokens |
|
|
186
|
-
|
|
187
|
-
### Bundled File
|
|
188
|
-
|
|
189
|
-
| File | Syntax | Type | Description |
|
|
190
|
-
|---------------------------------|--------|-------------------|-----------------------------------------|
|
|
191
|
-
| CSSCustomProperties--bundled.css | CSS | Custom properties | Combined v5.x `semantic` CSS custom properties from all supported themes with their respective `data-aag-theme` selectors |
|
|
192
|
-
|
|
193
|
-
**NOTE: Bundled file is not intended for general use.**
|
|
194
|
-
|
|
195
|
-
## Understanding the Architecture
|
|
196
|
-
|
|
197
|
-
### Key Concepts
|
|
198
|
-
|
|
199
|
-
The Auro Design System is built on a structured hierarchy of design tokens organized around two key concepts:
|
|
200
|
-
|
|
201
|
-
- **Primitives**: Low-level, foundational values (colors, sizes, etc.)
|
|
202
|
-
- **Themes**: Semantic tokens that reference primitives with meaningful, usage-based names
|
|
203
|
-
|
|
204
|
-
### Source Directory Structure
|
|
205
|
-
|
|
206
|
-
```
|
|
207
|
-
src/
|
|
208
|
-
├── primitives/
|
|
209
|
-
│ ├── alaska/
|
|
210
|
-
│ │ ├── color.json
|
|
211
|
-
│ │ ├── typography.json
|
|
212
|
-
│ │ └── ...
|
|
213
|
-
│ ├── base/
|
|
214
|
-
│ │ ├── color.json
|
|
215
|
-
│ │ ├── transparency.json
|
|
216
|
-
│ │ └── ...
|
|
217
|
-
│ ├── hawaiian/
|
|
218
|
-
│ │ ├── color.json
|
|
219
|
-
│ │ ├── typography.json
|
|
220
|
-
│ │ └── ...
|
|
221
|
-
│ └── ...
|
|
222
|
-
└── themes/
|
|
223
|
-
├── alaska/
|
|
224
|
-
│ ├── color.json
|
|
225
|
-
│ ├── typography.json
|
|
226
|
-
│ └── ...
|
|
227
|
-
├── hawaiian/
|
|
228
|
-
│ ├── color.json
|
|
229
|
-
│ ├── typography.json
|
|
230
|
-
│ └── ...
|
|
231
|
-
└── ...
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
### Multi-Level Token Architecture
|
|
235
|
-
|
|
236
|
-
#### 1. Base Primitives: Shared Foundation
|
|
237
|
-
|
|
238
|
-
Base primitives (`src/primitives/base/`) define foundational values shared across the system:
|
|
239
|
-
- Common color scales (gray, neutral, status colors)
|
|
240
|
-
- Basic visual elements (black, white)
|
|
241
|
-
- Transparency values
|
|
242
|
-
- And more...
|
|
243
|
-
|
|
244
|
-
These base primitives are shared resources that theme-specific primitives can reference, providing consistency across the entire design system.
|
|
245
|
-
|
|
246
|
-
#### 2. Theme-Specific Primitives: Brand Identity
|
|
247
|
-
|
|
248
|
-
Each supported theme (Alaska, Hawaiian, etc.) has its own primitives folder (`src/primitives/alaska/`, `src/primitives/hawaiian/`) containing:
|
|
249
|
-
- Brand-specific color palettes
|
|
250
|
-
- Typography definitions unique to each brand
|
|
251
|
-
- And more...
|
|
252
|
-
|
|
253
|
-
These theme-specific primitives work alongside the shared `base` primitives to create a complete palette for each brand.
|
|
254
|
-
|
|
255
|
-
#### 3. Semantic Theme Tokens: Usage-Based References
|
|
256
|
-
|
|
257
|
-
The tokens in the `themes` directory (`src/themes/alaska/`, `src/themes/hawaiian/`) are semantic tokens that:
|
|
258
|
-
- Reference primitive values using paths like `{color.atlas.600.value}`
|
|
259
|
-
- Have meaningful names based on their function (e.g., `color.brand.primary`)
|
|
260
|
-
- Provide usage descriptions explaining their intended context
|
|
261
|
-
- Are marked as `"public": true` for use in components
|
|
262
|
-
|
|
263
|
-
#### 4. Component Tokens: UI Element Styling
|
|
264
|
-
|
|
265
|
-
Component tokens, prefixed with `--ds-component-` in the CSS custom properties files and found in `component.json` for each theme, define the visual characteristics of UI components.
|
|
266
|
-
|
|
267
|
-
These component tokens reference semantic tokens and create a higher-level abstraction specifically for UI components.
|
|
268
|
-
|
|
269
|
-
#### 5. Multi-level Semantic References
|
|
270
|
-
|
|
271
|
-
Semantic tokens can reference other semantic tokens, not just primitives:
|
|
272
|
-
- For example, `font.weight.heading.heading1` can reference `{font.weight.book.value}`
|
|
273
|
-
- This creates multiple layers of abstraction and flexibility
|
|
274
|
-
- These reference chains ultimately resolve to primitive values
|
|
275
|
-
|
|
276
|
-
### Best Practices
|
|
277
|
-
|
|
278
|
-
**Never Use Primitives Directly in UI**
|
|
74
|
+
## Documentation
|
|
279
75
|
|
|
280
|
-
|
|
76
|
+
For comprehensive documentation, please see our:
|
|
281
77
|
|
|
282
|
-
|
|
78
|
+
- [Architecture Guide](https://auro.alaskaair.com/getting-started/developers/design-tokens/docs/architecture)
|
|
79
|
+
- [Theme Guide](https://auro.alaskaair.com/getting-started/developers/design-tokens/docs/themes)
|
|
80
|
+
- [Migration Guide](https://auro.alaskaair.com/getting-started/developers/design-tokens/docs/migration)
|
|
81
|
+
- [API Reference](https://auro.alaskaair.com/getting-started/developers/design-tokens/docs/api-reference)
|
|
82
|
+
- [Complete Documentation - Auro Docs](https://auro.alaskaair.com/getting-started/developers/design-tokens)
|
|
283
83
|
|
|
284
|
-
|
|
84
|
+
## Package Structure
|
|
285
85
|
|
|
286
|
-
|
|
287
|
-
2. **Abstraction of Intent**: Semantic naming communicates the purpose of each token
|
|
288
|
-
3. **Centralized Updates**: Changes to primitive values automatically propagate to all semantic tokens
|
|
289
|
-
4. **Design Consistency**: Related UI elements share the same semantic tokens across different contexts
|
|
290
|
-
5. **Clear Migration Path**: Supports multiple versions during transition periods
|
|
86
|
+
The npm package provides pre-processed resources in the `./dist/` directory organized by theme.
|
|
291
87
|
|
|
292
|
-
##
|
|
88
|
+
## Contributing
|
|
293
89
|
|
|
294
|
-
|
|
90
|
+
Please read our [contributing guidelines](.github/CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
|
|
295
91
|
|
|
296
|
-
|
|
297
|
-
- 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.
|
|
298
|
-
- **NEW** Alaska theme found in `./dist/alaska`.
|
|
299
|
-
- **NEW** Alaska Classic theme found in `./dist/alaska-classic`.
|
|
300
|
-
- **NEW** Hawaiian theme found in `./dist/hawaiian`.
|
|
301
|
-
- 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.
|
|
302
|
-
- 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.
|
|
303
|
-
- 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.
|
|
92
|
+
## License
|
|
304
93
|
|
|
305
|
-
|
|
94
|
+
This project is licensed under the Apache 2.0 License - see the [LICENSE](./LICENSE) file for details.
|