Shows section headings in letter-spaced capitals

SectionHeading gets the new sectionHeading text style: uppercase, the shared caps letter-spacing, 26px on phones and 30px from md. The text in the DOM does not change, so accessible names stay as they are. The plain sectionTitle style stays for the headings that do not use SectionHeading.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 01:24:14 +01:00
co-authored by Claude Sonnet 5.5
parent c8ca5eb372
commit 9a2e84e4b2
3 changed files with 49 additions and 4 deletions
+13 -1
View File
@@ -197,7 +197,19 @@ const config = defineConfig({
lineHeight: '1',
},
},
// The h2 of a homepage section (SectionHeading); smaller than the
// The h2 of a section block (SectionHeading): letter-spaced
// capitals, as on the live site. 26px on phones, 30px from md.
sectionHeading: {
value: {
fontFamily: 'heading',
fontSize: { base: '1.625rem', md: '1.875rem' },
lineHeight: '1.15',
letterSpacing: 'caps',
textTransform: 'uppercase',
},
},
// Plain h2 in blocks that do not use SectionHeading (call to
// action, packages, shoot and story blocks); smaller than the
// design's 2.5rem at the owner's request, 30px at every width
sectionTitle: {
value: {