Skip to content

Commit

Permalink
Merge pull request #4514 from grommet/update-tokens-figma
Browse files Browse the repository at this point in the history
Update tokens from Figma
  • Loading branch information
taysea authored Dec 9, 2024
2 parents ed9ed75 + 5f5b15a commit 6cb21aa
Show file tree
Hide file tree
Showing 7 changed files with 953 additions and 643 deletions.
10 changes: 10 additions & 0 deletions .changeset/six-mails-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"hpe-design-tokens": minor
---

Added selected/hover state for buttons.
Added `color.text.primary`.
Added `base.color.green.800`.
Added `base.color.grey.550`.
Renamed `color.text.onSelectedWeak` to `color.text.onSelected`.

304 changes: 276 additions & 28 deletions design-tokens/tokens/component/component.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,68 @@
}
}
}
},
"hover": {
"background": {
"$type": "color",
"$value": "{button.default.selected.enabled.background}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL"],
"codeSyntax": {}
}
}
},
"borderColor": {
"$type": "color",
"$value": "{button.default.selected.enabled.borderColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["STROKE_COLOR", "EFFECT_COLOR"],
"codeSyntax": {}
}
}
},
"textColor": {
"$type": "color",
"$value": "{button.default.selected.enabled.textColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
},
"iconColor": {
"$type": "color",
"$value": "{button.default.selected.enabled.iconColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL", "STROKE_COLOR"],
"codeSyntax": {}
}
}
},
"fontWeight": {
"$type": "number",
"$value": "{button.primary.enabled.fontWeight}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FONT_STYLE"],
"codeSyntax": {}
}
}
}
}
},
"xsmall": {
Expand Down Expand Up @@ -1573,6 +1635,68 @@
}
}
}
},
"hover": {
"background": {
"$type": "color",
"$value": "{button.default.selected.enabled.background}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL"],
"codeSyntax": {}
}
}
},
"borderColor": {
"$type": "color",
"$value": "{button.default.selected.enabled.borderColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["STROKE_COLOR", "EFFECT_COLOR"],
"codeSyntax": {}
}
}
},
"textColor": {
"$type": "color",
"$value": "{button.default.selected.enabled.textColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
},
"iconColor": {
"$type": "color",
"$value": "{button.default.selected.enabled.iconColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL", "STROKE_COLOR"],
"codeSyntax": {}
}
}
},
"fontWeight": {
"$type": "number",
"$value": "{button.default.enabled.fontWeight}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FONT_STYLE"],
"codeSyntax": {}
}
}
}
}
},
"xsmall": {
Expand Down Expand Up @@ -2980,6 +3104,68 @@
}
}
}
},
"hover": {
"background": {
"$type": "color",
"$value": "{color.background.active}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL"],
"codeSyntax": {}
}
}
},
"borderColor": {
"$type": "color",
"$value": "{color.transparent}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["STROKE_COLOR", "EFFECT_COLOR"],
"codeSyntax": {}
}
}
},
"textColor": {
"$type": "color",
"$value": "{button.default.enabled.textColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
},
"iconColor": {
"$type": "color",
"$value": "{button.default.enabled.iconColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL", "STROKE_COLOR"],
"codeSyntax": {}
}
}
},
"fontWeight": {
"$type": "number",
"$value": "{button.default.enabled.fontWeight}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FONT_STYLE"],
"codeSyntax": {}
}
}
}
}
},
"xsmall": {
Expand Down Expand Up @@ -4272,6 +4458,68 @@
}
}
}
},
"hover": {
"background": {
"$type": "color",
"$value": "{button.default.selected.enabled.background}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL"],
"codeSyntax": {}
}
}
},
"borderColor": {
"$type": "color",
"$value": "{button.default.selected.enabled.borderColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["STROKE_COLOR", "EFFECT_COLOR"],
"codeSyntax": {}
}
}
},
"textColor": {
"$type": "color",
"$value": "{button.default.selected.enabled.textColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["TEXT_FILL"],
"codeSyntax": {}
}
}
},
"iconColor": {
"$type": "color",
"$value": "{button.default.selected.enabled.iconColor}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL", "STROKE_COLOR"],
"codeSyntax": {}
}
}
},
"fontWeight": {
"$type": "number",
"$value": "{button.default.enabled.fontWeight}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FONT_STYLE"],
"codeSyntax": {}
}
}
}
}
},
"xsmall": {
Expand Down Expand Up @@ -5970,7 +6218,7 @@
},
"textColor": {
"$type": "color",
"$value": "{color.text.onSelectedWeak}",
"$value": "{color.text.onSelected}",
"$description": "",
"$extensions": {
"com.figma": {
Expand Down Expand Up @@ -6050,6 +6298,32 @@
}
}
},
"disabled": {
"background": {
"$type": "color",
"$value": "{color.background.disabled}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL"],
"codeSyntax": {}
}
}
},
"borderColor": {
"$type": "color",
"$value": "{color.border.disabled}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["STROKE_COLOR", "EFFECT_COLOR"],
"codeSyntax": {}
}
}
}
},
"selected": {
"enabled": {
"background": {
Expand Down Expand Up @@ -6116,7 +6390,7 @@
},
"iconColor": {
"$type": "color",
"$value": "{color.icon.onPrimary}",
"$value": "{color.icon.onSelectedStrong}",
"$description": "",
"$extensions": {
"com.figma": {
Expand Down Expand Up @@ -6166,32 +6440,6 @@
}
}
},
"disabled": {
"background": {
"$type": "color",
"$value": "{color.background.disabled}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["FRAME_FILL", "SHAPE_FILL"],
"codeSyntax": {}
}
}
},
"borderColor": {
"$type": "color",
"$value": "{color.border.disabled}",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["STROKE_COLOR", "EFFECT_COLOR"],
"codeSyntax": {}
}
}
}
},
"indeterminate": {
"enabled": {
"background": {
Expand Down
Loading

0 comments on commit 6cb21aa

Please sign in to comment.