|
3 | 3 | // Bootstrap variables
|
4 | 4 | $screen-xs-max: 768px !default;
|
5 | 5 |
|
6 |
| -// Our variables |
7 | 6 | $base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
8 | 7 | $base-font-size: 16px;
|
9 | 8 | $small-font-size: $base-font-size * 0.875;
|
10 | 9 | $base-line-height: 1.5;
|
11 | 10 |
|
12 | 11 | $spacing-unit: 30px;
|
13 | 12 |
|
14 |
| -$text-color: #444; |
15 |
| -$background-color: #fdfdfd; |
16 |
| -$brand-color: #2a7ae2; |
17 |
| - |
18 |
| -$grey-colour: #828282; |
| 13 | +// Our variables |
| 14 | +$text-color: var(--text-color); |
| 15 | +$background-color: var(--background-color); |
| 16 | +$brand-color: var(--brand-color); |
| 17 | +$brand-color-visited: var(--brand-color-visited); |
| 18 | +$grey-colour: #828282; |
19 | 19 | $grey-colour-light: lighten($grey-colour, 40%);
|
20 |
| -$grey-colour-dark: darken($grey-colour, 25%); |
| 20 | +$grey-colour-dark: darken($grey-colour, 25%); |
| 21 | + |
| 22 | +// Light theme colors |
| 23 | +$text-color-lt: #444; |
| 24 | +$background-color-lt: #fdfdfd; |
| 25 | +$brand-color-lt: #2a7ae2; |
| 26 | +$brand-color-visited-lt: #1756a9; |
| 27 | + |
| 28 | +// Dark theme colors |
| 29 | +$text-color-dt: #f0f0f0; |
| 30 | +$background-color-dt: #353535; |
| 31 | +$brand-color-dt: #d2991d; |
| 32 | +$brand-color-visited-dt: #9a7015; |
| 33 | + |
| 34 | +:root { |
| 35 | + --text-color: #{$text-color-lt}; |
| 36 | + --background-color: #{$background-color-lt}; |
| 37 | + --brand-color: #{$brand-color-lt}; |
| 38 | + --brand-color-visited: #{$brand-color-visited-lt}; |
| 39 | +} |
| 40 | + |
| 41 | +@media(prefers-color-scheme: dark) { |
| 42 | + :root { |
| 43 | + --text-color: #{$text-color-dt}; |
| 44 | + --background-color: #{$background-color-dt}; |
| 45 | + --brand-color: #{$brand-color-dt}; |
| 46 | + --brand-color-visited: #{$brand-color-visited-dt}; |
| 47 | + } |
| 48 | +} |
21 | 49 |
|
22 | 50 | $on-palm: 600px;
|
23 | 51 | $on-laptop: 800px;
|
|
0 commit comments