-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add status color tokens (#124)
* feat: add status color tokens, fix a duplicated red orange value, change the max width of the copy button to show full token name, and change order of categories on Netlify page * feat: add descriptions * docs: add changeset * feat: group surface status colors with other surface tokens * fix: remove space * feat: change neutral status to default and note status to info * feat: remove caution status colors and add -status to border and surface status tokens * feat: update changeset --------- Co-authored-by: Benny Powers <[email protected]>
- Loading branch information
1 parent
9539e1d
commit b64dd32
Showing
10 changed files
with
179 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
"@rhds/tokens": minor | ||
--- | ||
|
||
Added status tokens | ||
|
||
```css | ||
button { | ||
.light &.danger { | ||
background: var(--rh-color-status-danger-on-light); | ||
} | ||
.light &.success { | ||
background: var(--rh-color-status-success-on-light); | ||
} | ||
.dark &.danger { | ||
background: var(--rh-color-status-danger-on-dark); | ||
} | ||
.dark &.success { | ||
background: var(--rh-color-status-success-on-dark); | ||
} | ||
} | ||
``` |
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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
color: | ||
status: | ||
$extensions: | ||
com.redhat.ux: | ||
order: 500 | ||
|
||
danger: | ||
on-light: | ||
$value: '{color.red-orange.50}' | ||
$description: Danger accent color (light theme) | ||
on-dark: | ||
$value: '{color.red-orange.40}' | ||
$description: Danger accent color (dark theme) | ||
|
||
warning: | ||
on-light: | ||
$value: '{color.orange.50}' | ||
$description: Warning accent color (light theme) | ||
on-dark: | ||
$value: '{color.orange.40}' | ||
$description: Warning accent color (dark theme) | ||
|
||
default: | ||
on-light: | ||
$value: '{color.gray.60}' | ||
$description: Default accent color (light theme) | ||
on-dark: | ||
$value: '{color.gray.40}' | ||
$description: Default accent color (dark theme) | ||
|
||
info: | ||
on-light: | ||
$value: '{color.purple.50}' | ||
$description: Info accent color (light theme) | ||
on-dark: | ||
$value: '{color.purple.30}' | ||
$description: Info accent color (dark theme) | ||
|
||
success: | ||
on-light: | ||
$value: '{color.green.60}' | ||
$description: Success accent color (light theme) | ||
on-dark: | ||
$value: '{color.green.40}' | ||
$description: Success accent color (dark theme) |
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