diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2026-06-05 16:33:03 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2026-06-05 16:33:03 +0800 |
| commit | 3fb4b3707ccab2331a4610ee55597c195ca0f536 (patch) | |
| tree | 3de4ca3346dd42faa888aaa6258b5375ce8a1775 /assets/css | |
| parent | d8fd44c649b01f4cc945a7418895a2c1434f17f6 (diff) | |
| download | www-3fb4b3707ccab2331a4610ee55597c195ca0f536.tar.gz | |
Add custom fonts: gentium and Iosevka.
Diffstat (limited to 'assets/css')
| -rw-r--r-- | assets/css/main.css | 61 |
1 files changed, 59 insertions, 2 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index 88e4f71..696f192 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,8 +1,64 @@ +@font-face { + font-family: 'GentiumBookPlus'; + src: url('/assets/fonts/GentiumBookPlus-Regular.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'GentiumBookPlus'; + src: url('/assets/fonts/GentiumBookPlus-Bold.woff2') format('woff2'); + font-weight: bold; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'GentiumBookPlus'; + src: url('/assets/fonts/GentiumBookPlus-Italic.woff2') format('woff2'); + font-weight: normal; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'GentiumBookPlus'; + src: url('/assets/fonts/GentiumBookPlus-BoldItalic.woff2') format('woff2'); + font-weight: bold; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'IosevkaFixed'; + src: url('/assets/fonts/IosevkaFixed-Regular.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'IosevkaFixed'; + src: url('/assets/fonts/IosevkaFixed-Italic.woff2') format('woff2'); + font-weight: normal; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'IosevkaFixed'; + src: url('/assets/fonts/IosevkaFixed-Bold.woff2') format('woff2'); + font-weight: bold; + font-style: normal; + font-display: swap; +} + body { - font: 17px/1.6 sans-serif; + font: 19px/1.6 'GentiumBookPlus', sans-serif; text-rendering: optimizeLegibility; padding: 2rem; - max-width: 65ch; + max-width: 72ch; margin: 0 auto; } @@ -26,6 +82,7 @@ header h1 { pre, code { font-size: 95%; + font-family: 'IosevkaFixed', monospace; background: #2d7a99; color: #ffffff; line-height: 1.5; |
