Repository navigation
Expand file tree
/
Copy pathglobals.css
More file actions
87 lines (74 loc) · 1.8 KB
/
Copy pathglobals.css
File metadata and controls
87 lines (74 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));
/*
Palette - a terminal reading of open water: neutral near-black/near-white
surfaces (no navy tint) with a phosphor-green readout accent and an amber
secondary, the way old green- and amber-phosphor terminals differed by
model. --tide and --lantern each swap to a darker shade in light mode
so they hold WCAG AA contrast against the near-white background.
*/
:root {
--tide: #157a4c;
--lantern: #92400e;
}
.dark {
--tide: #39e67d;
--lantern: #ffb454;
}
@theme inline {
--font-display: var(--font-fraunces);
--font-body: var(--font-sora);
--font-mono: var(--font-plex-mono);
--color-ink: #0a0c0a;
--color-foam: #f3f4ef;
--color-tide: var(--tide);
--color-lantern: var(--lantern);
--color-mist: #b6b7ae;
--color-slate: #43433c;
}
:root {
color-scheme: dark;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-body), system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
::selection {
background: color-mix(in srgb, var(--color-tide) 35%, transparent);
}
/* Smooth day/night switch - elements with their own transition-* utility
(hover states, expand/collapse) keep their own timing via specificity. */
*,
*::before,
*::after {
transition-property: background-color, border-color, color, fill, stroke;
transition-duration: 0.35s;
transition-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
transition: none !important;
}
}
/* Waves background canvas - see components/Waves.tsx */
.waves {
position: absolute;
top: 0;
left: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.waves-canvas {
display: block;
width: 100%;
height: 100%;
}