Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
feat: Add hover and pressed tokens for Text (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
imoutaharik authored Dec 13, 2023
1 parent d37ea3a commit 331bfef
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
18 changes: 15 additions & 3 deletions tokens/alias.text.dark.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,24 @@
module.exports = {
text: {
"color" : { value: "{color.grey.0.value}", attributes: { category: "color" } },
"color-weak" : { value: "{color.grey.40.value}", attributes: { category: "color" } },
"color-x-weak" : { value: "{color.grey.50.value}", attributes: { category: "color" } },
"color-hover" : { value: "{color.grey.0.value}", attributes: { category: "color" } },
"color-pressed" : { value: "{color.grey.0.value}", attributes: { category: "color" } },
"color-weak" : { value: "{color.grey.20.value}", attributes: { category: "color" } },
"color-weak-hover" : { value: "{color.grey.0.value}", attributes: { category: "color" } },
"color-weak-pressed" : { value: "{color.grey.0.value}", attributes: { category: "color" } },
"color-x-weak" : { value: "{color.grey.40.value}", attributes: { category: "color" } },
"color-negative" : { value: "{color.red.40.value}", attributes: { category: "color" } },
"color-negative-hover" : { value: "{color.red.20.value}", attributes: { category: "color" } },
"color-negative-pressed" : { value: "{color.red.10.value}", attributes: { category: "color" } },
"color-positive" : { value: "{color.green.40.value}", attributes: { category: "color" } },
"color-positive-hover" : { value: "{color.green.20.value}", attributes: { category: "color" } },
"color-positive-pressed" : { value: "{color.green.10.value}", attributes: { category: "color" } },
"color-warning" : { value: "{color.yellow.50.value}", attributes: { category: "color" } },
"color-warning-hover" : { value: "{color.yellow.20.value}", attributes: { category: "color" } },
"color-warning-pressed" : { value: "{color.yellow.10.value}", attributes: { category: "color" } },
"color-interactive" : { value: "{color.violet.30.value}", attributes: { category: "color" } },
"color-disabled" : { value: "{color.grey.40.value}", attributes: { category: "color" } },
"color-interactive-hover" : { value: "{color.violet.20.value}", attributes: { category: "color" } },
"color-interactive-pressed" : { value: "{color.violet.10.value}", attributes: { category: "color" } },
"color-disabled" : { value: "{color.disabled-dark.value}", attributes: { category: "color" } },
}
};
14 changes: 13 additions & 1 deletion tokens/alias.text.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,24 @@
module.exports = {
text: {
"color" : { value: "{color.grey.80.value}", attributes: { category: "color" } },
"color-hover" : { value: "{color.grey.90.value}", attributes: { category: "color" } },
"color-pressed" : { value: "{color.grey.100.value}", attributes: { category: "color" } },
"color-weak" : { value: "{color.grey.60.value}", attributes: { category: "color" } },
"color-weak-hover" : { value: "{color.grey.70.value}", attributes: { category: "color" } },
"color-weak-pressed" : { value: "{color.grey.80.value}", attributes: { category: "color" } },
"color-x-weak" : { value: "{color.grey.50.value}", attributes: { category: "color" } },
"color-disabled" : { value: "{color.grey.40.value}", attributes: { category: "color" } },
"color-negative" : { value: "{color.red.80.value}", attributes: { category: "color" } },
"color-negative-hover" : { value: "{color.red.90.value}", attributes: { category: "color" } },
"color-negative-pressed" : { value: "{color.red.100.value}", attributes: { category: "color" } },
"color-positive" : { value: "{color.green.80.value}", attributes: { category: "color" } },
"color-positive-hover" : { value: "{color.green.90.value}", attributes: { category: "color" } },
"color-positive-pressed" : { value: "{color.green.100.value}", attributes: { category: "color" } },
"color-warning" : { value: "{color.yellow.80.value}", attributes: { category: "color" } },
"color-warning-hover" : { value: "{color.yellow.90.value}", attributes: { category: "color" } },
"color-warning-pressed" : { value: "{color.yellow.100.value}", attributes: { category: "color" } },
"color-interactive" : { value: "{color.violet.70.value}", attributes: { category: "color" } },
"color-interactive-hover" : { value: "{color.violet.90.value}", attributes: { category: "color" } },
"color-interactive-pressed" : { value: "{color.violet.100.value}", attributes: { category: "color" } },
}
};
};
3 changes: 2 additions & 1 deletion tokens/brand.colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
"off-white" : { value: "#FAFAFA" },
"charcoal" : { value: "#2D3232" },
"warm-grey" : { value: "#E6DCDC" },
"disabled-dark" : { value: "#A5A8A8" },

"grey": {
"0" : { value: "#FFFFFF" },
Expand Down Expand Up @@ -90,4 +91,4 @@ module.exports = {
"100" : { value: "#4C3600" },
},
},
};
};

0 comments on commit 331bfef

Please sign in to comment.