Compare commits

...

4 Commits

Author SHA1 Message Date
Alex Dunmow
e6bccf9d7e bump to 0.6.0 2026-07-06 21:08:00 +08:00
Alex Dunmow
6a7ec049fd feat: Wave B gallery screenshots with bundled fonts (home/about/article × light+dark)
Recaptured after @font-face bundling: headings render in Inter, oversized
numerals in JetBrains Mono. 6 shots, retina 2880x1800, light-canonical.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 21:07:46 +08:00
Alex Dunmow
9fcf0892a3 feat: bundle Inter + JetBrains Mono via @font-face + preset typography refs
The host does not consume LoadedPlugin.BundledFonts, so fonts.json families
render as fallback sans. Declare @font-face against the served
/templates/corporate-modernist/fonts/*.woff2 paths and set
typography.fontHeading/body/mono to template:corporate-modernist:<Family> in
all 5 presets so --font-heading/--font-body/--font-mono resolve to the bundled
Inter / JetBrains Mono faces. Families + weights match fonts.json exactly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 21:02:02 +08:00
Alex Dunmow
86a2c71e9f bump to 0.5.1 2026-07-06 21:01:45 +08:00
10 changed files with 39 additions and 1 deletions

View File

@ -124,6 +124,19 @@ css:
Swiss grid + Bauhaus geometric marks + oversized numerals. Swiss grid + Bauhaus geometric marks + oversized numerals.
============================================================ */ ============================================================ */
/* Bundled faces. The host does not yet emit @font-face for
bundled_fonts (LoadedPlugin.BundledFonts is unconsumed), so the theme
declares its own faces against the served artifact paths
(/templates/corporate-modernist/fonts/...). Presets set
typography.fontHeading/body/mono to template:corporate-modernist:<Family>
so --font-heading/--font-body/--font-mono resolve to these families.
Families + weights match fonts.json exactly. */
@font-face { font-family: 'Inter'; src: url('/templates/corporate-modernist/fonts/inter-latin-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/templates/corporate-modernist/fonts/inter-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/templates/corporate-modernist/fonts/inter-latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/templates/corporate-modernist/fonts/inter-latin-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/templates/corporate-modernist/fonts/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
/* --- Layout primitives --- */ /* --- Layout primitives --- */
.cm-content-well { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; box-sizing: border-box; } .cm-content-well { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; box-sizing: border-box; }
.cm-measure { max-width: 70ch; } .cm-measure { max-width: 70ch; }

View File

@ -2,7 +2,7 @@
name = "corporate-modernist" name = "corporate-modernist"
display_name = "Corporate Modernist" display_name = "Corporate Modernist"
scope = "@themes" scope = "@themes"
version = "0.5.0" version = "0.6.0"
description = "Swiss-grid B2B theme with restrained typography, a single configurable accent, and trust-signal blocks for enterprise sites." description = "Swiss-grid B2B theme with restrained typography, a single configurable accent, and trust-signal blocks for enterprise sites."
kind = "theme" kind = "theme"
categories = ["templates"] categories = ["templates"]

View File

@ -5,6 +5,11 @@
"description": "Deep navy on paper. The safe choice for accountancy, law, and finance.", "description": "Deep navy on paper. The safe choice for accountancy, law, and finance.",
"theme": { "theme": {
"mode": "both", "mode": "both",
"typography": {
"fontHeading": "template:corporate-modernist:Inter",
"fontBody": "template:corporate-modernist:Inter",
"fontMono": "template:corporate-modernist:JetBrains Mono"
},
"lightColors": { "lightColors": {
"background": "0 0% 100%", "background": "0 0% 100%",
"foreground": "220 20% 12%", "foreground": "220 20% 12%",
@ -55,6 +60,11 @@
"description": "Same chassis, deep green accent for sustainability, advisory, and ESG.", "description": "Same chassis, deep green accent for sustainability, advisory, and ESG.",
"theme": { "theme": {
"mode": "both", "mode": "both",
"typography": {
"fontHeading": "template:corporate-modernist:Inter",
"fontBody": "template:corporate-modernist:Inter",
"fontMono": "template:corporate-modernist:JetBrains Mono"
},
"lightColors": { "lightColors": {
"background": "0 0% 100%", "background": "0 0% 100%",
"foreground": "150 18% 12%", "foreground": "150 18% 12%",
@ -105,6 +115,11 @@
"description": "Heritage accent for old-line legal, private banking, and partnerships.", "description": "Heritage accent for old-line legal, private banking, and partnerships.",
"theme": { "theme": {
"mode": "both", "mode": "both",
"typography": {
"fontHeading": "template:corporate-modernist:Inter",
"fontBody": "template:corporate-modernist:Inter",
"fontMono": "template:corporate-modernist:JetBrains Mono"
},
"lightColors": { "lightColors": {
"background": "0 0% 100%", "background": "0 0% 100%",
"foreground": "355 18% 12%", "foreground": "355 18% 12%",
@ -155,6 +170,11 @@
"description": "Achromatic ink on gallery white. Pure Swiss restraint with no hue.", "description": "Achromatic ink on gallery white. Pure Swiss restraint with no hue.",
"theme": { "theme": {
"mode": "both", "mode": "both",
"typography": {
"fontHeading": "template:corporate-modernist:Inter",
"fontBody": "template:corporate-modernist:Inter",
"fontMono": "template:corporate-modernist:JetBrains Mono"
},
"lightColors": { "lightColors": {
"background": "0 0% 100%", "background": "0 0% 100%",
"foreground": "0 0% 9%", "foreground": "0 0% 9%",
@ -205,6 +225,11 @@
"description": "Graphite ground with a single Bauhaus primary-red accent for bold consultancies.", "description": "Graphite ground with a single Bauhaus primary-red accent for bold consultancies.",
"theme": { "theme": {
"mode": "both", "mode": "both",
"typography": {
"fontHeading": "template:corporate-modernist:Inter",
"fontBody": "template:corporate-modernist:Inter",
"fontMono": "template:corporate-modernist:JetBrains Mono"
},
"lightColors": { "lightColors": {
"background": "0 0% 100%", "background": "0 0% 100%",
"foreground": "0 0% 11%", "foreground": "0 0% 11%",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 KiB

After

Width:  |  Height:  |  Size: 427 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 KiB

After

Width:  |  Height:  |  Size: 425 KiB