forked from
quillmatiq.com/augment
Fork of Chiri for Astro for my blog
1@import './fonts.css';
2@import './post.css';
3
4:root {
5 /* Min Content Width */
6 --content-width: 25rem;
7
8 /* Typography */
9 --sans: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
10 --serif: Besley, Baskerville, Georgia, 'Times New Roman', Times, serif;
11 --mono: 'SF Mono', SFMono-Regular, monospace;
12
13 --font-size-s: 0.8125rem;
14 --font-size-m: 0.9375rem;
15 --font-size-l: 1.0625rem;
16
17 --font-weight-light: 350;
18 --font-weight-regular: 400;
19 --font-weight-bold: 500;
20
21 --spacing-s: -0.08em;
22 --spacing-m: -0.02em;
23
24 /* Light Mode Colors (Default) */
25 --bg: #ffffff;
26 --text-primary: rgba(0, 0, 0, 0.85);
27 --text-secondary: rgba(0, 0, 0, 0.4);
28 --text-tertiary: rgba(0, 0, 0, 0.24);
29 --border: rgba(0, 0, 0, 0.1);
30 --selection: rgba(0, 0, 0, 0.08);
31 --code-bg: rgba(0, 0, 0, 0.04);
32 --mark: #f3ffc4;
33
34 /* Syntax Theme */
35 --astro-code-foreground: rgba(0, 0, 0, 0.85);
36 --astro-code-background: rgba(0, 0, 0, 0.03);
37 --astro-code-token-constant: rgba(0, 0, 0, 0.85);
38 --astro-code-token-string: rgba(0, 0, 0, 0.85);
39 --astro-code-token-comment: rgba(0, 0, 0, 0.35);
40 --astro-code-token-keyword: rgba(0, 0, 0, 0.55);
41 --astro-code-token-parameter: rgba(0, 0, 0, 0.85);
42 --astro-code-token-function: rgba(0, 0, 0, 0.85);
43 --astro-code-token-string-expression: rgba(0, 0, 0, 0.55);
44 --astro-code-token-punctuation: rgba(0, 0, 0, 0.55);
45 --astro-code-token-link: rgba(0, 0, 0, 0.55);
46}
47
48/* Light Mode (Explicit) */
49html.light {
50 --bg: #ffffff;
51 --text-primary: rgba(0, 0, 0, 0.85);
52 --text-secondary: rgba(0, 0, 0, 0.4);
53 --text-tertiary: rgba(0, 0, 0, 0.24);
54 --border: rgba(0, 0, 0, 0.1);
55 --selection: rgba(0, 0, 0, 0.08);
56 --code-bg: rgba(0, 0, 0, 0.04);
57 --mark: #f3ffc4;
58
59 /* Syntax Theme */
60 --astro-code-foreground: rgba(0, 0, 0, 0.85);
61 --astro-code-background: rgba(0, 0, 0, 0.03);
62 --astro-code-token-constant: rgba(0, 0, 0, 0.85);
63 --astro-code-token-string: rgba(0, 0, 0, 0.85);
64 --astro-code-token-comment: rgba(0, 0, 0, 0.35);
65 --astro-code-token-keyword: rgba(0, 0, 0, 0.5);
66 --astro-code-token-parameter: rgba(0, 0, 0, 0.85);
67 --astro-code-token-function: rgba(0, 0, 0, 0.85);
68 --astro-code-token-string-expression: rgba(0, 0, 0, 0.55);
69 --astro-code-token-punctuation: rgba(0, 0, 0, 0.55);
70 --astro-code-token-link: rgba(0, 0, 0, 0.55);
71}
72
73/* Dark Mode (Explicit) */
74html.dark {
75 --bg: #1c1c1c;
76 --text-primary: rgba(255, 255, 255, 0.9);
77 --text-secondary: rgba(255, 255, 255, 0.4);
78 --text-tertiary: rgba(255, 255, 255, 0.24);
79 --border: rgba(255, 255, 255, 0.1);
80 --selection: rgba(255, 255, 255, 0.08);
81 --code-bg: rgba(255, 255, 255, 0.04);
82 --mark: #545b37;
83
84 /* Syntax Theme */
85 --astro-code-foreground: rgba(255, 255, 255, 0.9);
86 --astro-code-background: rgba(255, 255, 255, 0.03);
87 --astro-code-token-constant: rgba(255, 255, 255, 0.9);
88 --astro-code-token-string: rgba(255, 255, 255, 0.9);
89 --astro-code-token-comment: rgba(255, 255, 255, 0.35);
90 --astro-code-token-keyword: rgba(255, 255, 255, 0.55);
91 --astro-code-token-parameter: rgba(255, 255, 255, 0.9);
92 --astro-code-token-function: rgba(255, 255, 255, 0.9);
93 --astro-code-token-string-expression: rgba(255, 255, 255, 0.55);
94 --astro-code-token-punctuation: rgba(255, 255, 255, 0.55);
95 --astro-code-token-link: rgba(255, 255, 255, 0.55);
96}
97
98html {
99 background-color: var(--bg);
100 scroll-behavior: smooth;
101 scrollbar-gutter: stable;
102 overscroll-behavior-y: contain;
103 -webkit-overflow-scrolling: touch;
104 transition: background-color 0.2s ease-out;
105}
106
107body {
108 font-family: var(--sans);
109 font-feature-settings: 'ss03' 1;
110 font-size: var(--font-size-m);
111 line-height: 1.75;
112 color: var(--text-primary);
113 margin: 0;
114 min-height: 100vh;
115 display: flex;
116 flex-direction: column;
117 box-sizing: border-box;
118 letter-spacing: var(--spacing-m);
119 padding: 6rem 1.5rem 1.5rem 1.5rem;
120 overscroll-behavior-y: contain;
121 text-autospace: normal;
122 text-spacing-trim: space-first;
123 text-rendering: optimizeLegibility;
124 font-synthesis: none;
125 word-wrap: break-word;
126 overflow-wrap: break-word;
127}
128
129@media (max-width: 768px) {
130 body {
131 padding: 4rem 1.35rem 1.35rem 1.35rem;
132 }
133}
134
135@media (prefers-reduced-motion: reduce) {
136 * {
137 animation-duration: 0.01ms !important;
138 transition-duration: 0.01ms !important;
139 animation-iteration-count: 1 !important;
140 scroll-behavior: auto !important;
141 }
142}
143
144::selection {
145 background-color: var(--selection);
146}
147
148:focus:not(:focus-visible) {
149 outline: none;
150}
151
152:focus-visible {
153 outline: 1.5px dashed var(--text-tertiary);
154 border-radius: 0.25rem;
155}
156
157body[data-width] {
158 max-width: var(--content-width);
159}
160
161body[data-centered='true'] {
162 margin: 0 auto;
163}
164
165main {
166 flex: 1;
167 display: flex;
168 flex-direction: column;
169 box-sizing: border-box;
170}
171
172.date {
173 margin: 0;
174 font-weight: var(--font-weight-light);
175 color: var(--text-secondary);
176 opacity: 0.75;
177 flex-shrink: 0;
178 letter-spacing: var(--spacing-s);
179 font-variant-numeric: tabular-nums;
180 font-feature-settings:
181 'tnum' 1,
182 'zero' 0,
183 'cv01' 1,
184 'cv02' 1,
185 'calt' 1,
186 'ss03' 1,
187 'ordn' 1;
188}
189
190.date .month {
191 letter-spacing: var(--spacing-m);
192}
193
194.sr-only {
195 border: 0;
196 padding: 0;
197 margin: 0;
198 position: absolute !important;
199 height: 1px;
200 width: 1px;
201 overflow: hidden;
202 clip: rect(1px 1px 1px 1px);
203 clip: rect(1px, 1px, 1px, 1px);
204 clip-path: inset(50%);
205 white-space: nowrap;
206}