-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure design tokens have a valid type attribute (#1992)
Adds `type` attribute to all design tokens per W3C design tokens spec.
- Loading branch information
1 parent
c01bbdd
commit c19f5dd
Showing
75 changed files
with
2,652 additions
and
2,049 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,54 @@ | ||
{ | ||
"spacing": { | ||
"annotation": { | ||
"padding": { "value": ".5rem", "source": "$annotation-padding" }, | ||
"padding": { "value": ".5rem", "type": "dimension", "source": "$annotation-padding" }, | ||
"arrow-side": { | ||
"margin": { "value": ".25rem", "source": "$annotation-arrow-side-margin" } | ||
"margin": { "value": ".25rem", "type": "dimension", "source": "$annotation-arrow-side-margin" } | ||
} | ||
} | ||
}, | ||
"elevation": { | ||
"annotation": { | ||
"box-shadow": { | ||
"value": "drop-shadow(0 2px 4px rgba(0, 0, 0, .15)) drop-shadow(0 2px 8px rgba(0, 0, 0, .15))", | ||
"type": "shadow", | ||
"source": "$annotation-box-shadow" | ||
} | ||
} | ||
}, | ||
"typography": { | ||
"annotation": { | ||
"font-size": { "value": "{typography.font.size.sm}", "source": "$annotation-font-size" }, | ||
"line-height": { "value": "{typography.line-height.sm}", "source": "$annotation-line-height" } | ||
"font-size": { "value": "{typography.font.size.sm}", "type": "dimension", "source": "$annotation-font-size" }, | ||
"line-height": { | ||
"value": "{typography.line-height.sm}", "type": "dimension", "source": "$annotation-line-height" | ||
} | ||
} | ||
}, | ||
"color": { | ||
"annotation": { | ||
"text": { | ||
"success": {"value": "{color.white}", "source": "$annotation-success-color"}, | ||
"warning": {"value": "{color.black}", "source": "$annotation-warning-color"}, | ||
"error": {"value": "{color.white}", "source": "$annotation-error-color"}, | ||
"light": {"value": "{color.primary.500}", "source": "$annotation-light-color"}, | ||
"dark": {"value": "{color.white}", "source": "$annotation-dark-color"} | ||
"success": { "value": "{color.white}", "type": "color", "source": "$annotation-success-color"}, | ||
"warning": { "value": "{color.black}", "type": "color", "source": "$annotation-warning-color"}, | ||
"error": { "value": "{color.white}", "type": "color", "source": "$annotation-error-color"}, | ||
"light": { "value": "{color.primary.500}", "type": "color", "source": "$annotation-light-color"}, | ||
"dark": { "value": "{color.white}", "type": "color", "source": "$annotation-dark-color"} | ||
}, | ||
"bg": { | ||
"success": {"value": "{color.success.base}", "source": "$annotation-success-bg"}, | ||
"warning": {"value": "{color.accent.b}", "source": "$annotation-warning-bg"}, | ||
"error": {"value": "{color.danger.base}", "source": "$annotation-error-bg"}, | ||
"light": {"value": "{color.white}", "source": "$annotation-light-bg"}, | ||
"dark": {"value": "{color.dark.base}", "source": "$annotation-dark-bg"} | ||
"success": { "value": "{color.success.base}", "type": "color", "source": "$annotation-success-bg"}, | ||
"warning": { "value": "{color.accent.b}", "type": "color", "source": "$annotation-warning-bg"}, | ||
"error": { "value": "{color.danger.base}", "type": "color", "source": "$annotation-error-bg"}, | ||
"light": { "value": "{color.white}", "type": "color", "source": "$annotation-light-bg"}, | ||
"dark": { "value": "{color.dark.base}", "type": "color", "source": "$annotation-dark-bg"} | ||
} | ||
} | ||
}, | ||
"size": { | ||
"annotation": { | ||
"arrow-border": { | ||
"width": { "value": ".5rem", "source": "$annotation-arrow-border-width" } | ||
"width": { "value": ".5rem", "type": "dimension", "source": "$annotation-arrow-border-width" } | ||
}, | ||
"max-width": { "value": "18.75rem", "source": "$annotation-max-width" }, | ||
"border-radius": { "value": ".25rem", "source": "$annotation-border-radius" } | ||
"max-width": { "value": "18.75rem", "type": "dimension", "source": "$annotation-max-width" }, | ||
"border-radius": { "value": ".25rem", "type": "dimension", "source": "$annotation-border-radius" } | ||
} | ||
} | ||
} |
Oops, something went wrong.