Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4198 from uswds/jm-state-color-utils
USWDS - Color: Add state color tokens to default palettes.
- Loading branch information
Showing
3 changed files
with
46 additions
and
1 deletion.
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,30 @@ | ||
label: State color utils | ||
|
||
context: | ||
# $tokens-color-state in _variables.scss | ||
state_colors: | ||
- error-lighter | ||
- error-light | ||
- error | ||
- error-dark | ||
- error-darker | ||
- warning-lighter | ||
- warning-light | ||
- warning | ||
- warning-dark | ||
- warning-darker | ||
- success-lighter | ||
- success-light | ||
- success | ||
- success-dark | ||
- success-darker | ||
- info-lighter | ||
- info-light | ||
- info | ||
- info-dark | ||
- info-darker | ||
- disabled-light | ||
- disabled | ||
- disabled-dark | ||
- emergency | ||
- emergency-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="padding-2 maxw-desktop"> | ||
{% for color in state_colors %} | ||
<div class="grid-row flex-align-center"> | ||
<div class="tablet:grid-col-2"> | ||
<div> | ||
{{ color }} | ||
</div> | ||
</div> | ||
<div class="tablet:grid-col-10"> | ||
<div class="bg-{{ color }} util-test padding-205"></div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> |
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