Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theme): add initial files to support Excursion theme #153 #156

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5277229
feat(theme): add initial files to support Excursion theme #153
jason-capsule42 May 8, 2024
e880297
perf(deprecated): clean up old deprecated and deprecate newly outdate…
jason-capsule42 May 14, 2024
9f391cc
feat(classic): add tier 1 classic token structure
jason-capsule42 May 14, 2024
00b1ee4
feat(background): add new background tier 2 tokens
jordanjones243 May 14, 2024
f3678d2
refactor(tokens): update brand tokens with correct values
jason-capsule42 May 15, 2024
4f951b5
refactor(tokens): cleanup the tier 1 tokens
jason-capsule42 May 15, 2024
e8eb53e
fix(grey): correct typo in grey name
jason-capsule42 May 15, 2024
8e14460
feat(container): add values for container tokens
jason-capsule42 May 15, 2024
7306940
refactor(background): use correct values for white
jason-capsule42 May 15, 2024
9372a51
feat(border): add new tier 2 border tokens
jason-capsule42 May 15, 2024
cbd1df9
feat(text): add new tier 2 text tokens
jason-capsule42 May 15, 2024
dc180a8
feat(text): add new tier 2 Tier tokens
jason-capsule42 May 15, 2024
dd63f2d
feat(icon): add new tier 2 icon tokens
jordanjones243 May 15, 2024
3f3c6bf
refactor(tokens): update tokens to correct hex codes
jason-capsule42 May 15, 2024
4d3e493
feat(theme): add base files and config for jetstream theme
jason-capsule42 May 15, 2024
671617c
refactor(jetstream): temporarily disable the jetstream theme in the b…
jason-capsule42 May 16, 2024
3be1f81
fix(classic): update tier 1 tokens to correct values
jordanjones243 May 16, 2024
aea9a92
docs(readme): add excurion theme to the resources list
jason-capsule42 May 16, 2024
3471567
fix: add color object to new token structure
jordanjones243 May 17, 2024
b2d812e
refactor: update tokens names
blackfalcon May 17, 2024
28b11d4
build: update configs
blackfalcon May 17, 2024
f24b2ab
refactor: update incorrect refs
blackfalcon May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"jetstream"
]
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ Pre-processed resources are available in the `./dist/tokens` directory of the [n
├── SCSSVariables.scss
├── SCSSVariablesMapFlat.scss
└── SassCustomProperties.scss
└── excursion
├── JSONVariablesFlat.json
└── JSONVariablesNested.json
```

### Resource Descriptions
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,8 @@
"email": "[email protected]"
},
{
"name": "Camron Lockeby",
"email": "[email protected]"
},
{
"name": "Kevin Sonnichsen",
"email": "[email protected]"
"name": "Jason Baker",
"email": "[email protected]"
}
]
}
2 changes: 1 addition & 1 deletion scripts/config-darkmode.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"include": ["./src/color/base.json", "./src/color/brand.json", "./src/color/alert.json", "./src/comments.json"],
"source": ["./src/color-darkmode/*.json"],
"include": ["./src/color/base.json", "./src/color/brand.json", "./src/color/alert.json", "./src/comments.json"],
"platforms": {
"SCSSVariables": {
"transformGroup": "scss",
Expand Down
27 changes: 27 additions & 0 deletions scripts/config-excursion.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"source": ["./src/themes/excursion/color/*.json"],
"platforms": {
"JSONVariables": {
"transformGroup": "css",
"prefix": "ds",
"comment": "File type: JSON; variable type: CSS; filter: public",
"buildPath": "./dist/tokens/excursion/",
"files": [
{
"destination": "JSONVariablesFlat.json",
"format": "json/flat",
"filter": {
"public": true
}
},
{
"destination": "JSONVariablesNested.json",
"format": "json/nested",
"filter": {
"public": true
}
}
]
}
}
}
20 changes: 20 additions & 0 deletions scripts/config-jetstream.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"source": ["./src/themes/jetstream/color/*.json"],
"platforms": {
"CSSCustomProperties": {
"transformGroup": "css",
"prefix": "ds",
"comment": "File type: CSS; variable type: CSS; filter: public",
"buildPath": "./dist/tokens/jetstream/",
"files": [
{
"destination": "CSSCustomProperties.css",
"format": "css/variables",
"filter": {
"public": true
}
}
]
}
}
}
2 changes: 1 addition & 1 deletion scripts/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"include": ["./src/asset/*.json", "./src/size/*.json", "./src/*.json"],
"source": ["./src/color/*.json"],
"include": ["./src/asset/*.json", "./src/size/*.json", "./src/*.json"],
"platforms": {
"SCSSVariables": {
"transformGroup": "scss",
Expand Down
10 changes: 10 additions & 0 deletions scripts/styleDictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ tokensConfig.buildAllPlatforms();
const darkTokensConfig = StyleDictionary.extend('./scripts/config-darkmode.json');

darkTokensConfig.buildAllPlatforms();

// Themes

const excursionConfig = StyleDictionary.extend('./scripts/config-excursion.json');

excursionConfig.buildAllPlatforms();

// const jetstreamConfig = StyleDictionary.extend('./scripts/config-jetstream.json');

// jetstreamConfig.buildAllPlatforms();
28 changes: 0 additions & 28 deletions src/breakpoint.json

This file was deleted.

4 changes: 2 additions & 2 deletions src/color-darkmode/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"value": "000000",
"comment": "{comments.color.base.value.comment}",
"public": true,
"deprecated": false,
"deprecated": true,
"darkmode": true
},
"black": {
"value": "ffffff",
"comment": "{comments.color.base.value.comment}",
"public": true,
"deprecated": false,
"deprecated": true,
"darkmode": true
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/color-darkmode/border.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"default": true,
"usage": "Primary border color on dark background",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
},
"divider": {
Expand All @@ -20,7 +20,7 @@
"default": true,
"usage": "Strict use as divider between elements on dark backgrounds",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/color-darkmode/icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"default": true,
"usage": "Primary color for icons on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
},
"emphasis": {
Expand All @@ -20,7 +20,7 @@
"default": true,
"usage": "Emphasis or lightest icon color on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/color-darkmode/text.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"default": true,
"usage": "Primary color for body and header text on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
},
"secondary": {
Expand All @@ -20,7 +20,7 @@
"default": true,
"usage": "Secondary color for body text on dark backgrounds",
"wcag": "AAA",
"deprecated": false
"deprecated": true
}
},
"link": {
Expand All @@ -31,7 +31,7 @@
"default": true,
"usage": "Link text color on light backgrounds",
"wcag": "AA",
"deprecated": false
"deprecated": true
}
},
"error": {
Expand All @@ -42,7 +42,7 @@
"default": true,
"usage": "Error text color on dark backgrounds",
"wcag": "AA",
"deprecated": false
"deprecated": true
}
},
"emphasis": {
Expand All @@ -53,7 +53,7 @@
"default": true,
"usage": "Emphasized text color on dark backgrounds",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/color-darkmode/tier.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"default": true,
"usage": "MVP tier color for Alaska Airlines",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
},
"mvpgold": {
Expand All @@ -21,7 +21,7 @@
"default": true,
"usage": "MVP Gold tier color for Alaska Airlines",
"wcag": "n/a",
"deprecated": false
"deprecated": true
}
}
}
Expand Down
Loading
Loading