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-border-color: #888;
 90  --searchresults-li-bg: #e4f2fe;
 91  --search-mark-bg: #a2cff5;
 92
 93  --download-btn-bg: hsl(220, 60%, 95%);
 94  --download-btn-bg-hover: hsl(220, 60%, 93%);
 95  --download-btn-color: hsl(220, 60%, 30%);
 96  --download-btn-border: hsla(220, 60%, 40%, 0.2);
 97  --download-btn-border-hover: hsla(220, 60%, 50%, 0.2);
 98  --download-btn-shadow: hsla(220, 40%, 60%, 0.1);
 99
100  --search-btn-bg: hsl(220, 100%, 100%);
101  --search-btn-bg-hover: hsla(50, 25%, 97%);
102  --search-btn-border: hsl(220, 50%, 45%, 0.2);
103
104  --toast-bg: hsla(220, 93%, 98%);
105  --toast-border: hsla(220, 93%, 42%, 0.3);
106  --toast-border-success: hsla(120, 73%, 42%, 0.3);
107  --toast-border-error: hsla(0, 90%, 50%, 0.3);
108
109  --footer-btn-bg: hsl(220, 60%, 98%, 0.4);
110  --footer-btn-bg-hover: hsl(220, 60%, 93%, 0.5);
111  --footer-btn-border: hsla(220, 60%, 40%, 0.15);
112  --footer-btn-border-hover: hsla(220, 60%, 50%, 0.2);
113}
114
115.dark {
116  --color-scheme: dark;
117
118  --logo-brightness: brightness(2);
119
120  --noise-opacity: 0.012;
121  --bg: hsl(220, 13%, 7.5%);
122  --fg: hsl(220, 14%, 70%);
123  --title-color: hsl(220, 92%, 80%);
124
125  --border: hsl(220, 13%, 20%);
126  --border-light: hsl(220, 13%, 15%);
127  --border-hover: hsl(220, 13%, 40%);
128
129  --media-bg: hsl(220, 13%, 8%);
130
131  --sidebar-bg: hsl(220, 13%, 6.5%);
132  --sidebar-fg: hsl(220, 14%, 71%);
133  --sidebar-non-existant: #505254;
134  --sidebar-active: hsl(220, 92%, 75%);
135  --sidebar-active-bg: hsl(220, 93%, 42%, 0.25);
136  --sidebar-mobile-shadow: 0px 16px 16px hsl(0, 0%, 0%, 0.6);
137
138  --divider: hsl(220, 13%, 12%);
139  --scrollbar: hsl(220, 13%, 30%);
140
141  --icons: hsl(220, 14%, 71%);
142  --icons-hover: hsl(220, 14%, 90%);
143  --icon-btn-bg-hover: hsl(220, 93%, 42%, 0.4);
144
145  --links: hsl(220, 93%, 75%);
146  --link-line-decoration: hsl(220, 92%, 80%, 0.4);
147  --link-line-decoration-hover: hsl(220, 92%, 80%, 0.8);
148  --full-contrast: #fff;
149
150  --inline-code-color: hsl(40, 100%, 80%);
151  --code-text: hsl(220, 13%, 95%);
152  --code-bg: hsl(220, 93%, 50%, 0.2);
153  --keybinding-bg: hsl(0, 0%, 12%);
154
155  --pre-bg: hsl(220, 13%, 5%);
156  --pre-border: hsla(220, 93%, 70%, 0.3);
157  --pre-shadow: hsla(220, 93%, 70%, 0.1);
158
159  --popover-bg: hsl(220, 13%, 8%);
160  --popover-border: hsl(220, 13%, 20%);
161  --popover-shadow:
162    0 10px 15px -3px hsl(0, 0%, 0%, 0.1), 0 4px 6px -4px hsl(0, 0%, 0%, 0.1);
163
164  --theme-hover: hsl(220, 13%, 25%);
165  --hover-section-title: hsl(220, 13%, 11%);
166
167  --quote-bg: hsl(220, 13%, 25%, 0.4);
168  --quote-border: hsl(220, 13%, 32%, 0.5);
169
170  --table-border-color: hsl(220, 13%, 30%, 0.5);
171  --table-header-bg: hsl(220, 13%, 25%, 0.5);
172  --table-alternate-bg: hsl(220, 13%, 20%, 0.4);
173
174  --toc-link-underline: hsl(255, 100%, 100%, 0.1);
175  --toc-link-underline-hover: hsl(255, 100%, 100%, 0.4);
176
177  --warning-border: hsl(25, 100%, 85%, 0.2);
178  --warning-bg: hsl(42, 100%, 40%, 0.1);
179  --warning-icon: hsl(42, 100%, 80%);
180
181  --searchbar-border-color: hsl(220, 13%, 30%);
182  --searchbar-bg: hsl(220, 13%, 22%, 0.5);
183  --searchbar-fg: hsl(220, 14%, 71%);
184  --searchbar-shadow-color: hsl(220, 13%, 15%);
185  --searchresults-header-fg: hsl(220, 14%, 60%);
186  --searchresults-border-color: hsl(220, 13%, 30%);
187  --searchresults-li-bg: hsl(220, 13%, 25%);
188  --search-mark-bg: hsl(220, 93%, 60%);
189
190  --download-btn-bg: hsl(220, 90%, 90%, 0.1);
191  --download-btn-bg-hover: hsl(220, 90%, 50%, 0.2);
192  --download-btn-color: hsl(220, 90%, 95%);
193  --download-btn-border: hsla(220, 90%, 80%, 0.2);
194  --download-btn-border-hover: hsla(220, 90%, 80%, 0.4);
195  --download-btn-shadow: hsla(220, 50%, 60%, 0.15);
196
197  --search-btn-bg: hsl(220, 90%, 90%, 0.05);
198  --search-btn-bg-hover: hsl(220, 90%, 90%, 0.1);
199  --search-btn-border: hsla(220, 90%, 80%, 0.1);
200
201  --toast-bg: hsla(220, 20%, 98%, 0.05);
202  --toast-border: hsla(220, 93%, 70%, 0.2);
203  --toast-border-success: hsla(120, 90%, 60%, 0.3);
204  --toast-border-error: hsla(0, 90%, 80%, 0.3);
205
206  --footer-btn-bg: hsl(220, 90%, 95%, 0.01);
207  --footer-btn-bg-hover: hsl(220, 90%, 50%, 0.05);
208  --footer-btn-border: hsla(220, 90%, 90%, 0.05);
209  --footer-btn-border-hover: hsla(220, 90%, 80%, 0.2);
210}