Custom font

This commit is contained in:
Romein van Buren 2025-01-05 14:24:18 +01:00
parent e96edf6ed8
commit 36243362b0
No known key found for this signature in database
3 changed files with 18 additions and 1 deletions

Binary file not shown.

View File

@ -1,3 +1,20 @@
@font-face {
font-family: 'DMSerifDisplay';
src: url('./DMSerifDisplay.ttf') format('truetype');
}
.vp-doc {
font-family: Georgia, 'Times New Roman', Times, serif
}
.vp-doc h1, .vp-doc h2, .vp-doc h3, .vp-doc h4, .vp-doc h5, .vp-doc h6, .custom-block-title {
font-family: 'DMSerifDisplay';
}
.VPBadge, .vp-doc table {
font-family: var(--vp-font-family-base);
}
.VPLink.pager-link.next {
background-color: var(--vp-c-brand-2);
color: #fff !important;

View File

@ -1,4 +1,4 @@
import DefaultTheme from 'vitepress/theme';
import DefaultTheme from 'vitepress/theme-without-fonts';
import './custom.css';
/** @type {import('vitepress').Theme} */