|
2 | 2 | @tailwind components; |
3 | 3 | @tailwind utilities; |
4 | 4 |
|
| 5 | +:root { |
| 6 | + --brand-primary-rgb: 0 173 228; |
| 7 | + --brand-primary: rgb(var(--brand-primary-rgb)); |
| 8 | + --brand-link-rgb: 23 79 169; |
| 9 | + --brand-link: rgb(var(--brand-link-rgb)); |
| 10 | +} |
| 11 | + |
5 | 12 | @font-face { |
6 | 13 | font-family: 'Agave'; |
7 | 14 | src: url('/font/Agave-Regular.ttf') format('truetype'); |
|
18 | 25 | font-display: swap; |
19 | 26 | } |
20 | 27 |
|
| 28 | +@font-face { |
| 29 | + font-family: 'Degular Display'; |
| 30 | + src: url('/font/DegularDisplay-Regular.otf') format('opentype'); |
| 31 | + font-weight: 400; |
| 32 | + font-style: normal; |
| 33 | + font-display: swap; |
| 34 | +} |
| 35 | + |
21 | 36 | @layer components { |
22 | 37 | .prose :where(code, pre, kbd, samp) { |
23 | 38 | @apply font-mono; |
|
66 | 81 | } |
67 | 82 |
|
68 | 83 | .prose :where(h2[id], h3[id], h4[id], h5[id], h6[id]):hover { |
69 | | - @apply underline decoration-zinc-300 underline-offset-4 dark:decoration-zinc-700; |
| 84 | + text-decoration: underline; |
| 85 | + text-decoration-thickness: from-font; |
| 86 | + text-underline-offset: 4px; |
| 87 | + text-decoration-color: rgb(var(--brand-primary-rgb) / 0.55); |
70 | 88 | } |
71 | 89 |
|
72 | 90 | .openai-prose { |
73 | 91 | @apply prose prose-zinc dark:prose-invert; |
74 | 92 | } |
75 | 93 |
|
76 | 94 | .openai-prose { |
77 | | - font-size: 17px; |
| 95 | + font-size: 16.5px; |
78 | 96 | line-height: 1.75; |
79 | 97 | } |
80 | 98 |
|
|
119 | 137 |
|
120 | 138 | .openai-prose :where(a):not(:where(.not-prose, .not-prose *)) { |
121 | 139 | @apply no-underline; |
122 | | - color: #174FA9; |
123 | | - border-bottom: 1px solid rgba(23, 79, 169, 0.35); |
| 140 | + color: rgb(var(--brand-link-rgb) / 1); |
| 141 | + border-bottom: 1px solid rgb(var(--brand-link-rgb) / 0.35); |
124 | 142 | transition: border-color 150ms ease, color 150ms ease; |
125 | 143 | } |
126 | 144 |
|
127 | 145 | .openai-prose :where(a:hover):not(:where(.not-prose, .not-prose *)) { |
128 | | - color: #174FA9; |
129 | | - border-bottom-color: #174FA9; |
| 146 | + color: rgb(var(--brand-link-rgb) / 1); |
| 147 | + border-bottom-color: rgb(var(--brand-link-rgb) / 1); |
130 | 148 | } |
131 | 149 |
|
132 | 150 | .openai-prose :where(.dark a):not(:where(.not-prose, .not-prose *)) { |
133 | | - color: #174FA9; |
134 | | - border-bottom-color: rgba(23, 79, 169, 0.45); |
| 151 | + color: rgb(var(--brand-link-rgb) / 1); |
| 152 | + border-bottom-color: rgb(var(--brand-link-rgb) / 0.45); |
135 | 153 | } |
136 | 154 |
|
137 | 155 | .openai-prose :where(.dark a:hover):not(:where(.not-prose, .not-prose *)) { |
138 | | - color: #174FA9; |
139 | | - border-bottom-color: #174FA9; |
| 156 | + color: rgb(var(--brand-link-rgb) / 1); |
| 157 | + border-bottom-color: rgb(var(--brand-link-rgb) / 1); |
140 | 158 | } |
141 | 159 |
|
142 | 160 | .openai-prose :where(pre):not(:where(.not-prose, .not-prose *)) { |
|
214 | 232 | @apply scroll-smooth; |
215 | 233 | } |
216 | 234 |
|
| 235 | + ::selection { |
| 236 | + background: rgb(var(--brand-primary-rgb) / 0.25); |
| 237 | + } |
| 238 | + |
| 239 | + :where(a, button, input, textarea, select, summary):focus-visible { |
| 240 | + outline: 2px solid rgb(var(--brand-primary-rgb) / 0.75); |
| 241 | + outline-offset: 3px; |
| 242 | + } |
| 243 | + |
217 | 244 | :where(h1, h2, h3, h4, h5, h6) { |
218 | | - font-family: "HAL Magic High", ui-sans-serif, system-ui, sans-serif; |
219 | | - letter-spacing: 0.3px; |
| 245 | + font-family: "Degular Display", "Mona Sans", ui-sans-serif, system-ui, sans-serif; |
| 246 | + letter-spacing: 1px; |
220 | 247 | } |
221 | 248 |
|
222 | 249 | .font-hal { |
223 | | - font-family: "HAL Magic High", ui-sans-serif, system-ui, sans-serif; |
224 | | - letter-spacing: 0.3px; |
| 250 | + font-family: "Degular Display", "Mona Sans", ui-sans-serif, system-ui, sans-serif; |
| 251 | + letter-spacing: 1px; |
225 | 252 | } |
226 | 253 |
|
227 | 254 | :where(h1, h2, h3, h4, h5, h6, strong, b) { |
|
240 | 267 | @apply bg-zinc-50 text-zinc-900 antialiased dark:bg-zinc-950 dark:text-zinc-50; |
241 | 268 | font-size: 16.5px; |
242 | 269 | line-height: revert; |
| 270 | + font-weight: 450; |
243 | 271 | font-family: "Mona Sans", ui-sans-serif, system-ui, sans-serif; |
244 | 272 | } |
245 | 273 |
|
246 | 274 | a { |
247 | | - color: #174FA9; |
| 275 | + color: rgb(var(--brand-link-rgb) / 1); |
248 | 276 | @apply underline decoration-zinc-300 underline-offset-4 dark:decoration-zinc-700; |
249 | 277 | } |
250 | 278 |
|
251 | 279 | a:hover { |
252 | | - color: #174FA9; |
| 280 | + color: rgb(var(--brand-link-rgb) / 1); |
253 | 281 | @apply decoration-zinc-900 dark:decoration-zinc-200; |
254 | 282 | } |
255 | 283 | } |
|
264 | 292 | } |
265 | 293 |
|
266 | 294 | :where(h1, h2, h3, h4, h5, h6) { |
267 | | - letter-spacing: 0.3px !important; |
| 295 | + letter-spacing: 1px !important; |
268 | 296 | } |
269 | 297 |
|
270 | 298 | .font-hal { |
271 | | - letter-spacing: 0.3px !important; |
| 299 | + letter-spacing: 1px !important; |
272 | 300 | } |
273 | 301 |
|
274 | 302 | .tracking-tight.font-hal { |
275 | | - letter-spacing: 0.3px !important; |
| 303 | + letter-spacing: 1px !important; |
276 | 304 | } |
277 | 305 | } |
0 commit comments