Local only: Cormorant Garamond and Mulish instead of Marcellus and Jost

Not pushed: Bryan compares it with the current test version first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 17:15:04 +01:00
co-authored by Claude Sonnet 5.5
parent d9ff875ade
commit 107647f7a5
15 changed files with 81 additions and 10 deletions
+1
View File
@@ -60,6 +60,7 @@ export default function FaqList({
minH="2.75rem"
py={5}
fontFamily="heading"
fontSizeAdjust="0.43"
fontSize="1.25rem"
color="ink"
cursor="pointer"
@@ -105,6 +105,7 @@ export default function MobileNav({
}
display="block"
fontFamily="heading"
fontSizeAdjust="0.43"
fontSize="1.9rem"
color="ink"
_currentPage={{ color: 'accent' }}
@@ -38,6 +38,7 @@ export default function MobileNavGroup({
onClick={() => dispatch({ type: 'linkChosen' })}
display="block"
fontFamily="heading"
fontSizeAdjust="0.43"
fontSize="1.9rem"
color={isSectionCurrent(item, pathname) ? 'accent' : 'ink'}
_currentPage={{ color: 'accent' }}
@@ -97,6 +98,7 @@ export default function MobileNavGroup({
alignItems="center"
minH="44px"
fontFamily="heading"
fontSizeAdjust="0.43"
fontSize="1.4rem"
color="ink"
// accent.deep: 1.4rem is not large text
@@ -51,6 +51,8 @@ export default function PackageBlock({
</Heading>
<Text
fontFamily="heading"
fontSizeAdjust="0.43"
fontVariantNumeric="lining-nums"
fontSize="2.25rem"
lineHeight="1.2"
color="accent.deep"
@@ -140,6 +140,7 @@ export default function ProcessTimeline({
<Heading
as="h3"
fontFamily="heading"
fontSizeAdjust="0.43"
fontWeight="normal"
fontSize="xl"
lineHeight="1.2"
@@ -73,6 +73,8 @@ export default function PriceCard({ pkg }: PriceCardProps) {
{/* accent.deep instead of the design's accent: meets 4.5:1 (NFR-HP-01) */}
<Text
fontFamily="heading"
fontSizeAdjust="0.43"
fontVariantNumeric="lining-nums"
fontSize="2.25rem"
lineHeight="1"
color="accent.deep"
@@ -41,6 +41,7 @@ export default function PriceTopBar({ banner }: PriceTopBarProps) {
<Text
as="strong"
fontFamily="heading"
fontSizeAdjust="0.43"
fontWeight="normal"
fontSize="0.8125rem"
letterSpacing="0.14em"
@@ -109,6 +109,7 @@ export default function TestimonialCarousel({
minW="56px"
textAlign="center"
fontFamily="heading"
fontSizeAdjust="0.43"
fontSize="16px"
letterSpacing="0.08em"
color="ink.soft"
@@ -94,6 +94,7 @@ export default function TestimonialSlide({
>
<Text
fontFamily="heading"
fontSizeAdjust="0.43"
fontSize={{ base: '19px', lg: '21px' }}
letterSpacing="0.2em"
textTransform="uppercase"
+23
View File
@@ -0,0 +1,23 @@
/* Fallback faces with the metrics of the web fonts, so the text does not jump
when Cormorant Garamond and Mulish arrive (font-display: swap). Each one is a
system font scaled to the width of the web font and given its vertical
metrics. Numbers: average advance width of the web font divided by that of
the system font (Dutch letter frequencies); ascent and descent of the web
font divided by the size adjustment. */
@font-face {
font-family: 'Cormorant Garamond Fallback';
src: local('Georgia');
size-adjust: 88.6%;
ascent-override: 104.3%;
descent-override: 32.4%;
line-gap-override: 0%;
}
@font-face {
font-family: 'Mulish Fallback';
src: local('Arial');
size-adjust: 104.3%;
ascent-override: 96.4%;
descent-override: 24%;
line-gap-override: 0%;
}
+8 -4
View File
@@ -12,10 +12,14 @@ import siteContent from '../content/siteContent';
import { siteHead } from '../seo';
import system from '../theme';
import '@fontsource/jost/300.css';
import '@fontsource/jost/400.css';
import '@fontsource/jost/500.css';
import '@fontsource/marcellus/400.css';
// Cormorant Garamond for headings, Mulish for text and buttons (the fonts of
// the live site), self-hosted; only the latin subset and the weights in use
import '@fontsource/cormorant-garamond/latin-500.css';
import '@fontsource/cormorant-garamond/latin-600.css';
import '@fontsource/mulish/latin-300.css';
import '@fontsource/mulish/latin-400.css';
import '@fontsource/mulish/latin-500.css';
import '../fonts.css';
// Devtools alleen tijdens het ontwikkelen; ze komen niet in de productiebuild
const RouterDevtools = import.meta.env.DEV
+14 -5
View File
@@ -62,12 +62,15 @@ const config = defineConfig({
},
'.cms-offering h3': {
fontFamily: '{fonts.heading}',
fontWeight: 'normal',
fontSizeAdjust: '0.43',
fontWeight: '500',
fontSize: '1.5rem',
margin: '0 0 0.75rem',
},
'.cms-price': {
fontFamily: '{fonts.heading}',
fontSizeAdjust: '0.43',
fontVariantNumeric: 'lining-nums',
fontSize: '2.25rem',
lineHeight: 1,
color: '{colors.accent.deep}',
@@ -99,7 +102,8 @@ const config = defineConfig({
},
'.cms-banner strong': {
fontFamily: '{fonts.heading}',
fontWeight: 'normal',
fontSizeAdjust: '0.43',
fontWeight: '500',
letterSpacing: '0.14em',
textTransform: 'uppercase',
color: '{colors.ink}',
@@ -154,10 +158,10 @@ const config = defineConfig({
},
fonts: {
heading: {
value: "'Marcellus', 'Iowan Old Style', Georgia, 'Times New Roman', serif",
value: "'Cormorant Garamond', 'Cormorant Garamond Fallback', Georgia, 'Times New Roman', serif",
},
body: {
value: "'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif",
value: "'Mulish', 'Mulish Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif",
},
},
fontSizes: {
@@ -274,6 +278,7 @@ const config = defineConfig({
display: {
value: {
fontFamily: 'heading',
fontSizeAdjust: '0.43',
fontSize: { base: '2.75rem', md: '3.75rem', xl: '5rem' },
lineHeight: '1',
},
@@ -283,6 +288,7 @@ const config = defineConfig({
sectionHeading: {
value: {
fontFamily: 'heading',
fontSizeAdjust: '0.43',
fontSize: { base: '1.625rem', md: '1.875rem' },
lineHeight: '1.15',
letterSpacing: 'caps',
@@ -295,6 +301,7 @@ const config = defineConfig({
sectionTitle: {
value: {
fontFamily: 'heading',
fontSizeAdjust: '0.43',
fontSize: '1.875rem',
lineHeight: '1.15',
},
@@ -311,6 +318,7 @@ const config = defineConfig({
pageTitle: {
value: {
fontFamily: 'heading',
fontSizeAdjust: '0.43',
fontSize: { base: '2.25rem', md: '2.75rem', lg: '3.25rem' },
lineHeight: '1.15',
},
@@ -320,7 +328,8 @@ const config = defineConfig({
// Koppen zijn in het design niet vet en iets gespatieerd
heading: {
base: {
fontWeight: '400',
fontWeight: '500',
fontSizeAdjust: '0.43',
letterSpacing: '0.01em',
},
},