variables.css

  1/* Globals */
  2
  3:root {
  4  --color-scheme: light;
  5
  6  --logo-brightness: brightness(1);
  7
  8  --sidebar-width: 280px;
  9  --sidebar-resize-indicator-width: 0px;
 10  --sidebar-resize-indicator-space: 2px;
 11  --page-padding: 15px;
 12  --content-max-width: 690px;
 13  --menu-bar-height: 64px;
 14  --font: "IA Writer Quattro S", sans-serif;
 15  --title-font: "Lora", "Helvetica Neue", Helvetica, Arial, sans-serif;
 16  --mono-font:
 17    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono,
 18    Courier New, monospace;
 19  --code-font-size: 0.875em
 20    /* please adjust the ace font size accordingly in editor.js */;
 21
 22  --noise-opacity: 0.024;
 23  --bg: hsla(50, 25%, 96%);
 24  --fg: hsl(220, 13%, 34%);
 25  --title-color: hsl(220, 92%, 42%);
 26
 27  --border: hsl(220, 13%, 80%);
 28  --border-light: hsl(220, 13%, 90%);
 29  --border-hover: hsl(220, 13%, 70%);
 30
 31  --media-bg: hsl(50, 25%, 92%);
 32
 33  --sidebar-bg: hsla(50, 25%, 94%);
 34  --sidebar-fg: hsl(0, 0%, 0%);
 35  --sidebar-non-existant: #aaaaaa;
 36  --sidebar-active: hsl(220, 93%, 42%);
 37  --sidebar-active-bg: hsl(220, 93%, 42%, 0.1);
 38  --sidebar-mobile-shadow: 0px 16px 16px hsl(0, 0%, 0%, 0.1);
 39
 40  --divider: hsl(220, 50%, 45%, 0.1);
 41  --scrollbar: #8f8f8f;
 42
 43  --icons: #747474;
 44  --icons-hover: #000000;
 45  --icon-btn-bg-hover: hsl(220, 93%, 42%, 0.15);
 46
 47  --links: hsl(220, 92%, 42%);
 48  --link-line-decoration: hsl(220, 93%, 42%, 0.2);
 49  --link-line-decoration-hover: hsl(220, 93%, 42%, 0.5);
 50
 51  --full-contrast: #000;
 52
 53  --inline-code-color: #301900;
 54  --code-text: hsl(220, 13%, 10%);
 55  --code-bg: hsl(220, 93%, 42%, 0.1);
 56  --keybinding-bg: hsl(0, 0%, 94%);
 57
 58  --pre-bg: #fff;
 59  --pre-border: hsla(220, 93%, 42%, 0.3);
 60  --pre-shadow: hsla(220, 93%, 42%, 0.07);
 61
 62  --popover-bg: #fafafa;
 63  --popover-border: #cccccc;
 64  --popover-shadow:
 65    0 10px 15px -3px hsl(0, 0%, 0%, 0.1), 0 4px 6px -4px hsl(0, 0%, 0%, 0.1);
 66
 67  --theme-hover: #e6e6e6;
 68  --hover-section-title: hsl(50, 25%, 88%);
 69
 70  --quote-bg: hsl(197, 37%, 96%);
 71  --quote-border: hsl(197, 37%, 84%);
 72
 73  --warning-border: hsl(25, 100%, 85%);
 74  --warning-bg: hsl(42, 100%, 60%, 0.1);
 75  --warning-icon: hsl(42, 100%, 30%);
 76
 77  --table-header-bg: hsl(220, 50%, 90%, 0.4);
 78  --table-border-color: hsl(220, 93%, 42%, 0.15);
 79  --table-alternate-bg: hsl(220, 10%, 90%, 0.4);
 80
 81  --toc-link-underline: hsl(0, 0%, 0%, 0.1);
 82  --toc-link-underline-hover: hsl(0, 0%, 0%, 0.5);
 83
 84  --searchbar-border-color: #aaa;
 85  --searchbar-bg: #fafafa;
 86  --searchbar-fg: #000;
 87  --searchbar-shadow-color: #aaa;
 88  --searchresults-header-fg: #666;
 89  --searchresults-li-bg: #e4f2fe;
 90  --search-mark-bg: #a2cff5;
 91
 92  --download-btn-bg: hsl(220, 60%, 95%);
 93  --download-btn-bg-hover: hsl(220, 60%, 93%);
 94  --download-btn-color: hsl(220, 60%, 30%);
 95  --download-btn-border: hsla(220, 60%, 40%, 0.2);
 96  --download-btn-border-hover: hsla(220, 60%, 50%, 0.2);
 97  --download-btn-shadow: hsla(220, 40%, 60%, 0.1);
 98
 99  --search-btn-bg: hsl(220, 100%, 100%);
100  --search-btn-bg-hover: hsla(50, 25%, 97%);
101  --search-btn-border: hsl(220, 50%, 45%, 0.2);
102
103  --toast-bg: hsla(220, 93%, 98%);
104  --toast-border: hsla(220, 93%, 42%, 0.3);
105  --toast-border-success: hsla(120, 73%, 42%, 0.3);
106  --toast-border-error: hsla(0, 90%, 50%, 0.3);
107
108  --footer-btn-bg: hsl(220, 60%, 98%, 0.4);
109  --footer-btn-bg-hover: hsl(220, 60%, 93%, 0.5);
110  --footer-btn-border: hsla(220, 60%, 40%, 0.15);
111  --footer-btn-border-hover: hsla(220, 60%, 50%, 0.2);
112}
113
114.dark {
115  --color-scheme: dark;
116
117  --logo-brightness: brightness(2);
118
119  --noise-opacity: 0.012;
120  --bg: hsl(220, 13%, 7.5%);
121  --fg: hsl(220, 14%, 70%);
122  --title-color: hsl(220, 92%, 80%);
123
124  --border: hsl(220, 13%, 20%);
125  --border-light: hsl(220, 13%, 15%);
126  --border-hover: hsl(220, 13%, 40%);
127
128  --media-bg: hsl(220, 13%, 8%);
129
130  --sidebar-bg: hsl(220, 13%, 6.5%);
131  --sidebar-fg: hsl(220, 14%, 71%);
132  --sidebar-non-existant: #505254;
133  --sidebar-active: hsl(220, 92%, 75%);
134  --sidebar-active-bg: hsl(220, 93%, 42%, 0.25);
135  --sidebar-mobile-shadow: 0px 16px 16px hsl(0, 0%, 0%, 0.6);
136
137  --divider: hsl(220, 13%, 12%);
138  --scrollbar: hsl(220, 13%, 30%);
139
140  --icons: hsl(220, 14%, 71%);
141  --icons-hover: hsl(220, 14%, 90%);
142  --icon-btn-bg-hover: hsl(220, 93%, 42%, 0.4);
143
144  --links: hsl(220, 93%, 75%);
145  --link-line-decoration: hsl(220, 92%, 80%, 0.4);
146  --link-line-decoration-hover: hsl(220, 92%, 80%, 0.8);
147  --full-contrast: #fff;
148
149  --inline-code-color: hsl(40, 100%, 80%);
150  --code-text: hsl(220, 13%, 95%);
151  --code-bg: hsl(220, 93%, 50%, 0.2);
152  --keybinding-bg: hsl(0, 0%, 12%);
153
154  --pre-bg: hsl(220, 13%, 5%);
155  --pre-border: hsla(220, 93%, 70%, 0.3);
156  --pre-shadow: hsla(220, 93%, 70%, 0.1);
157
158  --popover-bg: hsl(220, 13%, 8%);
159  --popover-border: hsl(220, 13%, 20%);
160  --popover-shadow:
161    0 10px 15px -3px hsl(0, 0%, 0%, 0.1), 0 4px 6px -4px hsl(0, 0%, 0%, 0.1);
162
163  --theme-hover: hsl(220, 13%, 25%);
164  --hover-section-title: hsl(220, 13%, 11%);
165
166  --quote-bg: hsl(220, 13%, 25%, 0.4);
167  --quote-border: hsl(220, 13%, 32%, 0.5);
168
169  --table-border-color: hsl(220, 13%, 30%, 0.5);
170  --table-header-bg: hsl(220, 13%, 25%, 0.5);
171  --table-alternate-bg: hsl(220, 13%, 20%, 0.4);
172
173  --toc-link-underline: hsl(255, 100%, 100%, 0.1);
174  --toc-link-underline-hover: hsl(255, 100%, 100%, 0.4);
175
176  --warning-border: hsl(25, 100%, 85%, 0.2);
177  --warning-bg: hsl(42, 100%, 40%, 0.1);
178  --warning-icon: hsl(42, 100%, 80%);
179
180  --searchbar-border-color: hsl(220, 13%, 30%);
181  --searchbar-bg: hsl(220, 13%, 22%, 0.5);
182  --searchbar-fg: hsl(220, 14%, 71%);
183  --searchbar-shadow-color: hsl(220, 13%, 15%);
184  --searchresults-header-fg: hsl(220, 14%, 60%);
185  --searchresults-li-bg: hsl(220, 13%, 25%);
186  --search-mark-bg: hsl(220, 93%, 60%);
187
188  --download-btn-bg: hsl(220, 90%, 90%, 0.1);
189  --download-btn-bg-hover: hsl(220, 90%, 50%, 0.2);
190  --download-btn-color: hsl(220, 90%, 95%);
191  --download-btn-border: hsla(220, 90%, 80%, 0.2);
192  --download-btn-border-hover: hsla(220, 90%, 80%, 0.4);
193  --download-btn-shadow: hsla(220, 50%, 60%, 0.15);
194
195  --search-btn-bg: hsl(220, 90%, 90%, 0.05);
196  --search-btn-bg-hover: hsl(220, 90%, 90%, 0.1);
197  --search-btn-border: hsla(220, 90%, 80%, 0.1);
198
199  --toast-bg: hsla(220, 20%, 98%, 0.05);
200  --toast-border: hsla(220, 93%, 70%, 0.2);
201  --toast-border-success: hsla(120, 90%, 60%, 0.3);
202  --toast-border-error: hsla(0, 90%, 80%, 0.3);
203
204  --footer-btn-bg: hsl(220, 90%, 95%, 0.01);
205  --footer-btn-bg-hover: hsl(220, 90%, 50%, 0.05);
206  --footer-btn-border: hsla(220, 90%, 90%, 0.05);
207  --footer-btn-border-hover: hsla(220, 90%, 80%, 0.2);
208}