Skip to content

Commit

Permalink
Update tokens from Figma
Browse files Browse the repository at this point in the history
  • Loading branch information
taysea committed Dec 7, 2024
1 parent ed9ed75 commit c682b78
Show file tree
Hide file tree
Showing 4 changed files with 448 additions and 152 deletions.
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
24 changes: 24 additions & 0 deletions design-tokens/tokens/primitive/primitives.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,18 @@
}
}
},
"800": {
"$type": "color",
"$value": "#006750",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["ALL_SCOPES"],
"codeSyntax": {}
}
}
},
"900": {
"$type": "color",
"$value": "#074b3b",
Expand Down Expand Up @@ -1184,6 +1196,18 @@
}
}
},
"550": {
"$type": "color",
"$value": "#ebebeb",
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": false,
"scopes": ["ALL_SCOPES"],
"codeSyntax": {}
}
}
},
"600": {
"$type": "color",
"$value": "#8c8c8c",
Expand Down
Loading

0 comments on commit c682b78

Please sign in to comment.