@aurodesignsystem/design-tokens 4.0.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 (70) hide show
  1. package/CHANGELOG.md +573 -0
  2. package/LICENSE +201 -0
  3. package/README.md +97 -0
  4. package/dist/tokens/CSSCustomProperties--darkmode.css +302 -0
  5. package/dist/tokens/CSSCustomProperties.css +315 -0
  6. package/dist/tokens/CSSCustomPropertiesColorRGB--darkmode.css +155 -0
  7. package/dist/tokens/CSSCustomPropertiesColorRGB.css +168 -0
  8. package/dist/tokens/CSSOpacityProperties--darkmode.scss +10 -0
  9. package/dist/tokens/CSSOpacityProperties.scss +10 -0
  10. package/dist/tokens/CSSSizeCustomProperties--darkmode.css +20 -0
  11. package/dist/tokens/CSSSizeCustomProperties.css +20 -0
  12. package/dist/tokens/CSSVariables--darkmode.css +302 -0
  13. package/dist/tokens/CSSVariablesMapFlat--darkmode.css +368 -0
  14. package/dist/tokens/JSData--color.js +3665 -0
  15. package/dist/tokens/JSData--darkmodeColor.js +3254 -0
  16. package/dist/tokens/JSObject--allDarkTokens.js +7087 -0
  17. package/dist/tokens/JSObject--allTokens.js +7498 -0
  18. package/dist/tokens/JSObject--deprecated.js +2788 -0
  19. package/dist/tokens/JSObject--deprecatedDark.js +675 -0
  20. package/dist/tokens/JSVariables--color.js +166 -0
  21. package/dist/tokens/JSVariables--darkmodeColor.js +153 -0
  22. package/dist/tokens/SCSSOpacityVariables--darkmode.scss +7 -0
  23. package/dist/tokens/SCSSOpacityVariables.scss +7 -0
  24. package/dist/tokens/SCSSVariableMap--darkmode.scss +37 -0
  25. package/dist/tokens/SCSSVariableMap.scss +37 -0
  26. package/dist/tokens/SCSSVariables--darkmode.scss +299 -0
  27. package/dist/tokens/SCSSVariables.scss +312 -0
  28. package/dist/tokens/SCSSVariablesMapFlat--darkmode.scss +368 -0
  29. package/dist/tokens/SCSSVariablesMapFlat.scss +381 -0
  30. package/dist/tokens/SassCustomProperties--darkmode.scss +302 -0
  31. package/dist/tokens/SassCustomProperties.scss +315 -0
  32. package/dist/tokens/SassCustomPropertiesColorRGB--darkmode.scss +155 -0
  33. package/dist/tokens/SassCustomPropertiesColorRGB.scss +168 -0
  34. package/dist/tokens/SassSizeCustomProperties--darkmode.scss +20 -0
  35. package/dist/tokens/SassSizeCustomProperties.scss +20 -0
  36. package/package.json +92 -0
  37. package/packageScripts/postinstall.mjs +34 -0
  38. package/src/animation.json +21 -0
  39. package/src/asset/font.json +35 -0
  40. package/src/breakpoint.json +28 -0
  41. package/src/color/alert.json +175 -0
  42. package/src/color/background.json +38 -0
  43. package/src/color/base.json +140 -0
  44. package/src/color/border.json +214 -0
  45. package/src/color/brand.json +530 -0
  46. package/src/color/icon.json +150 -0
  47. package/src/color/text.json +237 -0
  48. package/src/color/tier.json +114 -0
  49. package/src/color/ui.json +165 -0
  50. package/src/color-darkmode/alert.json +56 -0
  51. package/src/color-darkmode/background.json +38 -0
  52. package/src/color-darkmode/base.json +140 -0
  53. package/src/color-darkmode/border.json +66 -0
  54. package/src/color-darkmode/brand.json +530 -0
  55. package/src/color-darkmode/icon.json +46 -0
  56. package/src/color-darkmode/text.json +66 -0
  57. package/src/color-darkmode/tier.json +54 -0
  58. package/src/color-darkmode/ui.json +57 -0
  59. package/src/comments.json +34 -0
  60. package/src/depth.json +29 -0
  61. package/src/elevation.json +22 -0
  62. package/src/grid-breakpoint.json +29 -0
  63. package/src/grid-column.json +29 -0
  64. package/src/grid-gutter.json +29 -0
  65. package/src/grid-margin.json +29 -0
  66. package/src/shadow.json +13 -0
  67. package/src/size/radius.json +9 -0
  68. package/src/size/scale.json +308 -0
  69. package/src/size/unitless-scale.json +82 -0
  70. package/src/text.json +572 -0
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Do not edit directly
3
+ * Generated on Wed, 13 Sep 2023 17:26:39 GMT
4
+ */
5
+
6
+ :root {
7
+ --ds-size-25: 0.125rem; /* 2px */
8
+ --ds-size-50: 0.25rem; /* 4px */
9
+ --ds-size-100: 0.5rem; /* 8px */
10
+ --ds-size-150: 0.75rem; /* 12px */
11
+ --ds-size-200: 1rem; /* 16px */
12
+ --ds-size-300: 1.5rem; /* 24px */
13
+ --ds-size-400: 2rem; /* 32px */
14
+ --ds-size-500: 2.5rem; /* 40px */
15
+ --ds-size-600: 3rem; /* 48px */
16
+ --ds-size-700: 3.5rem; /* 56px */
17
+ --ds-size-800: 4rem; /* 64px */
18
+ --ds-size-900: 4.5rem; /* 72px */
19
+ --ds-size-1000: 5rem; /* 80px */
20
+ }
package/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@aurodesignsystem/design-tokens",
3
+ "version": "4.0.0",
4
+ "description": "Alaska Air Auro Design System token repository",
5
+ "homepage": "https://github.com/AlaskaAirlines/DesignTokens",
6
+ "author": "Alaska Airlines Product design and engineering",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/AlaskaAirlines/AuroDesignTokens"
10
+ },
11
+ "main": "src/",
12
+ "license": "Apache-2.0",
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "dependencies": {
17
+ "chalk": "^5.3.0"
18
+ },
19
+ "devDependencies": {
20
+ "@commitlint/cli": "^17.6.7",
21
+ "@commitlint/config-conventional": "^17.6.7",
22
+ "@semantic-release/changelog": "^6.0.3",
23
+ "@semantic-release/git": "^10.0.1",
24
+ "@semantic-release/npm": "^10.0.4",
25
+ "husky": "^8.0.0",
26
+ "npm-run-all": "^4.1.5",
27
+ "semantic-release": "^21.0.7",
28
+ "style-dictionary": "^3.8.0"
29
+ },
30
+ "scripts": {
31
+ "postinstall": "node packageScripts/postinstall.mjs",
32
+ "build:tokens": "node scripts/styleDictionary.js",
33
+ "build:ci": "npm-run-all sweep test build:tokens postinstall",
34
+ "test": "node scripts/jsonTest.js",
35
+ "sweep": "rm -rf dist/",
36
+ "prepare": "husky install"
37
+ },
38
+ "commitlint": {
39
+ "extends": [
40
+ "@commitlint/config-conventional"
41
+ ]
42
+ },
43
+ "release": {
44
+ "branch": "master",
45
+ "plugins": [
46
+ "@semantic-release/commit-analyzer",
47
+ "@semantic-release/release-notes-generator",
48
+ [
49
+ "@semantic-release/changelog",
50
+ {
51
+ "changelogFile": "./CHANGELOG.md",
52
+ "changelogTitle": "# Semantic Release Automated Changelog"
53
+ }
54
+ ],
55
+ "@semantic-release/npm",
56
+ [
57
+ "@semantic-release/git",
58
+ {
59
+ "assets": [
60
+ "./CHANGELOG.md",
61
+ "package.json",
62
+ "package-lock.json"
63
+ ]
64
+ }
65
+ ],
66
+ "@semantic-release/github"
67
+ ]
68
+ },
69
+ "publishConfig": {
70
+ "access": "public"
71
+ },
72
+ "keywords": [
73
+ "alaska airlines",
74
+ "css",
75
+ "properties",
76
+ "tokens"
77
+ ],
78
+ "contributors": [
79
+ {
80
+ "name": "Dale Sande",
81
+ "email": "dale.sande@alaskaair.com"
82
+ },
83
+ {
84
+ "name": "Camron Lockeby",
85
+ "email": "camron.lockeby@alaskaair.com"
86
+ },
87
+ {
88
+ "name": "Kevin Sonnichsen",
89
+ "email": "Kevin.Sonnichsen@alaskaair.com"
90
+ }
91
+ ]
92
+ }
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ import chalk from 'chalk';
4
+ import { createRequire } from 'node:module';
5
+ const require = createRequire(import.meta.url);
6
+ const pjson = require('../package.json');
7
+
8
+ console.log(chalk.hex('#f26135')(`
9
+ _______ __ __ __
10
+ | __|.---.-.--.--. | |--.-----.| | |.-----.
11
+ |__ || _ | | | | | -__|| | || _ |
12
+ |_______||___._|___ | |__|__|_____||__|__||_____|
13
+ |_____|
14
+ __ _______ __
15
+ | |_.-----. | _ |.--.--.----.-----.| |
16
+ | _| _ | | || | | _| _ ||__|
17
+ |____|_____| |___|___||_____|__| |_____||__|
18
+ `)
19
+ +
20
+ chalk.hex('#f26135')(`
21
+ ╭ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ──────────────────────────────╮
22
+
23
+ Thanks for installing the latest version
24
+ of `) + chalk.hex('#ffd200').bold(`Design Tokens v${pjson.version}.`) + chalk.hex('#f26135')(`
25
+
26
+ All Orion and Classic tokens
27
+ have been DELETED!
28
+
29
+ Be sure to update WCSS
30
+ npm i @alaskaairux/webcorestylesheets@latest
31
+
32
+ ╰─────────────────────────────── ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯
33
+ `)
34
+ );
@@ -0,0 +1,21 @@
1
+ {
2
+ "animation": {
3
+ "default": {
4
+ "property": {
5
+ "value": "all",
6
+ "public": true,
7
+ "deprecated": false
8
+ },
9
+ "duration": {
10
+ "value": "0.3s",
11
+ "public": true,
12
+ "deprecated": false
13
+ },
14
+ "timing": {
15
+ "value": "ease-out",
16
+ "public": true,
17
+ "deprecated": false
18
+ }
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "asset": {
3
+ "font": {
4
+ "circular": {
5
+ "familyName": {
6
+ "value": "AS Circular",
7
+ "public": true,
8
+ "deprecated": false
9
+ },
10
+ "filename": {
11
+ "value": "ASCircularWeb",
12
+ "public": true,
13
+ "deprecated": false
14
+ },
15
+ "weight": {
16
+ "light": {
17
+ "value": "-Light",
18
+ "public": true,
19
+ "deprecated": false
20
+ },
21
+ "medium": {
22
+ "value": "-Medium",
23
+ "public": true,
24
+ "deprecated": false
25
+ },
26
+ "book": {
27
+ "value": "-Book",
28
+ "public": true,
29
+ "deprecated": false
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "breakpoint": {
3
+ "sm": {
4
+ "value": "660px",
5
+ "public": false,
6
+ "deprecated": true,
7
+ "version": "3.13.0",
8
+ "reference": "grid-breakpoint-sm",
9
+ "comment": "{comments.reference.comment} grid-breakpoint-sm"
10
+ },
11
+ "md": {
12
+ "value": "1024px",
13
+ "public": false,
14
+ "deprecated": true,
15
+ "version": "3.13.0",
16
+ "reference": "grid-breakpoint-md",
17
+ "comment": "{comments.reference.comment} grid-breakpoint-md"
18
+ },
19
+ "lg": {
20
+ "value": "1232px",
21
+ "public": false,
22
+ "deprecated": true,
23
+ "version": "3.13.0",
24
+ "reference": "grid-breakpoint-lg",
25
+ "comment": "{comments.reference.comment} grid-breakpoint-lg"
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,175 @@
1
+ {
2
+ "color": {
3
+ "alert": {
4
+ "notification": {
5
+ "onLight": {
6
+ "value": "{color.brand.atlas.400.value}",
7
+ "public": false,
8
+ "onLight": true,
9
+ "usage": "Notification color on light backgrounds",
10
+ "wcag": "AAA",
11
+ "deprecated": true,
12
+ "comment": "Deprecated token",
13
+ "reference": "color-alert-notification-default",
14
+ "version": "3.15.0"
15
+ },
16
+ "default": {
17
+ "value": "{color.brand.atlas.400.value}",
18
+ "public": true,
19
+ "default": true,
20
+ "usage": "Notification color on light backgrounds",
21
+ "wcag": "AAA",
22
+ "deprecated": false
23
+ },
24
+ "onDark": {
25
+ "value": "{color.brand.breeze.300.value}",
26
+ "public": false,
27
+ "onDark": true,
28
+ "usage": "Notification color on dark backgrounds",
29
+ "wcag": "AAA",
30
+ "deprecated": true,
31
+ "comment": "Deprecated token",
32
+ "reference": "n/a",
33
+ "version": "3.12.0"
34
+ }
35
+ },
36
+ "warning": {
37
+ "onLight": {
38
+ "value": "{color.state.warning.500.value}",
39
+ "public": false,
40
+ "onLight": true,
41
+ "usage": "Warning color on light backgrounds",
42
+ "wcag": "AAA",
43
+ "deprecated": true,
44
+ "comment": "Deprecated token",
45
+ "reference": "n/a",
46
+ "version": "3.12.0"
47
+ },
48
+ "default": {
49
+ "value": "{color.state.warning.500.value}",
50
+ "public": true,
51
+ "default": true,
52
+ "usage": "Warning color on light backgrounds",
53
+ "wcag": "AAA",
54
+ "deprecated": false
55
+ }
56
+ },
57
+ "error": {
58
+ "onLight": {
59
+ "value": "{color.state.error.500.value}",
60
+ "public": false,
61
+ "onLight": true,
62
+ "usage": "Error color on light backgrounds",
63
+ "wcag": "AAA",
64
+ "deprecated": true,
65
+ "comment": "Deprecated token",
66
+ "reference": "color-alert-error-default",
67
+ "version": "3.15.0"
68
+ },
69
+ "default": {
70
+ "value": "{color.state.error.500.value}",
71
+ "public": true,
72
+ "default": true,
73
+ "usage": "Error color on light backgrounds",
74
+ "wcag": "AAA",
75
+ "deprecated": false
76
+ },
77
+ "onDark": {
78
+ "value": "{color.state.error.100.value}",
79
+ "public": false,
80
+ "onDark": true,
81
+ "usage": "Error color on dark backgrounds",
82
+ "wcag": "AAA",
83
+ "deprecated": true,
84
+ "reference": "n/a",
85
+ "comment": "Deprecated token",
86
+ "version": "3.12.0"
87
+ }
88
+ },
89
+ "success": {
90
+ "onLight": {
91
+ "value": "{color.state.success.500.value}",
92
+ "public": false,
93
+ "onLight": true,
94
+ "usage": "Success color on light backgrounds",
95
+ "wcag": "AAA",
96
+ "deprecated": true,
97
+ "comment": "Deprecated token",
98
+ "reference": "color-alert-success-default",
99
+ "version": "3.15.0"
100
+ },
101
+ "default": {
102
+ "value": "{color.state.success.500.value}",
103
+ "public": true,
104
+ "default": true,
105
+ "usage": "Success color on light backgrounds",
106
+ "wcag": "AAA",
107
+ "deprecated": false
108
+ },
109
+ "onDark": {
110
+ "value": "{color.state.success.100.value}",
111
+ "public": false,
112
+ "onDark": true,
113
+ "usage": "Success color on dark backgrounds",
114
+ "wcag": "AAA",
115
+ "deprecated": true,
116
+ "comment": "Deprecated token",
117
+ "reference": "n/a",
118
+ "version": "3.12.0"
119
+ }
120
+ },
121
+ "advisory": {
122
+ "onLight": {
123
+ "value": "{color.brand.goldcoast.100.value}",
124
+ "public": false,
125
+ "onLight": true,
126
+ "usage": "Travel advisory or system maintenance color on light backgrounds",
127
+ "wcag": "AAA",
128
+ "deprecated": true,
129
+ "comment": "Deprecated token",
130
+ "reference": "color-alert-advisory-default",
131
+ "version": "3.15.0"
132
+ },
133
+ "default": {
134
+ "value": "{color.brand.goldcoast.100.value}",
135
+ "public": true,
136
+ "default": true,
137
+ "usage": "Travel advisory or system maintenance color on light backgrounds",
138
+ "wcag": "AAA",
139
+ "deprecated": false
140
+ },
141
+ "onDark": {
142
+ "value": "{color.brand.goldcoast.100.value}",
143
+ "public": false,
144
+ "onDark": true,
145
+ "usage": "Travel advisory or system maintenance color on dark backgrounds",
146
+ "wcag": "AAA",
147
+ "deprecated": true,
148
+ "comment": "Deprecated token",
149
+ "reference": "n/a",
150
+ "version": "3.12.0"
151
+ }
152
+ },
153
+ "bkgSuccess": {
154
+ "default": {
155
+ "value": "DDF6E8",
156
+ "public": true,
157
+ "onLight": true,
158
+ "usage": "Background success color on light backgrounds",
159
+ "wcag": "AAA",
160
+ "deprecated": false
161
+ }
162
+ },
163
+ "bkgError": {
164
+ "default": {
165
+ "value": "FFEDF1",
166
+ "public": true,
167
+ "default": true,
168
+ "usage": "Background error color on light backgrounds",
169
+ "wcag": "AAA",
170
+ "deprecated": false
171
+ }
172
+ }
173
+ }
174
+ }
175
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "color": {
3
+ "background": {
4
+ "lightest": {
5
+ "value": "{color.base.white.value}",
6
+ "public": true,
7
+ "neutral": true,
8
+ "usage": "Used for creating light backgrounds",
9
+ "wcag": "n/a",
10
+ "deprecated": false
11
+ },
12
+ "lighter": {
13
+ "value": "{color.base.gray.100.value}",
14
+ "public": true,
15
+ "neutral": true,
16
+ "usage": "Used for creating light backgrounds @ 90% white",
17
+ "wcag": "n/a",
18
+ "deprecated": false
19
+ },
20
+ "darker": {
21
+ "value": "{color.brand.midnight.400.value}",
22
+ "public": true,
23
+ "neutral": true,
24
+ "usage": "Used for creating dark backgrounds",
25
+ "wcag": "n/a",
26
+ "deprecated": false
27
+ },
28
+ "darkest": {
29
+ "value": "{color.brand.midnight.500.value}",
30
+ "public": true,
31
+ "neutral": true,
32
+ "usage": "Used for creating dark backgrounds @ 20% darker",
33
+ "wcag": "n/a",
34
+ "deprecated": false
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,140 @@
1
+ {
2
+ "color": {
3
+ "base": {
4
+ "white": {
5
+ "value": "ffffff",
6
+ "comment": "{comments.color.base.value.comment}",
7
+ "public": true,
8
+ "deprecated": false
9
+ },
10
+ "white-opacity-40": {
11
+ "value": "ffffff66",
12
+ "comment": "white @ 40%",
13
+ "public": true,
14
+ "opacity": true,
15
+ "deprecated": false
16
+ },
17
+ "black": {
18
+ "value": "000000",
19
+ "comment": "{comments.color.base.value.comment}",
20
+ "public": true,
21
+ "deprecated": false
22
+ },
23
+ "black-opacity-15": {
24
+ "value": "00000026",
25
+ "comment": "black @ 15%",
26
+ "public": true,
27
+ "opacity": true,
28
+ "deprecated": false
29
+ },
30
+ "gray": {
31
+ "100": {
32
+ "value": "f8f8f8",
33
+ "version": "3.1.0",
34
+ "public": false,
35
+ "neutral": true,
36
+ "usage": "Neutral accent",
37
+ "wcag": "n/a",
38
+ "deprecated": true,
39
+ "reference": "color-brand-gray-100",
40
+ "comment": "{comments.reference.comment} color-brand-gray-100"
41
+ },
42
+ "200": {
43
+ "value": "dbdbdb",
44
+ "public": false,
45
+ "neutral": true,
46
+ "usage": "Neutral accent",
47
+ "wcag": "n/a",
48
+ "deprecated": true,
49
+ "version": "3.1.0",
50
+ "reference": "color-brand-gray-200",
51
+ "comment": "{comments.reference.comment} color-brand-gray-200"
52
+ },
53
+ "300": {
54
+ "value": "b2b2b2",
55
+ "public": false,
56
+ "neutral": true,
57
+ "usage": "Neutral accent",
58
+ "wcag": "n/a",
59
+ "deprecated": true,
60
+ "version": "3.1.0",
61
+ "reference": "color-brand-gray-300",
62
+ "comment": "{comments.reference.comment} color-brand-gray-300"
63
+ },
64
+ "400": {
65
+ "value": "767676",
66
+ "public": false,
67
+ "neutral": true,
68
+ "usage": "Neutral accent",
69
+ "wcag": "n/a",
70
+ "deprecated": true,
71
+ "version": "3.1.0",
72
+ "reference": "color-brand-gray-400",
73
+ "comment": "{comments.reference.comment} color-brand-gray-400"
74
+ },
75
+ "500": {
76
+ "value": "222222",
77
+ "public": false,
78
+ "neutral": true,
79
+ "usage": "Neutral accent",
80
+ "wcag": "n/a",
81
+ "deprecated": true,
82
+ "version": "3.1.0",
83
+ "reference": "color-brand-gray-500",
84
+ "comment": "{comments.reference.comment} color-brand-gray-500"
85
+ }
86
+ },
87
+ "neutral": {
88
+ "400": {
89
+ "value": "9fabbb",
90
+ "public": false,
91
+ "deprecated": true,
92
+ "version": "3.1.0",
93
+ "reference": "color-brand-neutral-400",
94
+ "comment": "{comments.reference.comment} color-brand-neutral-400"
95
+ },
96
+ "500": {
97
+ "value": "626b79",
98
+ "public": false,
99
+ "deprecated": true,
100
+ "version": "3.1.0",
101
+ "reference": "color-brand-neutral-500",
102
+ "comment": "{comments.reference.comment} color-brand-neutral-500"
103
+ }
104
+ }
105
+ },
106
+ "state": {
107
+ "error": {
108
+ "100": {
109
+ "value": "ff999b",
110
+ "public": true,
111
+ "deprecated": false
112
+ },
113
+ "500": {
114
+ "value": "df0b37",
115
+ "public": true,
116
+ "deprecated": false
117
+ }
118
+ },
119
+ "success": {
120
+ "100": {
121
+ "value": "69cf96",
122
+ "public": true,
123
+ "deprecated": false
124
+ },
125
+ "500": {
126
+ "value": "00805d",
127
+ "public": true,
128
+ "deprecated": false
129
+ }
130
+ },
131
+ "warning": {
132
+ "500": {
133
+ "value": "de750c",
134
+ "public": true,
135
+ "deprecated": false
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }