Skip to content

Commit abc6dfe

Browse files
DevRohit06claude
andcommitted
fix: change default heading font to Inter, add logo schema options
- Change landing page default heading font from Syne to Inter for consistency - Add logo.height, logo.alt, logo.replacesTitle to core schema validation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dcd3e8f commit abc6dfe

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

src/core/landing-sync.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ const config = await getConfigFile();
480480
481481
// Font configuration
482482
const fonts = config.branding?.fonts;
483-
const headingFont = fonts?.heading || 'Syne';
483+
const headingFont = fonts?.heading || 'Inter';
484484
const bodyFont = fonts?.body || 'Inter';
485485
const codeFont = fonts?.code || 'Fira Code';
486486
@@ -500,7 +500,7 @@ const fontOverrides = [];
500500
if (bodyFont !== 'Inter') {
501501
fontOverrides.push("--font-sans: '" + bodyFont + "', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;");
502502
}
503-
if (headingFont !== 'Syne') {
503+
if (headingFont !== 'Inter') {
504504
fontOverrides.push("--font-heading: '" + headingFont + "', '" + bodyFont + "', system-ui, sans-serif !important;");
505505
}
506506
if (codeFont !== 'Fira Code') {
@@ -871,7 +871,7 @@ const config = await getConfigFile();
871871
872872
// Font configuration
873873
const fonts = config.branding?.fonts;
874-
const headingFont = fonts?.heading || 'Syne';
874+
const headingFont = fonts?.heading || 'Inter';
875875
const bodyFont = fonts?.body || 'Inter';
876876
const codeFont = fonts?.code || 'Fira Code';
877877
@@ -891,7 +891,7 @@ const fontOverrides = [];
891891
if (bodyFont !== 'Inter') {
892892
fontOverrides.push("--font-sans: '" + bodyFont + "', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;");
893893
}
894-
if (headingFont !== 'Syne') {
894+
if (headingFont !== 'Inter') {
895895
fontOverrides.push("--font-heading: '" + headingFont + "', '" + bodyFont + "', system-ui, sans-serif !important;");
896896
}
897897
if (codeFont !== 'Fira Code') {

src/schema/core-schema.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@
4949
"href": {
5050
"type": "string",
5151
"description": "Link when clicking the logo"
52+
},
53+
"height": {
54+
"type": "number",
55+
"description": "Logo height in pixels"
56+
},
57+
"alt": {
58+
"type": "string",
59+
"description": "Alt text for the logo image (defaults to metadata.name)"
60+
},
61+
"replacesTitle": {
62+
"type": "boolean",
63+
"default": true,
64+
"description": "When true, logo replaces site title text. When false, both are shown."
5265
}
5366
}
5467
},

0 commit comments

Comments
 (0)