|
1 | | -/* All of the Web UI's color variables in one place */ |
| 1 | +/* colors.css: All of the Web UI's color variables in one place */ |
| 2 | + |
| 3 | +/* |
| 4 | +
|
| 5 | +PURPOSE: Consistent, easily modifiable color variables |
| 6 | +abstracted to a single file. |
| 7 | +
|
| 8 | +HOW TO USE: All variables in the CAPY COLOR SUITE should be treated |
| 9 | +as constants. These constants should NOT be found in other CSS files. |
| 10 | +Instead, create variables in the COLOR VARIABLES section, and use those. |
| 11 | +COLOR VARIABLES should be duplicated and properly adjusted in the dark |
| 12 | +mode section as well. |
| 13 | +
|
| 14 | +*/ |
2 | 15 |
|
3 | 16 | :root { |
| 17 | + /* GLOBAL STYLES ============================ */ |
4 | 18 | --site-transition: 0.25s; |
5 | | - --site-bg: #f5f5f5; |
6 | | - --header-bg: #fff; |
7 | | - --sidebar-bg: #fff; |
8 | | - --sidebar-link-hover-bg: #f4f4f4; |
9 | | - --sidebar-active-link-bg: #e4e4e4; |
10 | | - --standard-white: #fff; |
11 | | - --standard-black: #000; |
12 | | - --standard-text: #1c1c1c; |
| 19 | + --site-font: 'Asap', sans-serif; |
| 20 | + |
| 21 | + /* ========================================== */ |
| 22 | + |
| 23 | + /* CAPY COLOR SUITE ========================= */ |
| 24 | + |
| 25 | + /* All colors used on the site are found here */ |
| 26 | + --primary-light: #339b92; |
| 27 | + --primary: #007a75; |
| 28 | + --primary-dark: #00464d; |
| 29 | + --primary-extra-dark: #002633; |
| 30 | + --accent: #f1602f; |
| 31 | + --off-white: #f9fafa; |
| 32 | + --highlight: #f4f8f6; |
| 33 | + --off-black: #20201f; |
| 34 | + |
| 35 | + /* ========================================== */ |
| 36 | + |
| 37 | + /* COLOR VARIABLES ========================== */ |
| 38 | + |
| 39 | + /* Global Styles: backgrounds, text */ |
| 40 | + --site-bg: var(--off-white); |
| 41 | + --standard-white: var(--off-white); |
| 42 | + --standard-black: var(--off-black); |
| 43 | + --standard-text: var(--primary); |
| 44 | + |
| 45 | + /* Sidebar / Header */ |
| 46 | + --header-bg: var(--highlight); |
| 47 | + --sidebar-bg: var(--highlight); |
| 48 | + --sidebar-link-hover-bg: var(--off-white); |
| 49 | + --sidebar-active-link-bg: var(--primary-light); |
| 50 | +} |
| 51 | + |
| 52 | +[data-theme='dark'] { |
| 53 | + /* COLOR VARIABLES ========================== */ |
| 54 | + |
| 55 | + /* Global Styles: backgrounds, text */ |
| 56 | + --site-bg: var(--off-black); |
| 57 | + --standard-white: var(--off-black); |
| 58 | + --standard-black: var(--off-white); |
| 59 | + --standard-text: var(--primary); |
| 60 | + |
| 61 | + /* Sidebar / Header */ |
| 62 | + --header-bg: var(--primary-extra-dark); |
| 63 | + --sidebar-bg: var(--primary-extra-dark); |
| 64 | + --sidebar-link-hover-bg: var(--accent); |
| 65 | + --sidebar-active-link-bg: var(--accent); |
13 | 66 | } |
0 commit comments