|
| 1 | +$colors: ( |
| 2 | + // Colors are: [mac, non-mac] because in macOS we use glass effect for the background. |
| 3 | + dark: ( |
| 4 | + text-faded: rgb(190, 190, 190) rgb(190, 190, 190), |
| 5 | + text: rgb(255, 255, 255) rgb(255, 255, 255), |
| 6 | + gray-bright: rgb(150, 150, 150) rgb(150, 150, 150), |
| 7 | + switch-dot: rgb(200, 200, 200) rgb(200, 200, 200), |
| 8 | + gray: rgb(95, 95, 95) rgb(95, 95, 95), |
| 9 | + switch-bg: var(--gray) var(--gray), |
| 10 | + content-bg: rgba(30, 30, 30, 8) rgb(30, 30, 30), |
| 11 | + page-header-bg: rgba(43, 43, 43, .6) rgb(43, 43, 43), |
| 12 | + popover-bg: rgba(20, 20, 20, .6) rgb(26, 26, 26), |
| 13 | + bottom-bar-bg: rgba(21, 21, 21, 0.2) rgb(21, 21, 21), |
| 14 | + sidebar-bg: rgba(50, 50, 50, .75) rgb(50, 50, 50), |
| 15 | + app-border: rgb(90, 90, 90) rgb(90, 90, 90), |
| 16 | + item-bg: rgba(80, 80, 80, .3) rgb(56, 56, 56), |
| 17 | + item-hover-bg: rgba(80, 80, 80, .75) rgb(70, 70, 70), |
| 18 | + item-border-color: rgb(22, 22, 22, .3) rgb(22, 22, 22), |
| 19 | + header-border: rgb(50, 50, 50) rgb(50, 50, 50), |
| 20 | + popover-border: rgb(43, 43, 43) rgb(43, 43, 43) |
| 21 | + ), |
| 22 | + light: ( |
| 23 | + text-faded: rgb(20, 20, 20) rgb(30, 30, 30), |
| 24 | + text: rgb(0, 0, 0) rgb(0, 0, 0), |
| 25 | + gray-bright: rgb(105, 105, 105) rgb(115, 115, 115), |
| 26 | + gray: rgb(160, 160, 160) rgb(160, 160, 160), |
| 27 | + switch-bg: rgb(145, 145, 145) rgb(168, 168, 168), |
| 28 | + switch-dot: rgb(160, 160, 160) rgb(255, 255, 255), |
| 29 | + content-bg: rgba(220, 220, 220, .75) rgb(220, 220, 220), |
| 30 | + page-header-bg: rgba(212, 212, 212, .6) rgb(212, 212, 212), |
| 31 | + popover-bg: rgba(210, 210, 210, .8) rgb(240, 240, 240), |
| 32 | + sidebar-bg: rgba(240, 240, 240, .6) rgb(240, 240, 240), |
| 33 | + app-border: rgb(185, 185, 185) rgb(185, 185, 185), |
| 34 | + item-bg: rgba(255, 255, 255, .3) rgb(255, 255, 255), |
| 35 | + item-hover-bg: rgba(150, 150, 150, .7) rgb(235, 235, 235), |
| 36 | + item-border-color: rgb(180, 180, 180, .7) rgb(201, 201, 201), |
| 37 | + popover-border: rgb(167, 167, 167) rgb(210, 210, 210), |
| 38 | + ) |
| 39 | +); |
| 40 | + |
1 | 41 | :root { |
2 | 42 | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; |
3 | 43 | font-synthesis: none; |
|
6 | 46 | -moz-osx-font-smoothing: grayscale; |
7 | 47 | -webkit-text-size-adjust: 100%; |
8 | 48 | line-height: 20px; |
9 | | - |
10 | | - --text-faded: rgb(190, 190, 190); |
11 | | - --text: rgb(255, 255, 255); |
12 | | - --gray-bright: rgb(150, 150, 150); |
13 | | - --switch-dot: rgb(200, 200, 200); |
14 | | - --gray: rgb(95, 95, 95); |
15 | | - --switch-bg: var(--gray); |
16 | | - --content-bg: rgba(30, 30, 30, .8); |
17 | | - --page-header-bg: rgba(43, 43, 43, .6); |
18 | | - --popover-bg: rgba(20, 20, 20, .6); |
19 | | - --popover-bg-solid: rgba(40, 40, 40); |
20 | | - --bottom-bar-bg: rgba(21, 21, 21, 0.2); |
21 | | - --sidebar-bg: rgba(50, 50, 50, .75); |
22 | | - --app-border: rgb(90, 90, 90); |
23 | | - --item-bg: rgba(80, 80, 80, .3); |
24 | | - --item-hover-bg: rgba(80, 80, 80, .75); |
25 | | - --item-border-color: rgb(22, 22, 22, .3); |
| 49 | + |
26 | 50 | --accent-color: rgb(23, 115, 243); |
27 | | - --header-border: rgb(50, 50, 50); |
28 | 51 |
|
29 | | - &.light-theme { |
30 | | - --text-faded: rgb(20, 20, 20); |
31 | | - --text: rgb(0, 0, 0); |
32 | | - --gray-bright: rgb(105, 105, 105); |
33 | | - --gray: rgb(160, 160, 160); |
34 | | - --switch-bg: rgb(145, 145, 145); |
35 | | - --switch-dot: rgb(60, 60, 60); |
36 | | - --content-bg: rgba(220, 220, 220, .75); |
37 | | - --page-header-bg: rgba(212, 212, 212, .6); |
38 | | - --popover-bg: rgba(210, 210, 210, .8); |
39 | | - --popover-bg-solid: rgba(215, 215, 215); |
40 | | - --bottom-bar-bg: rgba(234, 234, 234, 0.2); |
41 | | - --sidebar-bg: rgba(240, 240, 240, .6); |
42 | | - --app-border: rgb(185, 185, 185); |
43 | | - --item-bg: rgba(255, 255, 255, .3); |
44 | | - --item-hover-bg: rgba(150, 150, 150, .7); |
45 | | - --item-border-color: rgb(180, 180, 180, .7); |
46 | | - --popover-border: rgb(167, 167, 167); |
| 52 | + // Colors look really bad on Windows and Linux because there is no glass effect. |
| 53 | + // Some colors are different because of that. |
| 54 | + &:not([data-os-darwin]) { |
| 55 | + @each $color-name, $color-list in map-get($colors, dark) { |
| 56 | + $color: nth($color-list, 2); |
| 57 | + --#{"" + $color-name}: #{"" + $color}; |
| 58 | + } |
| 59 | + |
| 60 | + &.light-theme { |
| 61 | + @each $color-name, $color-list in map-get($colors, light) { |
| 62 | + $color: nth($color-list, 2); |
| 63 | + --#{"" + $color-name}: #{"" + $color}; |
| 64 | + } |
| 65 | + } |
| 66 | + } |
| 67 | + |
| 68 | + &[data-os-darwin] { |
| 69 | + @each $color-name, $color-list in map-get($colors, dark) { |
| 70 | + $color: nth($color-list, 1); |
| 71 | + --#{"" + $color-name}: #{"" + $color}; |
| 72 | + } |
| 73 | + |
| 74 | + &.light-theme { |
| 75 | + @each $color-name, $color-list in map-get($colors, light) { |
| 76 | + $color: nth($color-list, 1); |
| 77 | + --#{"" + $color-name}: #{"" + $color}; |
| 78 | + } |
| 79 | + } |
47 | 80 | } |
48 | 81 | } |
49 | 82 |
|
|
0 commit comments