Skip to content

Commit

Permalink
refactor: removed deprecated colors and updated migration doc
Browse files Browse the repository at this point in the history
  • Loading branch information
brianacnguyen committed May 30, 2024
1 parent 3ee2b4f commit e05e0d9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 164 deletions.
100 changes: 1 addition & 99 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,127 +8,29 @@ This guide provides detailed instructions for migrating your project from one ve

### Changes to Color Tokens (Breaking Changes)

In this version, significant updates have been made to color tokens, including additions, modifications, and removals. To upgrade to version 4, ensure that the following tokens are not present in your codebase:
In this version, significant updates have been made to color tokens, including modifications, and removals. To upgrade to version 4, ensure that the following tokens are not present in your codebase:

### Brand Colors

- grey-030 modified to grey-025
- grey-040 modified to grey-050
- grey-750 removed
- grey-1000 added
- blue-000 modified to blue-025
- blue-050 added
- green-000 modified to green-025
- green-050 added
- red-000 modified to red-025
- red-050 added
- yellow-000 modified to yellow-025
- yellow-050 added
- yellow-700 added
- yellow-800 added
- yellow-900 added
- orange-000 modified to orange-025
- orange-050 added
- purple-025 added
- purple-050 added
- purple-100 added
- purple-200 added
- purple-300 added
- purple-400 added
- purple-600 added
- purple-700 added
- purple-800 added
- purple-900 added
- violet-300 removed
- lime-025 added
- lime-050 added
- lime-100 added
- lime-200 added
- lime-300 added
- lime-400 added
- lime-500 added
- lime-600 added
- lime-700 added
- lime-800 added
- lime-900 added
- white-000 modified to white
- white-010 removed
- black-000 modified to black

#### CSS Variables

```
--brand-colors-grey-grey030 modified to --brand-colors-grey-grey025
--brand-colors-grey-grey040 modified to --brand-colors-grey-grey050
--brand-colors-grey-grey750 removed
--brand-colors-grey-grey1000 added
--brand-colors-blue-blue000 modified to --brand-colors-blue-blue025
--brand-colors-blue-blue050 added
--brand-colors-green-green000 modified to --brand-colors-green-green025
--brand-colors-green-green050 added
--brand-colors-red-red000 modified to --brand-colors-red-red025
--brand-colors-red-red050 added
--brand-colors-yellow-yellow000 modified to --brand-colors-yellow-yellow025
--brand-colors-yellow-yellow050 added
--brand-colors-yellow-yellow700 added
--brand-colors-yellow-yellow800 added
--brand-colors-yellow-yellow900 added
--brand-colors-orange-orange000 modified to --brand-colors-orange-orange025
--brand-colors-orange-orange050 added
--brand-colors-purple-purple025 added
--brand-colors-purple-purple050 added
--brand-colors-purple-purple100 added
--brand-colors-purple-purple200 added
--brand-colors-purple-purple300 added
--brand-colors-purple-purple400 added
--brand-colors-purple-purple600 added
--brand-colors-purple-purple700 added
--brand-colors-purple-purple800 added
--brand-colors-purple-purple900 added
--brand-colors-violet-violet300 removed
--brand-colors-lime-lime025 added
--brand-colors-lime-lime050 added
--brand-colors-lime-lime100 added
--brand-colors-lime-lime200 added
--brand-colors-lime-lime300 added
--brand-colors-lime-lime400 added
--brand-colors-lime-lime500 added
--brand-colors-lime-lime600 added
--brand-colors-lime-lime700 added
--brand-colors-lime-lime800 added
--brand-colors-lime-lime900 added
--brand-colors-white-white000 modified to --brand-colors-white
--brand-colors-white-white010 removed
--brand-colors-black-black000 modified to --brand-colors-black
```

### Themed Colors

- overlay-inverse removed
- primary-shadow modified to shadow-primary
- primary-disabled removed
- secondary-default removed
- secondary-alternative removed
- secondary-muted removed
- secondary-inverse removed
- secondary-disabled removed
- error-shadow modified to shadow-primary
- error-disabled removed
- warning-alternative removed
- warning-disabled removed
- success-alternative removed
- success-disabled removed
- info-alternative removed
- info-disabled removed
- network-goerli-default removed
- network-goerli-inverse removed
- network-localhost-default removed
- network-localhost-inverse removed
- network-sepolia-default removed
- network-sepolia-inverse removed
- component-button-primary-shadow removed
- component-button-danger-shadow removed

#### CSS Tokens

```
Expand Down
11 changes: 0 additions & 11 deletions src/css/brand-colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,4 @@
/* White and Black */
--brand-colors-white: #ffffff;
--brand-colors-black: #000000;
/* Deprecated - To be removed */
--brand-colors-grey-grey030: #fafbfc;
--brand-colors-grey-grey040: #f2f4f6;
--brand-colors-grey-grey750: #2e3339;
--brand-colors-blue-blue000: #eaf6ff;
--brand-colors-green-green000: #f3fcf5;
--brand-colors-red-red000: #fcf2f3;
--brand-colors-yellow-yellow000: #fffdf8;
--brand-colors-orange-orange000: #fef5ef;
--brand-colors-violet-violet300: #cfb5f0;
--brand-colors-white-white010: #fcfcfc;
}
27 changes: 0 additions & 27 deletions src/css/dark-theme-colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,31 +98,4 @@
--color-shadow-primary: #43aefc33;
/* For critical/danger drop shadow color. */
--color-shadow-error: #ff758466;
/* Deprecated - To be removed */
--color-overlay-inverse: var(--brand-colors-white-white010);
--color-primary-disabled: #1098fc80;
--color-primary-shadow: #0376c933;
--color-secondary-default: var(--brand-colors-orange-orange400);
--color-secondary-alternative: var(--brand-colors-orange-orange300);
--color-secondary-muted: #f8883b26;
--color-secondary-inverse: var(--brand-colors-grey-grey900);
--color-secondary-disabled: #f8883b80;
--color-error-disabled: #d7384780;
--color-error-shadow: #ff526366;
--color-warning-alternative: var(--brand-colors-yellow-yellow400);
--color-warning-disabled: #ffd33d80;
--color-success-alternative: var(--brand-colors-green-green400);
--color-success-disabled: #28a74580;
--color-info-alternative: var(--brand-colors-blue-blue300);
--color-info-disabled: #0376c980;
--color-network-goerli-default: var(--brand-colors-blue-blue400);
--color-network-goerli-inverse: var(--brand-colors-white-white010);
--color-network-localhost-default: var(--brand-colors-grey-grey200);
--color-network-localhost-inverse: var(--brand-colors-white-white010);
--color-network-sepolia-default: var(--brand-colors-violet-violet300);
--color-network-sepolia-inverse: var(--brand-colors-white-white010);
--component-button-primary-shadow: var(--shadow-size-sm)
var(--color-primary-shadow);
--component-button-danger-shadow: var(--shadow-size-sm)
var(--color-error-shadow);
}
27 changes: 0 additions & 27 deletions src/css/light-theme-colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,31 +99,4 @@
--color-shadow-primary: #0376c933;
/* For critical/danger drop shadow color. */
--color-shadow-error: #ca354266;
/* Deprecated - To be removed */
--color-overlay-inverse: var(--brand-colors-white-white010);
--color-primary-disabled: #0376c980;
--color-primary-shadow: #0376c933;
--color-secondary-default: var(--brand-colors-orange-orange500);
--color-secondary-alternative: var(--brand-colors-orange-orange600);
--color-secondary-muted: #f66a0a19;
--color-secondary-inverse: var(--brand-colors-white-white000);
--color-secondary-disabled: #f66a0a80;
--color-error-disabled: #d7384780;
--color-error-shadow: #d7384766;
--color-warning-alternative: var(--brand-colors-yellow-yellow600);
--color-warning-disabled: #ffd33d80;
--color-success-alternative: var(--brand-colors-green-green500);
--color-success-disabled: #28a74580;
--color-info-alternative: var(--brand-colors-blue-blue600);
--color-info-disabled: #0376c980;
--color-network-goerli-default: var(--brand-colors-blue-blue400);
--color-network-goerli-inverse: var(--brand-colors-white-white010);
--color-network-localhost-default: var(--brand-colors-grey-grey200);
--color-network-localhost-inverse: var(--brand-colors-white-white010);
--color-network-sepolia-default: var(--brand-colors-violet-violet300);
--color-network-sepolia-inverse: var(--brand-colors-white-white010);
--component-button-primary-shadow: var(--shadow-size-sm)
var(--color-primary-shadow);
--component-button-danger-shadow: var(--shadow-size-sm)
var(--color-error-shadow);
}

0 comments on commit e05e0d9

Please sign in to comment.