diff --git a/content/.vitepress/theme/DMSerifDisplay.ttf b/content/.vitepress/theme/DMSerifDisplay.ttf new file mode 100644 index 0000000..65a57b7 Binary files /dev/null and b/content/.vitepress/theme/DMSerifDisplay.ttf differ diff --git a/content/.vitepress/theme/custom.css b/content/.vitepress/theme/custom.css index fb0640b..1c79a2d 100644 --- a/content/.vitepress/theme/custom.css +++ b/content/.vitepress/theme/custom.css @@ -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; diff --git a/content/.vitepress/theme/index.js b/content/.vitepress/theme/index.js index 8d3c99d..63edab7 100644 --- a/content/.vitepress/theme/index.js +++ b/content/.vitepress/theme/index.js @@ -1,4 +1,4 @@ -import DefaultTheme from 'vitepress/theme'; +import DefaultTheme from 'vitepress/theme-without-fonts'; import './custom.css'; /** @type {import('vitepress').Theme} */