Skip to content

Commit

Permalink
add Barbie theme
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanLovely committed Oct 19, 2023
1 parent 98fc010 commit 414bf8d
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 1 deletion.
13 changes: 13 additions & 0 deletions knapsack/data/knapsack.asset-sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"globalAssetSetIds": [
"salt-light",
"salt-dark",
"barbie",
"commercial",
"retail"
],
Expand All @@ -18,6 +19,18 @@
"inlineJs": "document.body.setAttribute('data-mode', 'dark');",
"assets": []
},
"barbie": {
"id": "barbie",
"title": "Barbie",
"assets": [
{
"src": "../dist/tokens/design-tokens.css"
},
{
"src": "../dist/themes/ks-theme-barbie.css"
}
]
},
"commercial": {
"id": "commercial",
"title": "Commercial",
Expand Down
106 changes: 106 additions & 0 deletions knapsack/data/knapsack.design-tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,112 @@
}
}
}
},
"barbie": {
"actionable": {
"primary": {
"foreground": {
"$type": "color",
"$value": "#000000"
},
"foreground hover": {
"$type": "color",
"$value": "#000000"
},
"foreground active": {
"$type": "color",
"$value": "#000000"
},
"foreground disabled": {
"$type": "color",
"$value": "#000000"
},
"background": {
"$type": "color",
"$value": "#ff00cf"
},
"background hover": {
"$type": "color",
"$value": "#000000"
},
"background active": {
"$type": "color",
"$value": "#000000"
},
"background disabled": {
"$type": "color",
"$value": "#000000"
}
},
"cta": {
"foreground": {
"$type": "color",
"$value": "#000000"
},
"foreground hover": {
"$type": "color",
"$value": "#000000"
},
"foreground active": {
"$type": "color",
"$value": "#000000"
},
"foreground disabled": {
"$type": "color",
"$value": "#000000"
},
"background": {
"$type": "color",
"$value": "#000000"
},
"background hover": {
"$type": "color",
"$value": "#000000"
},
"background active": {
"$type": "color",
"$value": "#000000"
},
"background disabled": {
"$type": "color",
"$value": "#000000"
}
},
"secondary": {
"foreground": {
"$type": "color",
"$value": "#000000"
},
"foreground hover": {
"$type": "color",
"$value": "#000000"
},
"foreground active": {
"$type": "color",
"$value": "#000000"
},
"foreground disabled": {
"$type": "color",
"$value": "#000000"
},
"background": {
"$type": "color",
"$value": "#000000"
},
"background hover": {
"$type": "color",
"$value": "#000000"
},
"background active": {
"$type": "color",
"$value": "#000000"
},
"background disabled": {
"$type": "color",
"$value": "#000000"
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion ks-theme-add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function add() {
if (typeof themeNameInput !== "string") {
throw new Error("themeNameInput is not a string");
}
const themeName = themeNameInput.trim();
const themeName = themeNameInput.trim().toLowerCase();

const basicToken = {
$type: "color",
Expand Down

0 comments on commit 414bf8d

Please sign in to comment.