diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-09-29 23:29:28 -0700 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-09-29 23:29:28 -0700 |
| commit | 52cdeaf4cc9da9d32926821c78fd331bc8d2f14a (patch) | |
| tree | 1b57b1c4d7c4e70202d9f07bab8a8e1a477078b9 /style/_fonts.scss | |
| parent | a570da443586fa3b3490b5add88ea5932456a5b3 (diff) | |
restructure for cgit css
Diffstat (limited to 'style/_fonts.scss')
| -rw-r--r-- | style/_fonts.scss | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/style/_fonts.scss b/style/_fonts.scss new file mode 100644 index 0000000..2299bca --- /dev/null +++ b/style/_fonts.scss @@ -0,0 +1,28 @@ +@use "sass:list"; + +$-faces: ( + 100: ("Thin", "ThinItalic"), + 200: ("ExtraLight", "ExtraLightItalic"), + 300: ("Light", "LightItalic"), + 400: ("Regular", "Italic"), + 450: ("Text", "TextItalic"), + 500: ("Medium", "MediumItalic"), + 600: ("SemiBold", "SemiBoldItalic"), + 700: ("Bold", "BoldItalic"), +); + +$-styles: normal italic; + +@each $weight, $names in $-faces { + @for $i from 1 through 2 { + @font-face { + font-family: "IBM Plex Mono"; + src: url("/fonts/mono/IBMPlexMono-#{list.nth($names, $i)}.woff2") format("woff2"); + font-weight: $weight; + font-style: list.nth($-styles, $i); + font-display: swap; + } + } +} + +$mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; |