Skip to content

Commit

Permalink
feat(theme): add initial files to support Excursion theme #153
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed May 16, 2024
1 parent 5e5dce9 commit 5277229
Show file tree
Hide file tree
Showing 6 changed files with 659 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
{
"name": "Kevin Sonnichsen",
"email": "[email protected]"
},
{
"name": "Jason Baker",
"email": "[email protected]"
}
]
}
28 changes: 28 additions & 0 deletions scripts/config-excursion.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"include": ["./src/themes/excursion/color/*.json"],
"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
}
}
]
}
}
}
6 changes: 6 additions & 0 deletions scripts/styleDictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ tokensConfig.buildAllPlatforms();
const darkTokensConfig = StyleDictionary.extend('./scripts/config-darkmode.json');

darkTokensConfig.buildAllPlatforms();

// Themes

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

excursionConfig.buildAllPlatforms();
78 changes: 78 additions & 0 deletions src/themes/excursion/color/background.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"background": {
"primary": {
"100": {
"default": {
"value": "{color.excursion.blue.100.value}",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"inverse": {
"value": "{color.excursion.blue.700.value}",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
}
},
"200": {
"default": {
"value": "{color.excursion.blue.200.value}",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"inverse": {
"value": "{color.excursion.blue.800.value}",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
}
},
"300": {
"default": {
"value": "{color.excursion.blue.300.value}",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"inverse": {
"value": "{color.excursion.blue.900.value}",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
}
},
"400": {
"default": {
"value": "{color.excursion.grey.100.value}",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"inverse": {
"value": "{color.excursion.grey.100.value}",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
}
}
}
}
}
259 changes: 259 additions & 0 deletions src/themes/excursion/color/base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
{
"color": {
"excursion": {
"white": {
"3": {
"value": "ffffff08",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"6": {
"value": "ffffff0f",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"12": {
"value": "ffffff1f",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"25": {
"value": "ffffff40",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"50": {
"value": "ffffff80",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"100": {
"value": "ffffffff",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
}
},
"black": {
"3": {
"value": "00000008",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"6": {
"value": "0000000f",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"12": {
"value": "0000001f",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"25": {
"value": "00000040",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"50": {
"value": "00000080",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"100": {
"value": "000000ff",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
}
},
"success": {
"100": {
"value": "eff9f3",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"200": {
"value": "7ecd9b",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"300": {
"value": "00a04a",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"400": {
"value": "006b30",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"500": {
"value": "003d1e",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
}
},
"error": {
"100": {
"value": "fff4f4",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"200": {
"value": "f9aca6",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"300": {
"value": "f16359",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"400": {
"value": "cc1816",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"500": {
"value": "74110e",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
}
},
"warning": {
"100": {
"value": "fef8e9",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"200": {
"value": "f2c153",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"300": {
"value": "c49432",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"400": {
"value": "8e6b22",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
},
"500": {
"value": "5d4514",
"comment": "",
"public": true,
"neutral": true,
"usage": "",
"wcag": "n/a",
"deprecated": false
}
}
}
}
}
Loading

0 comments on commit 5277229

Please sign in to comment.