Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new design tokens #138

Merged
merged 2 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ By default, no tokens are exposed in an output file unless specifically designat
|---|---|---|
| attributes {category/type/option} | string | Follow the pattern of the [CTI Structure](https://amzn.github.io/style-dictionary/#/properties?id=category-type-item) to determine the value of a category, type or option in the JSON |
| classic | boolean | Token filter for `classic` theme values |
| deprecated | boolean | Tokens marked as `deprecated:false` will be included into the AllTokens data file. Ones marked `deprecated:true` will only appear in the deprecated data. |
| deprecated | boolean | Tokens marked as `deprecated:false` will be included into the AllTokens data file. Ones marked `deprecated:true` will only appear in the deprecated data. This should be used in conjunction with the redirect and reference JSON options in order to properly deprecate the token and reference it's replacement (or n/a). |
| legacy | boolean | Token filter for legacy values |
| opacity | boolean | Token filter for base colors with an alpha transparency |
| public | boolean | Token filter for publicly exposed Design System tokens per the most recent spec |
Expand Down
7 changes: 7 additions & 0 deletions src/color/border.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
"comment": "Deprecated token",
"reference": "n/a",
"version": "3.12.0"
},
"inverse": {
"value": "{color.brand.breeze.300.value}",
"public": true,
"inverse": true,
"usage": "Active border color on dark backgrounds",
"deprecated": false
}
},
"error": {
Expand Down
30 changes: 30 additions & 0 deletions src/color/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@
"comment": "Deprecated token",
"reference": "n/a",
"version": "3.12.0"
},
"inverse": {
"value": "{color.brand.breeze.200.value}",
"public": true,
"inverse": true,
"usage": "Active state color affordance on dark backgrounds",
"deprecated": false
}
},
"disabled": {
Expand Down Expand Up @@ -146,6 +153,22 @@
}
},
"bkg": {
"default": {
"default": {
"value": "00000008",
"public": true,
"default": true,
"usage": "Default affordance for background colors",
"deprecated": false
},
"inverse": {
"value": "ffffff08",
"public": true,
"inverse": true,
"usage": "Default affordance for dark background colors",
"deprecated": false
}
},
"hover": {
"onDark": {
"value": "5de3f71a",
Expand Down Expand Up @@ -173,6 +196,13 @@
"default": true,
"usage": "Default hover affordance for background colors",
"deprecated": false
},
"inverse": {
"value": "ffffff0f",
"public": true,
"inverse": true,
"usage": "Default hover affordance for dark background colors",
"deprecated": false
}
}
}
Expand Down