Skip to content

Commit e9f64bf

Browse files
committed
dark mode
1 parent dfe54c4 commit e9f64bf

3 files changed

Lines changed: 107 additions & 21 deletions

File tree

site/css/gic.css

Lines changed: 94 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ img {
8585
}
8686

8787
/* Selected parts from: */
88-
/* GIC.css Version 1.1.0
88+
/* GIC.css Version 1.2.0
8989
* (c) Copyright Ariadne (me@aria.rip) 2026.
9090
* Made available under the MIT license */
9191
:root {
@@ -164,7 +164,6 @@ img {
164164
--black-tint-95: #f3f3f3;
165165
--white: #ffffff;
166166

167-
168167
--colour-brand: var(--blue);
169168

170169
--colour-text: var(--black);
@@ -196,6 +195,95 @@ img {
196195
--colour-surface-background: var(--blue-tint-95);
197196
--colour-surface-text: var(--black);
198197
--colour-surface-board: var(--blue-tint-50);
198+
--colour-button-text: var(--white);
199+
200+
/* Dark theme, from catpuccin mocha */
201+
@media (prefers-color-scheme: dark) {
202+
color-scheme: dark;
203+
--blue: #89b4fa;
204+
--blue-base: #89b4fa;
205+
--blue-tint-25: #6787bc;
206+
--blue-tint-50: #455a7d;
207+
--blue-tint-80: #1b2432;
208+
--blue-tint-95: #07090d;
209+
--blue-shade-10: #95bcfb;
210+
--blue-shade-25: #a7c7fb;
211+
--blue-shade-50: #c4dafd;
212+
--blue-shade-95: #f9fbff;
213+
--green: #a6e3a1;
214+
--green-tint-25: #7daa79;
215+
--green-tint-50: #537251;
216+
--green-tint-80: #212d20;
217+
--green-tint-95: #080b08;
218+
--green-shade-25: #bceab9;
219+
--green-shade-50: #d3f1d0;
220+
--teal: #94e2d5;
221+
--teal-tint-25: #6faaa0;
222+
--teal-tint-50: #4a716b;
223+
--teal-tint-80: #1e2d2b;
224+
--teal-tint-95: #070b0b;
225+
--teal-shade-25: #afe9e0;
226+
--teal-shade-50: #caf1ea;
227+
--purple: #cba6f7;
228+
--purple-tint-25: #987db9;
229+
--purple-tint-50: #66537c;
230+
--purple-tint-80: #292131;
231+
--purple-tint-95: #0a080c;
232+
--purple-shade-25: #d8bcf9;
233+
--purple-shade-50: #e5d3fb;
234+
--pink: #f5c2e7;
235+
--pink-tint-25: #b892ad;
236+
--pink-tint-50: #7b6174;
237+
--pink-tint-80: #31272e;
238+
--pink-tint-95: #0c0a0c;
239+
--pink-shade-25: #f8d1ed;
240+
--pink-shade-50: #fae1f3;
241+
--red: #f38ba8;
242+
--red-tint-25: #b6687e;
243+
--red-tint-50: #7a4654;
244+
--red-tint-80: #311c22;
245+
--red-tint-95: #0c0708;
246+
--red-shade-25: #f6a8be;
247+
--red-shade-50: #f9c5d4;
248+
--orange: #fab387;
249+
--orange-tint-25: #bc8665;
250+
--orange-tint-50: #7d5a44;
251+
--orange-tint-80: #32241b;
252+
--orange-tint-95: #0d0907;
253+
--orange-shade-25: #fbc6a5;
254+
--orange-shade-50: #fdd9c3;
255+
--yellow: #f9e2af;
256+
--yellow-tint-25: #bbaa83;
257+
--yellow-tint-50: #7d7158;
258+
--yellow-tint-80: #322d23;
259+
--yellow-tint-95: #0c0b09;
260+
--yellow-shade-25: #fbe9c3;
261+
--yellow-shade-50: #fcf1d7;
262+
--brown: #f2cdcd;
263+
--brown-tint-25: #b69a9a;
264+
--brown-tint-50: #796767;
265+
--brown-tint-95: #0c0a0a;
266+
--black: #1e1e2e;
267+
--black-tint-25: #171723;
268+
--black-tint-50: #0f0f17;
269+
--black-tint-80: #060609;
270+
--black-tint-95: #020202;
271+
--white: #cdd6f4;
272+
--white-shade-25: #9aa1b7;
273+
274+
--colour-text: var(--white);
275+
--colour-body-background: var(--black);
276+
--colour-text-secondary: var(--white-shade-25);
277+
--colour-border: var(--white);
278+
--colour-input-border: var(--white);
279+
--colour-focus-text: var(--white);
280+
--colour-link-active: var(--white);
281+
--colour-surface-background: var(--blue-tint-80);
282+
--colour-surface-text: #fff;
283+
--colour-surface-board: var(--blue-tint-50);
284+
--colour-button-text: var(--black);
285+
}
286+
199287

200288
--width-input-border: 2px;
201289
--width-form-group-error: 5px;
@@ -271,6 +359,8 @@ img {
271359
/* 8e 8eeee8 8eee8 8 8 8e 8eee8e 8eee8 8eee8 8eee8 8eeee8 */
272360
/* 88 88 88 8 8 88 "8 88 8 88 8 88 88 8 88 */
273361
/* 88 88 88 8eee8 88ee8 88 8 88 8 88 88 8 88 */
362+
html { background: var(--colour-body-background); }
363+
274364
body {
275365
font-family: var(--font-variable);
276366
font-weight: var(--font-weight-normal);
@@ -361,17 +451,6 @@ a {
361451
}
362452
}
363453

364-
&.inverse {
365-
&,
366-
&:visited {
367-
color: var(--white);
368-
}
369-
370-
&:focus {
371-
color: var(--colour-focus-text);
372-
}
373-
}
374-
375454
&.error {
376455
&,
377456
&:visited {
@@ -469,14 +548,15 @@ hr.visible { border-bottom: 1px solid var(--colour-border) }
469548

470549
/* utilities */
471550
.break-word { word-break: break-word; }
551+
472552
/* ____ ____ ____ _ _ ____ */
473553
/* |___ | | |__/ |\/| [__ */
474554
/* | |__| | \ | | ___] */
475555
/* */
476556
button {
477557
--button-bg: var(--green-shade-25);
478558
--button-bg-darker: var(--green-shade-50);
479-
--text: var(--white);
559+
--text: var(--colour-button-text);
480560

481561
text-decoration: none;
482562
font-weight: var(--font-weight-normal);
@@ -519,10 +599,6 @@ button {
519599
--button-bg: var(--red-shade-25);
520600
--button-bg-darker: var(--red-shade-50);
521601
}
522-
&.inverse {
523-
--button-bg: var(--blue-tint-80);
524-
--button-bg-darker: var(--blue-tint-95);
525-
}
526602
&[disabled] {
527603
opacity: .5;
528604
cursor: notallowed;

site/img/logo.svg

Lines changed: 12 additions & 2 deletions
Loading

site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</head>
66
<body>
77
<div class="jumbotron">
8-
<img id="logo" alt="Edinburgh Hacklab Logo" src="img/logo.svg"/>
8+
<img id="logo" alt="Edinburgh Hacklab Logo" src="img/logo.svg" />
99
<h1>Edinburgh Hacklab</h1>
1010
</div>
1111
<div>

0 commit comments

Comments
 (0)