Skip to content

Commit

Permalink
fix(theme): remove hard-coded light mode colors in favor of bundled o…
Browse files Browse the repository at this point in the history
…nes (#1808)
  • Loading branch information
averyjohnston authored Jan 12, 2024
1 parent 8135d89 commit c99444b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 106 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@capacitor/keyboard": "4.1.1",
"@capacitor/splash-screen": "4.1.4",
"@capacitor/status-bar": "4.1.1",
"@ionic/angular": "^7.6.2-dev.11704729332.13b412c8",
"@ionic/angular": "^7.6.2-dev.11704998705.1e1f9850",
"@ionic/storage-angular": "^4.0.0",
"cordova-plugin-inappbrowser": "5.0.0",
"core-js": "^3.6.4",
Expand Down
90 changes: 0 additions & 90 deletions src/theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,96 +5,6 @@
* https://www.ionicframework.com/docs/theming/
*/

/*
* Ionic Colors
* ----------------------------------------------------------------------------
* Named colors make it easy to reuse colors on various components.
* It's highly recommended to change the default colors
* to match your app's branding. Ionic provides nine layered colors
* that can be changed to theme an app. Additional colors can be
* added as well (see below). For more information, please see
* https://www.ionicframework.com/docs/theming/colors
*
* To easily create custom color palettes for your app’s UI,
* check out our color generator:
* https://www.ionicframework.com/docs/theming/color-generator
*/

:root {
/** primary **/
--ion-color-primary: #3880ff;
--ion-color-primary-rgb: 56, 128, 255;
--ion-color-primary-contrast: #ffffff;
--ion-color-primary-contrast-rgb: 255, 255, 255;
--ion-color-primary-shade: #3171e0;
--ion-color-primary-tint: #4c8dff;

/** secondary **/
--ion-color-secondary: #3dc2ff;
--ion-color-secondary-rgb: 61, 194, 255;
--ion-color-secondary-contrast: #ffffff;
--ion-color-secondary-contrast-rgb: 255, 255, 255;
--ion-color-secondary-shade: #36abe0;
--ion-color-secondary-tint: #50c8ff;

/** tertiary **/
--ion-color-tertiary: #5260ff;
--ion-color-tertiary-rgb: 82, 96, 255;
--ion-color-tertiary-contrast: #ffffff;
--ion-color-tertiary-contrast-rgb: 255, 255, 255;
--ion-color-tertiary-shade: #4854e0;
--ion-color-tertiary-tint: #6370ff;

/** success **/
--ion-color-success: #2dd36f;
--ion-color-success-rgb: 45, 211, 111;
--ion-color-success-contrast: #ffffff;
--ion-color-success-contrast-rgb: 255, 255, 255;
--ion-color-success-shade: #28ba62;
--ion-color-success-tint: #42d77d;

/** warning **/
--ion-color-warning: #ffc409;
--ion-color-warning-rgb: 255, 196, 9;
--ion-color-warning-contrast: #000000;
--ion-color-warning-contrast-rgb: 0, 0, 0;
--ion-color-warning-shade: #e0ac08;
--ion-color-warning-tint: #ffca22;

/** danger **/
--ion-color-danger: #eb445a;
--ion-color-danger-rgb: 235, 68, 90;
--ion-color-danger-contrast: #ffffff;
--ion-color-danger-contrast-rgb: 255, 255, 255;
--ion-color-danger-shade: #cf3c4f;
--ion-color-danger-tint: #ed576b;

/** dark **/
--ion-color-dark: #222428;
--ion-color-dark-rgb: 34, 36, 40;
--ion-color-dark-contrast: #ffffff;
--ion-color-dark-contrast-rgb: 255, 255, 255;
--ion-color-dark-shade: #1e2023;
--ion-color-dark-tint: #383a3e;

/** medium **/
--ion-color-medium: #92949c;
--ion-color-medium-rgb: 146, 148, 156;
--ion-color-medium-contrast: #ffffff;
--ion-color-medium-contrast-rgb: 255, 255, 255;
--ion-color-medium-shade: #808289;
--ion-color-medium-tint: #9d9fa6;

/** light **/
--ion-color-light: #f4f5f8;
--ion-color-light-rgb: 244, 245, 248;
--ion-color-light-contrast: #000000;
--ion-color-light-contrast-rgb: 0, 0, 0;
--ion-color-light-shade: #d7d8da;
--ion-color-light-tint: #f5f6f9;
}


/*
* Additional Ionic Colors
* ----------------------------------------------------------------------------
Expand Down

0 comments on commit c99444b

Please sign in to comment.