Skip to content

Commit

Permalink
Get latest tokens from Figma (#4637)
Browse files Browse the repository at this point in the history
* Get latest tokens from Figma

* Create seven-days-do.md

* Update yarn.lock
  • Loading branch information
taysea authored Dec 20, 2024
1 parent 6996a2b commit 11926ea
Show file tree
Hide file tree
Showing 4 changed files with 559 additions and 504 deletions.
10 changes: 10 additions & 0 deletions .changeset/seven-days-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"hpe-design-tokens": minor
---

- Added `iconColor` tokens to formField label.
- Fixed `switch.medium.label.lineHeight`
- Fixed `formField.input.group.container.error.rest.borderColor`
- Fixed `formField.input.group.container.disabled.rest.background`
- Fixed `formField.help.disabled.rest.textColor`
- Fixed `base.color.grey.1000` which is used by light mode for `color.text.strong`
110 changes: 86 additions & 24 deletions design-tokens/tokens/component/component.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -7055,7 +7055,7 @@
},
"lineHeight": {
"$type": "number",
"$value": "{element.medium.fontSize}",
"$value": "{element.medium.lineHeight}",
"$description": "",
"$extensions": {
"com.figma": {
Expand Down Expand Up @@ -8744,7 +8744,7 @@
},
"borderColor": {
"$type": "color",
"$value": "{color.transparent}",
"$value": "{color.border.strong}",
"$description": "",
"$extensions": {
"com.figma": {
Expand All @@ -8760,7 +8760,7 @@
"rest": {
"background": {
"$type": "color",
"$value": "{color.background.default}",
"$value": "{color.background.disabled}",
"$description": "",
"$extensions": {
"com.figma": {
Expand Down Expand Up @@ -9128,6 +9128,18 @@
"codeSyntax": {}
}
}
},
"iconColor": {
"$type": "color",
"$value": "{color.icon.strong}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
}
},
"hover": {
Expand All @@ -9142,6 +9154,18 @@
"codeSyntax": {}
}
}
},
"iconColor": {
"$type": "color",
"$value": "{color.icon.strong}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
}
},
"focus": {
Expand All @@ -9156,6 +9180,18 @@
"codeSyntax": {}
}
}
},
"iconColor": {
"$type": "color",
"$value": "{color.icon.strong}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
}
},
"error": {
Expand All @@ -9171,6 +9207,18 @@
"codeSyntax": {}
}
}
},
"iconColor": {
"$type": "color",
"$value": "{color.icon.strong}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
}
}
},
Expand All @@ -9187,6 +9235,18 @@
"codeSyntax": {}
}
}
},
"iconColor": {
"$type": "color",
"$value": "{color.icon.strong}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
}
}
},
Expand All @@ -9203,26 +9263,10 @@
"codeSyntax": {}
}
}
}
}
}
},
"placeholder": {
"disabled": {
"$type": "color",
"$value": "{color.text.disabled}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
},
"rest": {
"textColor": {
},
"iconColor": {
"$type": "color",
"$value": "{color.text.disabled}",
"$value": "{color.icon.strong}",
"$description": "",
"$extensions": {
"com.figma": {
Expand All @@ -9233,7 +9277,9 @@
}
}
}
},
}
},
"placeholder": {
"rest": {
"textColor": {
"$type": "color",
Expand Down Expand Up @@ -9292,6 +9338,22 @@
}
}
},
"disabled": {
"rest": {
"textColor": {
"$type": "color",
"$value": "{color.text.disabled}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
}
}
},
"readOnly": {
"rest": {
"textColor": {
Expand Down Expand Up @@ -9372,7 +9434,7 @@
"rest": {
"color": {
"$type": "color",
"$value": "{color.text.default}",
"$value": "{color.text.disabled}",
"$description": "",
"$extensions": {
"com.figma": {
Expand Down
2 changes: 1 addition & 1 deletion design-tokens/tokens/primitive/primitives.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@
},
"1000": {
"$type": "color",
"$value": "#333333",
"$value": "#2e2e2e",
"$description": "",
"$extensions": {
"com.figma": {
Expand Down
Loading

0 comments on commit 11926ea

Please sign in to comment.