~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
38 lines · 1.3 KB Raw History
/* Monolith's look, shared by the landing page (pages/index.astro) and the
   docs (theme.css): two typefaces, served from the site itself at fixed
   URLs (public/fonts/, their licences beside them), and a near-black
   palette. Every page preloads the faces (FONTS in content.mjs), and they
   are `font-display: optional`: a page is drawn in them when they are
   ready by its first paint, as they are from the cache on every page
   after the first, and in the fallback otherwise, never swapping from one
   to the other as it loads. The faces are variable, so one file serves
   every weight; this subset is Latin. */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --m-bg: #050505;
  --m-panel: #0d0d0c;
  --m-line-soft: #1c1c1b;
  --m-line: #262624;
  --m-faint: #8a8a84;
  --m-mute: #bdbdb7;
  --m-fg: #e8e8e4;
  --m-bright: #ffffff;
  --m-sans: 'Space Grotesk', system-ui, sans-serif;
  --m-mono: 'JetBrains Mono', ui-monospace, monospace;
}