Skip to content

Commit

Permalink
fix: use token name from design (#1629)
Browse files Browse the repository at this point in the history
- eds-theme-color-border-brand-primary => eds-theme-color-border-brand-primary-default
- deprecate old name, and point it to the new, better name
  • Loading branch information
booc0mtaco authored May 24, 2023
1 parent ca9da5b commit 01b2ea8
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .storybook/data/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
"eds-theme-color-border-neutral-strong": "#999EA3",
"eds-theme-color-border-neutral-strong-hover": "#878C90",
"eds-theme-color-border-brand-primary-subtle": "#E0E0F9",
"eds-theme-color-border-brand-primary-default": "#C4C1F3",
"eds-theme-color-border-brand-primary": "#C4C1F3",
"eds-theme-color-border-brand-primary-strong": "#A6A3EE",
"eds-theme-color-border-utility-success-subtle": "#B7E9CE",
Expand Down
2 changes: 1 addition & 1 deletion .storybook/pages/WireframeDemo/GlobalStyles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
--eds-theme-color-body-background: var(--wireframe-gray-a);
--eds-theme-color-border-brand-primary-strong: var(--wireframe-gray-c);
--eds-theme-color-border-brand-primary-subtle: var(--wireframe-gray-a);
--eds-theme-color-border-brand-primary: var(--wireframe-gray-b);
--eds-theme-color-border-brand-primary-default: var(--wireframe-gray-b);
--eds-theme-color-border-disabled: var(--wireframe-gray-b);
--eds-theme-color-border-grade-complete: var(--wireframe-gray-b);
--eds-theme-color-border-grade-revise-default: var(--wireframe-gray-b);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tag/Tag.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
--tag-secondary-color: var(
--eds-theme-color-background-brand-primary-default
);
--tag-outline-color: var(--eds-theme-color-border-brand-primary);
--tag-outline-color: var(--eds-theme-color-border-brand-primary-default);
}

/**
Expand Down
6 changes: 5 additions & 1 deletion src/design-tokens/tier-2-usage/colors-border.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@
"subtle": {
"value": "{eds.color.brand.grape.200}"
},
"@": {
"default": {
"value": "{eds.color.brand.grape.300}"
},
"@": {
"value": "{eds.theme.color.border.brand.primary.default}",
"comment": "This token is deprecated and will be removed in a future EDS release"
},
"strong": {
"value": "{eds.color.brand.grape.400}"
}
Expand Down
3 changes: 2 additions & 1 deletion src/tokens-dist/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@
--eds-theme-color-border-neutral-strong: #999EA3;
--eds-theme-color-border-neutral-strong-hover: #878C90;
--eds-theme-color-border-brand-primary-subtle: #E0E0F9;
--eds-theme-color-border-brand-primary: #C4C1F3;
--eds-theme-color-border-brand-primary-default: #C4C1F3;
--eds-theme-color-border-brand-primary: #C4C1F3; /* This token is deprecated and will be removed in a future EDS release */
--eds-theme-color-border-brand-primary-strong: #A6A3EE;
--eds-theme-color-border-utility-success-subtle: #B7E9CE;
--eds-theme-color-border-utility-success-default: #8FDCB3;
Expand Down
1 change: 1 addition & 0 deletions src/tokens-dist/json/variables-nested.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
"brand": {
"primary": {
"subtle": "#E0E0F9",
"default": "#C4C1F3",
"@": "#C4C1F3",
"strong": "#A6A3EE"
}
Expand Down
3 changes: 2 additions & 1 deletion src/tokens-dist/ts/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export const EdsThemeColorBorderNeutralDefaultHover = '#999EA3';
export const EdsThemeColorBorderNeutralStrong = '#999EA3';
export const EdsThemeColorBorderNeutralStrongHover = '#878C90';
export const EdsThemeColorBorderBrandPrimarySubtle = '#E0E0F9';
export const EdsThemeColorBorderBrandPrimary = '#C4C1F3';
export const EdsThemeColorBorderBrandPrimaryDefault = '#C4C1F3';
export const EdsThemeColorBorderBrandPrimary = '#C4C1F3'; // This token is deprecated and will be removed in a future EDS release
export const EdsThemeColorBorderBrandPrimaryStrong = '#A6A3EE';
export const EdsThemeColorBorderUtilitySuccessSubtle = '#B7E9CE';
export const EdsThemeColorBorderUtilitySuccessDefault = '#8FDCB3';
Expand Down

0 comments on commit 01b2ea8

Please sign in to comment.