variables.css

  1/* Globals */
  2
  3:root {
  4  --color-scheme: light;
  5
  6  --logo-brightness: brightness(1);
  7
  8  --sidebar-width: 300px;
  9  --sidebar-resize-indicator-width: 0px;
 10  --sidebar-resize-indicator-space: 2px;
 11  --page-padding: 15px;
 12  --content-max-width: 750px;
 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: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
 17    Liberation Mono, Courier New, monospace;
 18  --code-font-size: 0.875em
 19    /* please adjust the ace font size accordingly in editor.js */;
 20
 21  --bg: hsla(50, 25%, 96%);
 22  --fg: hsl(220, 13%, 34%);
 23  --title-color: hsl(220, 92%, 42%);
 24
 25  --border: hsl(220, 13%, 80%);
 26  --border-light: hsl(220, 13%, 90%);
 27  --border-hover: hsl(220, 13%, 70%);
 28
 29  --sidebar-fg: hsl(0, 0%, 0%);
 30  --sidebar-non-existant: #aaaaaa;
 31  --sidebar-active: hsl(220, 93%, 42%);
 32  --sidebar-active-bg: hsl(220, 93%, 42%, 0.1);
 33
 34  --divider: hsl(220, 93%, 42%, 0.15);
 35  --scrollbar: #8f8f8f;
 36
 37  --icons: #747474;
 38  --icons-hover: #000000;
 39  --icon-btn-bg-hover: hsl(220, 93%, 42%, 0.15);
 40
 41  --links: hsl(220, 92%, 42%);
 42  --link-line-decoration: hsl(220, 93%, 42%, 0.2);
 43  --link-line-decoration-hover: hsl(220, 93%, 42%, 0.5);
 44
 45  --full-contrast: #000;
 46
 47  --inline-code-color: #301900;
 48  --code-text: hsl(220, 13%, 10%);
 49  --code-bg: hsl(220, 93%, 42%, 0.1);
 50  --keybinding-bg: hsl(0, 0%, 94%);
 51
 52  --pre-bg: #fff;
 53  --pre-border: hsla(220, 93%, 42%, 0.3);
 54  --pre-shadow: hsla(220, 93%, 42%, 0.07);
 55
 56  --theme-popup-bg: #fafafa;
 57  --theme-popup-border: #cccccc;
 58  --theme-hover: #e6e6e6;
 59
 60  --quote-bg: hsl(197, 37%, 96%);
 61  --quote-border: hsl(197, 37%, 84%);
 62
 63  --warning-border: hsl(25, 100%, 85%);
 64  --warning-bg: hsl(42, 100%, 60%, 0.1);
 65  --warning-icon: hsl(42, 100%, 30%);
 66
 67  --table-header-bg: hsl(220, 50%, 90%, 0.4);
 68  --table-border-color: hsl(220, 93%, 42%, 0.15);
 69  --table-alternate-bg: hsl(220, 10%, 90%, 0.4);
 70
 71  --searchbar-border-color: #aaa;
 72  --searchbar-bg: #fafafa;
 73  --searchbar-fg: #000;
 74  --searchbar-shadow-color: #aaa;
 75  --searchresults-header-fg: #666;
 76  --searchresults-border-color: #888;
 77  --searchresults-li-bg: #e4f2fe;
 78  --search-mark-bg: #a2cff5;
 79
 80  --download-btn-bg: hsl(220, 60%, 95%);
 81  --download-btn-bg-hover: hsl(220, 60%, 93%);
 82  --download-btn-color: hsl(220, 60%, 30%);
 83  --download-btn-border: hsla(220, 60%, 40%, 0.2);
 84  --download-btn-border-hover: hsla(220, 60%, 50%, 0.2);
 85  --download-btn-shadow: hsla(220, 40%, 60%, 0.1);
 86}
 87
 88.dark {
 89  --color-scheme: dark;
 90
 91  --logo-brightness: brightness(2);
 92
 93  --bg: hsl(220, 13%, 10%);
 94  --fg: hsl(220, 14%, 70%);
 95  --title-color: hsl(220, 92%, 80%);
 96
 97  --border: hsl(220, 13%, 20%);
 98  --border-light: hsl(220, 13%, 90%);
 99  --border-hover: hsl(220, 13%, 40%);
100
101  --sidebar-bg: hsl(220, 13%, 10%);
102  --sidebar-fg: hsl(220, 14%, 71%);
103  --sidebar-non-existant: #505254;
104  --sidebar-active: hsl(220, 92%, 75%);
105  --sidebar-active-bg: hsl(220, 93%, 42%, 0.25);
106
107  --divider: hsl(220, 13%, 20%);
108  --scrollbar: hsl(220, 13%, 30%);
109
110  --icons: hsl(220, 14%, 71%);
111  --icons-hover: hsl(220, 14%, 90%);
112  --icon-btn-bg-hover: hsl(220, 93%, 42%, 0.4);
113
114  --links: hsl(220, 93%, 75%);
115  --link-line-decoration: hsl(220, 92%, 80%, 0.4);
116  --link-line-decoration-hover: hsl(220, 92%, 80%, 0.8);
117  --full-contrast: #fff;
118
119  --inline-code-color: hsl(40, 100%, 80%);
120  --code-text: hsl(220, 13%, 95%);
121  --code-bg: hsl(220, 93%, 50%, 0.2);
122  --keybinding-bg: hsl(0, 0%, 12%);
123
124  --pre-bg: hsl(220, 13%, 5%);
125  --pre-border: hsla(220, 93%, 70%, 0.3);
126  --pre-shadow: hsla(220, 93%, 70%, 0.1);
127
128  --theme-popup-bg: hsl(220, 13%, 15%);
129  --theme-popup-border: hsl(220, 13%, 20%);
130  --theme-hover: hsl(220, 13%, 25%);
131
132  --quote-bg: hsl(220, 13%, 25%, 0.4);
133  --quote-border: hsl(220, 13%, 32%, 0.5);
134
135  --table-border-color: hsl(220, 13%, 30%, 0.5);
136  --table-header-bg: hsl(220, 13%, 25%, 0.5);
137  --table-alternate-bg: hsl(220, 13%, 20%, 0.4);
138
139  --warning-border: hsl(25, 100%, 85%, 0.2);
140  --warning-bg: hsl(42, 100%, 40%, 0.1);
141  --warning-icon: hsl(42, 100%, 80%);
142
143  --searchbar-border-color: hsl(220, 13%, 30%);
144  --searchbar-bg: hsl(220, 13%, 22%, 0.5);
145  --searchbar-fg: hsl(220, 14%, 71%);
146  --searchbar-shadow-color: hsl(220, 13%, 15%);
147  --searchresults-header-fg: hsl(220, 14%, 60%);
148  --searchresults-border-color: hsl(220, 13%, 30%);
149  --searchresults-li-bg: hsl(220, 13%, 25%);
150  --search-mark-bg: hsl(220, 93%, 60%);
151
152  --download-btn-bg: hsl(220, 90%, 90%, 0.1);
153  --download-btn-bg-hover: hsl(220, 90%, 50%, 0.2);
154  --download-btn-color: hsl(220, 90%, 95%);
155  --download-btn-border: hsla(220, 90%, 80%, 0.2);
156  --download-btn-border-hover: hsla(220, 90%, 80%, 0.4);
157  --download-btn-shadow: hsla(220, 50%, 60%, 0.15);
158}