mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
b8166de30d
From an engineers perspective, whenever specifying colors from now on we should use the form: ``` color: rgb(var(--tone-red-500)); ``` Please note: - Use rgb. This lets us do this like rgb(var(--tone-red-500) / 10%) so we can use a 10% opacity red-500 if we ever need to whilst still making use of our color tokens. - Use --tone-colorName-000 (so the prefix tone). Previously we could use a mix of --gray-500: $gray-500 (note the left hand CSS prop and right hand SASS var) for the things we need to theme currently. As we no longer use SASS we can't do --gray-500: --gray-500, so we now do --tone-gray-500: --gray-500. Just for clarity after that, whenever specifying a color anywhere, use rgb and --tone. There is only one reason where you might not use tone, and that is if you never want a color to be affected by a theme (for example a background shadow probably always should use --black) There are a 2 or 3 left for the code editor, plus our custom-query values
32 lines
1.1 KiB
SCSS
32 lines
1.1 KiB
SCSS
@import './custom-query';
|
|
|
|
// TODO: Setup only the CSS props we actually need here
|
|
// potentially see if our compiler can automatically remove
|
|
// unused CSS props
|
|
:root {
|
|
/* base brand colors */
|
|
--brand-050: var(--tone-magenta-050);
|
|
--brand-100: var(--tone-strawberry-100);
|
|
// rgb(var(--brand-200)): #{rgb(var(--tone-magenta-200))};
|
|
// rgb(var(--brand-300)): #{rgb(var(--tone-magenta-300))};
|
|
// rgb(var(--brand-400)): #{rgb(var(--tone-magenta-400))};
|
|
// rgb(var(--brand-500)): #{rgb(var(--tone-magenta-500))};
|
|
/* temporary rose-like color until its replaced by a numbered one */
|
|
--brand-600: 224 56 117;
|
|
// rgb(var(--brand-700)): #{rgb(var(--tone-magenta-700))};
|
|
--brand-800: var(--tone-magenta-800);
|
|
// rgb(var(--brand-900)): #{rgb(var(--tone-magenta-900))};
|
|
|
|
/* themeable ui colors */
|
|
--typo-action-500: var(--tone-blue-500);
|
|
--decor-error-500: var(--tone-red-500);
|
|
--typo-contrast-999: var(--black);
|
|
|
|
/* themeable brand colors */
|
|
--typo-brand-050: var(--brand-050);
|
|
--typo-brand-600: var(--brand-600);
|
|
--decor-brand-600: var(--brand-600);
|
|
--swatch-brand-600: var(--brand-600);
|
|
--swatch-brand-800: var(--brand-800);
|
|
}
|