1010 padding : 0 ;
1111}
1212
13+ :root {
14+ /* Let the UA pick correct form controls, scrollbars, etc. */
15+ color-scheme : light dark ;
16+
17+ /* Typography */
18+ --font-sans : " Inter" , -apple-system , BlinkMacSystemFont, " Segoe UI" , Roboto, " Helvetica Neue" , Arial , sans-serif ;
19+ --font-mono : " Source Code Pro" , ui-monospace , SFMono- Regular, " SF Mono" , Menlo, Consolas, monospace ;
20+
21+ /* Theme (light) */
22+ --c-bg : #f6f7fb ;
23+ --c-surface : #ffffff ;
24+ --c-surface-rgb : 255 , 255 , 255 ;
25+ --c-surface-2 : #f6f7fb ;
26+ --c-surface-2-rgb : 246 , 247 , 251 ;
27+ --c-text : #0b1220 ;
28+ --c-text-rgb : 11 , 18 , 32 ;
29+ --c-muted : #475569 ;
30+ --c-faint : #6b7280 ;
31+
32+ --c-border : rgba (11 , 18 , 32 , 0.12 );
33+ --c-border-strong : rgba (11 , 18 , 32 , 0.18 );
34+
35+ --c-accent : #2563eb ;
36+ --c-accent-rgb : 37 , 99 , 235 ;
37+ --c-accent-hover : #1d4ed8 ;
38+ --c-accent-2 : #06b6d4 ;
39+ --c-accent-2-rgb : 6 , 182 , 212 ;
40+
41+ --shadow-sm : 0 1px 0 rgba (11 , 18 , 32 , 0.06 ), 0 10px 24px rgba (11 , 18 , 32 , 0.06 );
42+ --shadow-md : 0 14px 40px rgba (11 , 18 , 32 , 0.12 );
43+ --shadow-lg : 0 26px 72px rgba (11 , 18 , 32 , 0.18 );
44+
45+ --bg-grid-alpha : 0.035 ;
46+ --bg-glow-alpha : 0.14 ;
47+ }
48+
49+ @media (prefers-color-scheme : dark ) {
50+ :root {
51+ --c-bg : #050711 ;
52+ --c-surface : #0b1220 ;
53+ --c-surface-rgb : 11 , 18 , 32 ;
54+ --c-surface-2 : #0f172a ;
55+ --c-surface-2-rgb : 15 , 23 , 42 ;
56+ --c-text : #e5e7eb ;
57+ --c-text-rgb : 229 , 231 , 235 ;
58+ --c-muted : #cbd5e1 ;
59+ --c-faint : #94a3b8 ;
60+
61+ --c-border : rgba (229 , 231 , 235 , 0.12 );
62+ --c-border-strong : rgba (229 , 231 , 235 , 0.18 );
63+
64+ --c-accent : #60a5fa ;
65+ --c-accent-rgb : 96 , 165 , 250 ;
66+ --c-accent-hover : #93c5fd ;
67+ --c-accent-2 : #22d3ee ;
68+ --c-accent-2-rgb : 34 , 211 , 238 ;
69+
70+ --shadow-sm : 0 1px 0 rgba (0 , 0 , 0 , 0.35 ), 0 10px 28px rgba (0 , 0 , 0 , 0.45 );
71+ --shadow-md : 0 18px 56px rgba (0 , 0 , 0 , 0.55 );
72+ --shadow-lg : 0 28px 84px rgba (0 , 0 , 0 , 0.68 );
73+
74+ --bg-grid-alpha : 0.05 ;
75+ --bg-glow-alpha : 0.10 ;
76+ }
77+ }
78+
1379html {
1480 font-size : 16px ;
1581 -webkit-font-smoothing : antialiased ;
@@ -19,16 +85,18 @@ html {
1985}
2086
2187body {
22- font-family : $ font-stack ;
88+ font-family : var ( -- font-sans ) ;
2389 font-size : $font-size-body ;
2490 line-height : $line-height-relaxed ;
25- color : $color-black ;
26- background-color : $color-white ;
91+ color : var ( --c-text ) ;
92+ background-color : var ( --c-bg ) ;
2793 background-image :
28- radial-gradient (1000px 520px at 18% -10% , rgba ($color-accent-2 , 0.18 ) 0% , rgba ($color-white , 0 ) 60% ),
29- radial-gradient (1100px 560px at 85% -18% , rgba ($color-accent , 0.18 ) 0% , rgba ($color-white , 0 ) 58% ),
30- radial-gradient (900px 520px at 55% 0% , rgba ($color-accent , 0.06 ) 0% , rgba ($color-white , 0 ) 72% );
31- background-repeat : no-repeat ;
94+ radial-gradient (1000px 520px at 18% -10% , rgba (var (--c-accent-2-rgb ), var (--bg-glow-alpha )) 0% , rgba (var (--c-surface-rgb ), 0 ) 60% ),
95+ radial-gradient (1100px 560px at 85% -18% , rgba (var (--c-accent-rgb ), var (--bg-glow-alpha )) 0% , rgba (var (--c-surface-rgb ), 0 ) 58% ),
96+ linear-gradient (to right , rgba (var (--c-text-rgb ), var (--bg-grid-alpha )) 1px , transparent 1px ),
97+ linear-gradient (to bottom , rgba (var (--c-text-rgb ), var (--bg-grid-alpha )) 1px , transparent 1px );
98+ background-size : auto , auto , 32px 32px , 32px 32px ;
99+ background-position : 0 0 , 0 0 , 0 0 , 0 0 ;
32100 text-rendering : optimizeLegibility ;
33101 min-height : 100vh ;
34102 display : flex ;
@@ -61,7 +129,7 @@ ul, ol {
61129
62130// Selection
63131::selection {
64- background-color : rgba ($color- accent , 0.2 );
132+ background-color : rgba (var ( --c- accent-rgb ) , 0.22 );
65133}
66134
67135// Focus styles for accessibility
@@ -96,7 +164,7 @@ html:focus-within {
96164 left : $space-2 ;
97165 top : $space-2 ;
98166 padding : 10px 14px ;
99- background-color : $color-black ;
167+ background-color : $color-accent ;
100168 color : $color-white ;
101169 border-radius : $radius-md ;
102170 transform : translateY (-160% );
0 commit comments