| 1 | @import "tailwindcss"; |
| 2 | @import "tw-animate-css"; |
| 3 | @import "shadcn/tailwind.css"; |
| 4 | |
| 5 | @custom-variant dark (&:is(.dark *)); |
| 6 | |
| 7 | @theme inline { |
| 8 | --color-background: var(--background |
| 9 | --color-foreground: var(--foreground |
| 10 | --font-sans: var(--font-geist-sans |
| 11 | --font-mono: var(--font-geist-mono |
| 12 | --font-heading: var(--font-geist-sans |
| 13 | --color-sidebar-ring: var(--sidebar-ring |
| 14 | --color-sidebar-border: var(--sidebar-border |
| 15 | --color-sidebar-accent-foreground: var(--sidebar-accent-foreground |
| 16 | --color-sidebar-accent: var(--sidebar-accent |
| 17 | --color-sidebar-primary-foreground: var(--sidebar-primary-foreground |
| 18 | --color-sidebar-primary: var(--sidebar-primary |
| 19 | --color-sidebar-foreground: var(--sidebar-foreground |
| 20 | --color-sidebar: var(--sidebar |
| 21 | --color-chart-5: var(--chart-5 |
| 22 | --color-chart-4: var(--chart-4 |
| 23 | --color-chart-3: var(--chart-3 |
| 24 | --color-chart-2: var(--chart-2 |
| 25 | --color-chart-1: var(--chart-1 |
| 26 | --color-ring: var(--ring |
| 27 | --color-input: var(--input |
| 28 | --color-border: var(--border |
| 29 | --color-destructive: var(--destructive |
| 30 | --color-accent-foreground: var(--accent-foreground |
| 31 | --color-accent: var(--accent |
| 32 | --color-muted-foreground: var(--muted-foreground |
| 33 | --color-muted: var(--muted |
| 34 | --color-secondary-foreground: var(--secondary-foreground |
| 35 | --color-secondary: var(--secondary |
| 36 | --color-primary-foreground: var(--primary-foreground |
| 37 | --color-primary: var(--primary |
| 38 | --color-popover-foreground: var(--popover-foreground |
| 39 | --color-popover: var(--popover |
| 40 | --color-card-foreground: var(--card-foreground |
| 41 | --color-card: var(--card |
| 42 | --radius-sm: calc(var |
| 43 | --radius-md: calc(var |
| 44 | --radius-lg: var(--radius |
| 45 | --radius-xl: calc(var |
| 46 | --radius-2xl: calc(var |
| 47 | --radius-3xl: calc(var |
| 48 | --radius-4xl: calc(var |
| 49 | } |
| 50 | |
| 51 | :root { |
| 52 | /* Lavender, light. Surfaces stay near-neutral; the hue lives in the accent. */ |
| 53 | --background: oklch(0.99 |
| 54 | --foreground: oklch(0.2 |
| 55 | --card: oklch(1 |
| 56 | --card-foreground: oklch(0.2 |
| 57 | --popover: oklch(1 |
| 58 | --popover-foreground: oklch(0.2 |
| 59 | --primary: oklch(0.53 |
| 60 | --primary-foreground: oklch(0.985 |
| 61 | --secondary: oklch(0.965 |
| 62 | --secondary-foreground: oklch(0.28 |
| 63 | --muted: oklch(0.967 |
| 64 | --muted-foreground: oklch(0.52 |
| 65 | --accent: oklch(0.955 |
| 66 | --accent-foreground: oklch(0.36 |
| 67 | --destructive: oklch(0.577 |
| 68 | --border: oklch(0.92 |
| 69 | --input: oklch(0.9 |
| 70 | --ring: oklch(0.53 |
| 71 | --chart-1: oklch(0.53 |
| 72 | --chart-2: oklch(0.65 |
| 73 | --chart-3: oklch(0.66 |
| 74 | --chart-4: oklch(0.72 |
| 75 | --chart-5: oklch(0.72 |
| 76 | --radius: 0.625rem; |
| 77 | --sidebar: oklch(0.978 |
| 78 | --sidebar-foreground: oklch(0.2 |
| 79 | --sidebar-primary: oklch(0.53 |
| 80 | --sidebar-primary-foreground: oklch(0.985 |
| 81 | --sidebar-accent: oklch(0.955 |
| 82 | --sidebar-accent-foreground: oklch(0.36 |
| 83 | --sidebar-border: oklch(0.92 |
| 84 | --sidebar-ring: oklch(0.53 |
| 85 | } |
| 86 | |
| 87 | .dark { |
| 88 | /* Lavender, dark. Vesper's recipe: near-black surfaces, a pastel accent with dark text on it. */ |
| 89 | --background: oklch(0.155 |
| 90 | --foreground: oklch(0.96 |
| 91 | --card: oklch(0.185 |
| 92 | --card-foreground: oklch(0.96 |
| 93 | --popover: oklch(0.19 |
| 94 | --popover-foreground: oklch(0.96 |
| 95 | --primary: oklch(0.8 |
| 96 | --primary-foreground: oklch(0.2 |
| 97 | --secondary: oklch(0.225 |
| 98 | --secondary-foreground: oklch(0.93 |
| 99 | --muted: oklch(0.21 |
| 100 | --muted-foreground: oklch(0.7 |
| 101 | --accent: oklch(0.25 |
| 102 | --accent-foreground: oklch(0.88 |
| 103 | --destructive: oklch(0.7 |
| 104 | --border: oklch(1 |
| 105 | --input: oklch(1 |
| 106 | --ring: oklch(0.8 |
| 107 | --chart-1: oklch(0.8 |
| 108 | --chart-2: oklch(0.78 |
| 109 | --chart-3: oklch(0.78 |
| 110 | --chart-4: oklch(0.8 |
| 111 | --chart-5: oklch(0.82 |
| 112 | --sidebar: oklch(0.14 |
| 113 | --sidebar-foreground: oklch(0.96 |
| 114 | --sidebar-primary: oklch(0.8 |
| 115 | --sidebar-primary-foreground: oklch(0.2 |
| 116 | --sidebar-accent: oklch(0.25 |
| 117 | --sidebar-accent-foreground: oklch(0.88 |
| 118 | --sidebar-border: oklch(1 |
| 119 | --sidebar-ring: oklch(0.8 |
| 120 | } |
| 121 | |
| 122 | /* ---- extra app themes (next-themes sets these as <html> classes) ---- */ |
| 123 | |
| 124 | .vesper { |
| 125 | --background: #101010; |
| 126 | --foreground: #ffffff; |
| 127 | --card: #161616; |
| 128 | --card-foreground: #ffffff; |
| 129 | --popover: #161616; |
| 130 | --popover-foreground: #ffffff; |
| 131 | --primary: #ffc799; |
| 132 | --primary-foreground: #1a1206; |
| 133 | --secondary: #1f1f1f; |
| 134 | --secondary-foreground: #e8e6e3; |
| 135 | --muted: #1c1c1c; |
| 136 | --muted-foreground: #a8a29e; |
| 137 | --accent: #26211b; |
| 138 | --accent-foreground: #ffc799; |
| 139 | --destructive: #f2555a; |
| 140 | --border: #ffffff1f; |
| 141 | --input: #ffffff26; |
| 142 | --ring: #ffc799; |
| 143 | --chart-1: #ffc799; |
| 144 | --chart-2: #7dd3c0; |
| 145 | --chart-3: #c4b5fd; |
| 146 | --chart-4: #f0abfc; |
| 147 | --chart-5: #94a3b8; |
| 148 | --sidebar: #0c0c0c; |
| 149 | --sidebar-foreground: #ffffff; |
| 150 | --sidebar-primary: #ffc799; |
| 151 | --sidebar-primary-foreground: #1a1206; |
| 152 | --sidebar-accent: #26211b; |
| 153 | --sidebar-accent-foreground: #ffc799; |
| 154 | --sidebar-border: #ffffff1f; |
| 155 | --sidebar-ring: #ffc799; |
| 156 | } |
| 157 | |
| 158 | .dracula { |
| 159 | --background: #282a36; |
| 160 | --foreground: #f8f8f2; |
| 161 | --card: #323442; |
| 162 | --card-foreground: #f8f8f2; |
| 163 | --popover: #323442; |
| 164 | --popover-foreground: #f8f8f2; |
| 165 | --primary: #bd93f9; |
| 166 | --primary-foreground: #241b3a; |
| 167 | --secondary: #44475a; |
| 168 | --secondary-foreground: #f8f8f2; |
| 169 | --muted: #343746; |
| 170 | --muted-foreground: #b9bccf; |
| 171 | --accent: #44475a; |
| 172 | --accent-foreground: #f8f8f2; |
| 173 | --destructive: #ff5555; |
| 174 | --border: #ffffff1f; |
| 175 | --input: #ffffff26; |
| 176 | --ring: #bd93f9; |
| 177 | --chart-1: #bd93f9; |
| 178 | --chart-2: #50fa7b; |
| 179 | --chart-3: #ff79c6; |
| 180 | --chart-4: #8be9fd; |
| 181 | --chart-5: #ffb86c; |
| 182 | --sidebar: #21222c; |
| 183 | --sidebar-foreground: #f8f8f2; |
| 184 | --sidebar-primary: #bd93f9; |
| 185 | --sidebar-primary-foreground: #241b3a; |
| 186 | --sidebar-accent: #44475a; |
| 187 | --sidebar-accent-foreground: #f8f8f2; |
| 188 | --sidebar-border: #ffffff1f; |
| 189 | --sidebar-ring: #bd93f9; |
| 190 | } |
| 191 | |
| 192 | .tokyo-night { |
| 193 | --background: #1a1b26; |
| 194 | --foreground: #c0caf5; |
| 195 | --card: #24283b; |
| 196 | --card-foreground: #c0caf5; |
| 197 | --popover: #24283b; |
| 198 | --popover-foreground: #c0caf5; |
| 199 | --primary: #7aa2f7; |
| 200 | --primary-foreground: #111726; |
| 201 | --secondary: #2f334d; |
| 202 | --secondary-foreground: #c0caf5; |
| 203 | --muted: #232433; |
| 204 | --muted-foreground: #9aa0c3; |
| 205 | --accent: #2f334d; |
| 206 | --accent-foreground: #c0caf5; |
| 207 | --destructive: #f7768e; |
| 208 | --border: #ffffff1a; |
| 209 | --input: #ffffff24; |
| 210 | --ring: #7aa2f7; |
| 211 | --chart-1: #7aa2f7; |
| 212 | --chart-2: #9ece6a; |
| 213 | --chart-3: #bb9af7; |
| 214 | --chart-4: #7dcfff; |
| 215 | --chart-5: #e0af68; |
| 216 | --sidebar: #16161e; |
| 217 | --sidebar-foreground: #c0caf5; |
| 218 | --sidebar-primary: #7aa2f7; |
| 219 | --sidebar-primary-foreground: #111726; |
| 220 | --sidebar-accent: #2f334d; |
| 221 | --sidebar-accent-foreground: #c0caf5; |
| 222 | --sidebar-border: #ffffff1a; |
| 223 | --sidebar-ring: #7aa2f7; |
| 224 | } |
| 225 | |
| 226 | .catppuccin { |
| 227 | --background: #1e1e2e; |
| 228 | --foreground: #cdd6f4; |
| 229 | --card: #313244; |
| 230 | --card-foreground: #cdd6f4; |
| 231 | --popover: #313244; |
| 232 | --popover-foreground: #cdd6f4; |
| 233 | --primary: #cba6f7; |
| 234 | --primary-foreground: #241d34; |
| 235 | --secondary: #45475a; |
| 236 | --secondary-foreground: #cdd6f4; |
| 237 | --muted: #292938; |
| 238 | --muted-foreground: #a6adc8; |
| 239 | --accent: #45475a; |
| 240 | --accent-foreground: #cdd6f4; |
| 241 | --destructive: #f38ba8; |
| 242 | --border: #ffffff1a; |
| 243 | --input: #ffffff24; |
| 244 | --ring: #cba6f7; |
| 245 | --chart-1: #cba6f7; |
| 246 | --chart-2: #a6e3a1; |
| 247 | --chart-3: #f5c2e7; |
| 248 | --chart-4: #89dceb; |
| 249 | --chart-5: #fab387; |
| 250 | --sidebar: #181825; |
| 251 | --sidebar-foreground: #cdd6f4; |
| 252 | --sidebar-primary: #cba6f7; |
| 253 | --sidebar-primary-foreground: #241d34; |
| 254 | --sidebar-accent: #45475a; |
| 255 | --sidebar-accent-foreground: #cdd6f4; |
| 256 | --sidebar-border: #ffffff1a; |
| 257 | --sidebar-ring: #cba6f7; |
| 258 | } |
| 259 | |
| 260 | .nord { |
| 261 | --background: #2e3440; |
| 262 | --foreground: #eceff4; |
| 263 | --card: #3b4252; |
| 264 | --card-foreground: #eceff4; |
| 265 | --popover: #3b4252; |
| 266 | --popover-foreground: #eceff4; |
| 267 | --primary: #88c0d0; |
| 268 | --primary-foreground: #1d2b33; |
| 269 | --secondary: #434c5e; |
| 270 | --secondary-foreground: #eceff4; |
| 271 | --muted: #353c4b; |
| 272 | --muted-foreground: #b8c0d0; |
| 273 | --accent: #434c5e; |
| 274 | --accent-foreground: #eceff4; |
| 275 | --destructive: #bf616a; |
| 276 | --border: #ffffff1a; |
| 277 | --input: #ffffff24; |
| 278 | --ring: #88c0d0; |
| 279 | --chart-1: #88c0d0; |
| 280 | --chart-2: #a3be8c; |
| 281 | --chart-3: #b48ead; |
| 282 | --chart-4: #81a1c1; |
| 283 | --chart-5: #ebcb8b; |
| 284 | --sidebar: #242933; |
| 285 | --sidebar-foreground: #eceff4; |
| 286 | --sidebar-primary: #88c0d0; |
| 287 | --sidebar-primary-foreground: #1d2b33; |
| 288 | --sidebar-accent: #434c5e; |
| 289 | --sidebar-accent-foreground: #eceff4; |
| 290 | --sidebar-border: #ffffff1a; |
| 291 | --sidebar-ring: #88c0d0; |
| 292 | } |
| 293 | |
| 294 | .one-dark-pro { |
| 295 | --background: #282c34; |
| 296 | --foreground: #abb2bf; |
| 297 | --card: #21252b; |
| 298 | --card-foreground: #dde1e8; |
| 299 | --popover: #21252b; |
| 300 | --popover-foreground: #dde1e8; |
| 301 | --primary: #61afef; |
| 302 | --primary-foreground: #0f1c28; |
| 303 | --secondary: #353b45; |
| 304 | --secondary-foreground: #dde1e8; |
| 305 | --muted: #2c313a; |
| 306 | --muted-foreground: #8b93a5; |
| 307 | --accent: #353b45; |
| 308 | --accent-foreground: #dde1e8; |
| 309 | --destructive: #e06c75; |
| 310 | --border: #ffffff1a; |
| 311 | --input: #ffffff24; |
| 312 | --ring: #61afef; |
| 313 | --chart-1: #61afef; |
| 314 | --chart-2: #98c379; |
| 315 | --chart-3: #c678dd; |
| 316 | --chart-4: #56b6c2; |
| 317 | --chart-5: #e5c07b; |
| 318 | --sidebar: #21252b; |
| 319 | --sidebar-foreground: #abb2bf; |
| 320 | --sidebar-primary: #61afef; |
| 321 | --sidebar-primary-foreground: #0f1c28; |
| 322 | --sidebar-accent: #353b45; |
| 323 | --sidebar-accent-foreground: #dde1e8; |
| 324 | --sidebar-border: #ffffff1a; |
| 325 | --sidebar-ring: #61afef; |
| 326 | } |
| 327 | |
| 328 | .monokai { |
| 329 | --background: #272822; |
| 330 | --foreground: #f8f8f2; |
| 331 | --card: #34352f; |
| 332 | --card-foreground: #f8f8f2; |
| 333 | --popover: #34352f; |
| 334 | --popover-foreground: #f8f8f2; |
| 335 | --primary: #a6e22e; |
| 336 | --primary-foreground: #1c2407; |
| 337 | --secondary: #49483e; |
| 338 | --secondary-foreground: #f8f8f2; |
| 339 | --muted: #33342d; |
| 340 | --muted-foreground: #c2c0b5; |
| 341 | --accent: #49483e; |
| 342 | --accent-foreground: #f8f8f2; |
| 343 | --destructive: #f92672; |
| 344 | --border: #ffffff1f; |
| 345 | --input: #ffffff26; |
| 346 | --ring: #a6e22e; |
| 347 | --chart-1: #a6e22e; |
| 348 | --chart-2: #66d9ef; |
| 349 | --chart-3: #fd971f; |
| 350 | --chart-4: #ae81ff; |
| 351 | --chart-5: #f92672; |
| 352 | --sidebar: #1e1f1c; |
| 353 | --sidebar-foreground: #f8f8f2; |
| 354 | --sidebar-primary: #a6e22e; |
| 355 | --sidebar-primary-foreground: #1c2407; |
| 356 | --sidebar-accent: #49483e; |
| 357 | --sidebar-accent-foreground: #f8f8f2; |
| 358 | --sidebar-border: #ffffff1f; |
| 359 | --sidebar-ring: #a6e22e; |
| 360 | } |
| 361 | |
| 362 | .gruvbox { |
| 363 | --background: #282828; |
| 364 | --foreground: #ebdbb2; |
| 365 | --card: #3c3836; |
| 366 | --card-foreground: #ebdbb2; |
| 367 | --popover: #3c3836; |
| 368 | --popover-foreground: #ebdbb2; |
| 369 | --primary: #fabd2f; |
| 370 | --primary-foreground: #241a02; |
| 371 | --secondary: #504945; |
| 372 | --secondary-foreground: #ebdbb2; |
| 373 | --muted: #32302f; |
| 374 | --muted-foreground: #bdae93; |
| 375 | --accent: #504945; |
| 376 | --accent-foreground: #ebdbb2; |
| 377 | --destructive: #fb4934; |
| 378 | --border: #ffffff1a; |
| 379 | --input: #ffffff24; |
| 380 | --ring: #fabd2f; |
| 381 | --chart-1: #fabd2f; |
| 382 | --chart-2: #b8bb26; |
| 383 | --chart-3: #d3869b; |
| 384 | --chart-4: #83a598; |
| 385 | --chart-5: #fe8019; |
| 386 | --sidebar: #1d2021; |
| 387 | --sidebar-foreground: #ebdbb2; |
| 388 | --sidebar-primary: #fabd2f; |
| 389 | --sidebar-primary-foreground: #241a02; |
| 390 | --sidebar-accent: #504945; |
| 391 | --sidebar-accent-foreground: #ebdbb2; |
| 392 | --sidebar-border: #ffffff1a; |
| 393 | --sidebar-ring: #fabd2f; |
| 394 | } |
| 395 | |
| 396 | .github-dark { |
| 397 | --background: #0d1117; |
| 398 | --foreground: #e6edf3; |
| 399 | --card: #161b22; |
| 400 | --card-foreground: #e6edf3; |
| 401 | --popover: #161b22; |
| 402 | --popover-foreground: #e6edf3; |
| 403 | --primary: #2f81f7; |
| 404 | --primary-foreground: #ffffff; |
| 405 | --secondary: #21262d; |
| 406 | --secondary-foreground: #e6edf3; |
| 407 | --muted: #151a22; |
| 408 | --muted-foreground: #8d959f; |
| 409 | --accent: #21262d; |
| 410 | --accent-foreground: #e6edf3; |
| 411 | --destructive: #f85149; |
| 412 | --border: #ffffff1a; |
| 413 | --input: #ffffff24; |
| 414 | --ring: #2f81f7; |
| 415 | --chart-1: #2f81f7; |
| 416 | --chart-2: #3fb950; |
| 417 | --chart-3: #d2a8ff; |
| 418 | --chart-4: #39c5cf; |
| 419 | --chart-5: #d29922; |
| 420 | --sidebar: #010409; |
| 421 | --sidebar-foreground: #e6edf3; |
| 422 | --sidebar-primary: #2f81f7; |
| 423 | --sidebar-primary-foreground: #ffffff; |
| 424 | --sidebar-accent: #21262d; |
| 425 | --sidebar-accent-foreground: #e6edf3; |
| 426 | --sidebar-border: #ffffff1a; |
| 427 | --sidebar-ring: #2f81f7; |
| 428 | } |
| 429 | |
| 430 | .rose-pine { |
| 431 | --background: #232136; |
| 432 | --foreground: #e0def4; |
| 433 | --card: #2a273f; |
| 434 | --card-foreground: #e0def4; |
| 435 | --popover: #2a273f; |
| 436 | --popover-foreground: #e0def4; |
| 437 | --primary: #c4a7e7; |
| 438 | --primary-foreground: #241d34; |
| 439 | --secondary: #393552; |
| 440 | --secondary-foreground: #e0def4; |
| 441 | --muted: #282433; |
| 442 | --muted-foreground: #9d9bb8; |
| 443 | --accent: #393552; |
| 444 | --accent-foreground: #e0def4; |
| 445 | --destructive: #eb6f92; |
| 446 | --border: #ffffff1a; |
| 447 | --input: #ffffff24; |
| 448 | --ring: #c4a7e7; |
| 449 | --chart-1: #c4a7e7; |
| 450 | --chart-2: #9ccfd8; |
| 451 | --chart-3: #ebbcba; |
| 452 | --chart-4: #f6c177; |
| 453 | --chart-5: #31748f; |
| 454 | --sidebar: #1f1d2e; |
| 455 | --sidebar-foreground: #e0def4; |
| 456 | --sidebar-primary: #c4a7e7; |
| 457 | --sidebar-primary-foreground: #241d34; |
| 458 | --sidebar-accent: #393552; |
| 459 | --sidebar-accent-foreground: #e0def4; |
| 460 | --sidebar-border: #ffffff1a; |
| 461 | --sidebar-ring: #c4a7e7; |
| 462 | } |
| 463 | |
| 464 | @layer base { |
| 465 | * { |
| 466 | @apply border-border outline-ring/50; |
| 467 | } |
| 468 | body { |
| 469 | @apply bg-background text-foreground; |
| 470 | } |
| 471 | html { |
| 472 | @apply font-sans; |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | [data-shiki] span { |
| 477 | color: var(--shiki-light |
| 478 | } |
| 479 | |
| 480 | .dark [data-shiki] |
| 481 | color: var(--shiki-dark |
| 482 | } |
| 483 | |
| 484 | .vesper [data-shiki] |
| 485 | color: var(--shiki-vesper |
| 486 | } |
| 487 | |
| 488 | .dracula [data-shiki] |
| 489 | color: var(--shiki-dracula |
| 490 | } |
| 491 | |
| 492 | .tokyo-night [data-shiki] |
| 493 | color: var(--shiki-tokyo-night |
| 494 | } |
| 495 | |
| 496 | .catppuccin [data-shiki] |
| 497 | color: var(--shiki-catppuccin |
| 498 | } |
| 499 | |
| 500 | .nord [data-shiki] |
| 501 | color: var(--shiki-nord |
| 502 | } |
| 503 | |
| 504 | .one-dark-pro [data-shiki] |
| 505 | color: var(--shiki-one-dark-pro |
| 506 | } |
| 507 | |
| 508 | .monokai [data-shiki] |
| 509 | color: var(--shiki-monokai |
| 510 | } |
| 511 | |
| 512 | .gruvbox [data-shiki] |
| 513 | color: var(--shiki-gruvbox |
| 514 | } |
| 515 | |
| 516 | .github-dark [data-shiki] |
| 517 | color: var(--shiki-github-dark |
| 518 | } |
| 519 | |
| 520 | .rose-pine [data-shiki] |
| 521 | color: var(--shiki-rose-pine |
| 522 | } |
| 523 | |
| 524 | .custom [data-shiki] |
| 525 | color: var(--shiki-custom |
| 526 | } |
| 527 | |
| 528 | /* Rendered Markdown, spaced and sized the way GitHub's `.markdown-body` is. In a layer, so a caller's utility classes still win. */ |
| 529 | @layer components { |
| 530 | .markdown { |
| 531 | font-size: 0.875rem; |
| 532 | line-height: 1.5; |
| 533 | overflow-wrap: break-word; |
| 534 | } |
| 535 | .markdown > : |
| 536 | margin-top: 0; |
| 537 | } |
| 538 | .markdown > : |
| 539 | margin-bottom: 0; |
| 540 | } |
| 541 | .markdown |
| 542 | :where(p, |
| 543 | margin-top: 0; |
| 544 | margin-bottom: 1rem; |
| 545 | } |
| 546 | .markdown :where |
| 547 | margin-top: 1.5rem; |
| 548 | margin-bottom: 1rem; |
| 549 | font-weight: 600; |
| 550 | line-height: 1.25; |
| 551 | } |
| 552 | .markdown :where |
| 553 | padding-bottom: 0.3em; |
| 554 | border-bottom: 1px solid |
| 555 | } |
| 556 | .markdown h1 { |
| 557 | font-size: 2em; |
| 558 | } |
| 559 | .markdown h2 { |
| 560 | font-size: 1.5em; |
| 561 | } |
| 562 | .markdown h3 { |
| 563 | font-size: 1.25em; |
| 564 | } |
| 565 | .markdown h5 { |
| 566 | font-size: 0.875em; |
| 567 | } |
| 568 | .markdown h6 { |
| 569 | font-size: 0.85em; |
| 570 | color: var(--muted-foreground |
| 571 | } |
| 572 | .markdown :where |
| 573 | padding-left: 2em; |
| 574 | } |
| 575 | .markdown ul { |
| 576 | list-style: disc; |
| 577 | } |
| 578 | .markdown ol { |
| 579 | list-style: decimal; |
| 580 | } |
| 581 | .markdown :where |
| 582 | list-style: circle; |
| 583 | } |
| 584 | .markdown :where |
| 585 | list-style: lower-roman; |
| 586 | } |
| 587 | .markdown :where |
| 588 | margin-top: 0; |
| 589 | margin-bottom: 0; |
| 590 | } |
| 591 | .markdown li + |
| 592 | margin-top: 0.25em; |
| 593 | } |
| 594 | .markdown li > |
| 595 | margin-top: 1rem; |
| 596 | } |
| 597 | .markdown li: |
| 598 | list-style: none; |
| 599 | } |
| 600 | .markdown li > |
| 601 | margin: 0 0.2em |
| 602 | vertical-align: middle; |
| 603 | } |
| 604 | .markdown a { |
| 605 | color: var(--primary |
| 606 | text-decoration: underline; |
| 607 | text-underline-offset: 0.2em; |
| 608 | } |
| 609 | .markdown img { |
| 610 | display: inline; |
| 611 | max-width: 100%; |
| 612 | box-sizing: content-box; |
| 613 | } |
| 614 | /* a row of badges sits side by side, centred on the text */ |
| 615 | .markdown a: |
| 616 | vertical-align: middle; |
| 617 | } |
| 618 | .markdown code { |
| 619 | padding: 0.2em 0.4 |
| 620 | font-family: var(--font-mono |
| 621 | font-size: 85%; |
| 622 | white-space: break-spaces; |
| 623 | background: var(--muted |
| 624 | border-radius: 6px; |
| 625 | } |
| 626 | .markdown pre { |
| 627 | padding: 1rem; |
| 628 | overflow: auto; |
| 629 | font-size: 85%; |
| 630 | line-height: 1.45; |
| 631 | background: var(--muted |
| 632 | border-radius: 6px; |
| 633 | } |
| 634 | .markdown pre code |
| 635 | padding: 0; |
| 636 | font-size: 100%; |
| 637 | white-space: pre; |
| 638 | background: transparent; |
| 639 | border-radius: 0; |
| 640 | } |
| 641 | .markdown blockquote { |
| 642 | padding: 0 1em |
| 643 | color: var(--muted-foreground |
| 644 | border-left: 0.25em solid |
| 645 | } |
| 646 | .markdown hr { |
| 647 | height: 0.25em; |
| 648 | margin: 1.5rem 0 |
| 649 | background: var(--border |
| 650 | border: 0; |
| 651 | } |
| 652 | .markdown table { |
| 653 | display: block; |
| 654 | width: max-content; |
| 655 | max-width: 100%; |
| 656 | overflow: auto; |
| 657 | border-collapse: collapse; |
| 658 | } |
| 659 | .markdown :where |
| 660 | padding: 6px 13 |
| 661 | border: 1px solid |
| 662 | } |
| 663 | .markdown th { |
| 664 | font-weight: 600; |
| 665 | } |
| 666 | .markdown tr: |
| 667 | background: var(--muted |
| 668 | } |
| 669 | .markdown summary { |
| 670 | cursor: pointer; |
| 671 | } |
| 672 | .markdown details > |
| 673 | margin-top: 1rem; |
| 674 | } |
| 675 | .markdown-alert { |
| 676 | padding: 0.5rem 1 |
| 677 | border-left: 0.25em solid |
| 678 | } |
| 679 | .markdown-alert > : |
| 680 | margin-bottom: 0; |
| 681 | } |
| 682 | .markdown .markdown-alert-title |
| 683 | display: flex; |
| 684 | align-items: center; |
| 685 | gap: 0.5rem; |
| 686 | margin-bottom: 0.25rem; |
| 687 | font-weight: 500; |
| 688 | line-height: 1; |
| 689 | color: var(--alert |
| 690 | } |
| 691 | .markdown-alert-note { |
| 692 | --alert: #4493f8; |
| 693 | } |
| 694 | .markdown-alert-tip { |
| 695 | --alert: #3fb950; |
| 696 | } |
| 697 | .markdown-alert-important { |
| 698 | --alert: #ab7df8; |
| 699 | } |
| 700 | .markdown-alert-warning { |
| 701 | --alert: #d29922; |
| 702 | } |
| 703 | .markdown-alert-caution { |
| 704 | --alert: #f85149; |
| 705 | } |
| 706 | } |