Skip to content

Commit

Permalink
Merge pull request #2877 from uswds/dw-update-palette-names
Browse files Browse the repository at this point in the history
Update palette names
  • Loading branch information
thisisdano committed Nov 12, 2018
2 parents 55b81d6 + 0af62b3 commit 0c92d6d
Show file tree
Hide file tree
Showing 43 changed files with 1,575 additions and 1,469 deletions.
10 changes: 5 additions & 5 deletions src/stylesheets/core/_properties.scss
Expand Up @@ -5,14 +5,14 @@ USWDS Properties
*/

$standard-colors: map-collect(
$color-palette-theme,
$color-palette-state,
$system-required-colors
$tokens-color-theme,
$tokens-color-state,
$tokens-color-required
);

$extended-colors: map-collect(
$system-colors,
$system-basic-colors
$tokens-color-basic
);

$partial-values: (
Expand Down Expand Up @@ -506,7 +506,7 @@ $system-properties: (
),
outline-color: (
standard: map-collect(
$system-required-colors
$tokens-color-required
),
extended: $extended-colors,
),
Expand Down
4 changes: 2 additions & 2 deletions src/stylesheets/core/_system-tokens.scss
Expand Up @@ -318,13 +318,13 @@ $system-colors: map-collect(
$system-color-white-transparent
);

$system-required-colors: (
$tokens-color-required: (
'transparent': transparent,
'black': black,
'white': white,
);

$system-basic-colors: (
$tokens-color-basic: (
'red': get-system-color('red', 50, 'vivid'),
'red-warm': false,
'orange-warm': false,
Expand Down
14 changes: 7 additions & 7 deletions src/stylesheets/core/_variables.scss
Expand Up @@ -434,9 +434,9 @@ $all-project-colors: map-collect(
$project-state-colors
);

$all-colors: map-collect(
$palette-colors: map-collect(
$all-project-colors,
$system-required-colors,
$tokens-color-required,
$system-colors
);

Expand All @@ -446,7 +446,7 @@ Theme color shortcodes
----------------------------------------
*/

$color-palette-theme: (
$tokens-color-theme: (
'base-lightest': color($theme-color-base-lightest),
'base-lighter': color($theme-color-base-lighter),
'base-light': color($theme-color-base-light),
Expand Down Expand Up @@ -487,7 +487,7 @@ $color-palette-theme: (
'accent-cool-lightest': color($theme-color-accent-cool-lightest),
);

$color-palette-state: (
$tokens-color-state: (
'error-lighter': color($theme-color-error-lighter),
'error-light': color($theme-color-error-light),
'error': color($theme-color-error),
Expand All @@ -514,12 +514,12 @@ $color-palette-state: (
);

$project-color-shortcodes: map-collect(
$color-palette-theme,
$color-palette-state
$tokens-color-theme,
$tokens-color-state
);

$all-color-shortcodes: map-collect(
$system-required-colors,
$tokens-color-required,
$system-color-shortcodes,
$project-color-shortcodes
);
Expand Down
10 changes: 10 additions & 0 deletions src/stylesheets/core/mixins/utilities/_text-indent.scss
@@ -0,0 +1,10 @@
// Outputs text-indent property

@mixin u-text-indent($value...) {
$important: null;
@if has-important($value) {
$value: remove($value, '!important');
$important: ' !important';
}
text-indent: get-uswds-value('text-indent', $value...) #{$important};
}
2 changes: 1 addition & 1 deletion src/stylesheets/core/mixins/utilities/_text.scss
Expand Up @@ -34,7 +34,7 @@ $text-utililies: (
map-deep-get($system-properties, white-space, extended)
),
color: map-collect(
$system-required-colors
$tokens-color-required
),
);

Expand Down

0 comments on commit 0c92d6d

Please sign in to comment.