Use a consistent color system
1. Renames color names in palette. Using names such as "primary" and
"secondary" that are in consistent with designs such as material,
bootstrap and metro UI palettes. It adds `color-` prefix on color
variables in line with Vue Design System.
2. Introduces necessary changes to follow the system color system
everywhere without using any other color:
- It changes tooltip background from black to darker primary
colors.
- It overrides unset styles from tree component
- It ensures footer has same color as top menu.
3. Removes opacity CSS changes to have better control on choices. To
achieve that:
- It introduces new "light" variants of main colors
- It switches to colors with different variants (e.g. in Dialogs it
uses primary color as button as it has variants that can be
activated on hover meanwhile on-surface color is single).
4. Styles a tags (anchor elements) globally for consistency
This commit is contained in:
@@ -1,8 +1,25 @@
|
||||
$white: #fff;
|
||||
$light-gray: #eceef1;
|
||||
$gray: darken($light-gray, 30%);
|
||||
$dark-gray: #616f86;
|
||||
$slate: darken($light-gray, 70%);
|
||||
$dark-slate: #2f3133;
|
||||
$accent: #1abc9c;
|
||||
$black: #000
|
||||
/*
|
||||
Colors used throughout the application
|
||||
Inspired by material color system: https://material.io/design/color/the-color-system.html, https://material.io/develop/web/theming/color
|
||||
Colors are named using Vue Design System: https://github.com/viljamis/vue-design-system/wiki/Naming-of-Things#naming-colors
|
||||
*/
|
||||
|
||||
// --- Primary | The color displayed most frequently across screens and components
|
||||
$color-primary : #949fb0;
|
||||
$color-primary-light : lighten($color-primary, 15%);
|
||||
$color-primary-dark : darken($color-primary, 18%);
|
||||
$color-primary-darker : darken($color-primary, 40%);
|
||||
$color-primary-darkest : darken($color-primary, 44%);
|
||||
$color-on-primary : lighten($color-primary, 30%); // Text/iconography color that is usable on top of primary color
|
||||
|
||||
// --- Secondary | Accent color, should be applied sparingly to accent select parts of UI
|
||||
$color-secondary : #1abc9c;
|
||||
$color-secondary-light : lighten($color-secondary, 48%);
|
||||
$color-on-secondary : #fff; // Text/iconography color that is usable on top of secondary color
|
||||
|
||||
// --- Surface | Affect surfaces of components, such as cards, sheets, and menus.
|
||||
$color-surface : #fff;
|
||||
$color-on-surface : #000; // Text/iconography color that is usable on surface
|
||||
|
||||
// Background | Appears behind scrollable content.
|
||||
$color-background : lighten($color-primary, 30);
|
||||
|
||||
Reference in New Issue
Block a user