This is an automated email from the ASF dual-hosted git repository. dashorst pushed a commit to branch font-fallbacks in repository https://gitbox.apache.org/repos/asf/wicket-site.git
commit 276e2c292f8965c8dd5166222dcb2163b82f92b3 Author: Martijn Dashorst <[email protected]> AuthorDate: Fri Nov 13 11:36:18 2026 +0100 Fall back to old-style serifs and humanist sans faces without the webfonts Without its webfonts the site fell back to Georgia for Alegreya and to the serif Alegreya, then a generic sans-serif, for Alegreya Sans. The stacks now fall back to faces of the same kind that the systems ship: Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L and P052 before Georgia for the serif, and Seravek, Gill Sans Nova, Ubuntu and Calibri for the sans. Cascadia Code and Consolas join the monospace stack. The fallbacks matter more now that the reference guide takes its fonts from webjars at build time (apache/wicket#1846): a guide or example built without them falls back to these stacks. They are not size-adjusted, as the metrics of most of these system faces are not at hand; Georgia sets about 9% wider than Alegreya. DESIGN.md names the stacks and what the fallback looks like. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- DESIGN.md | 30 ++++++++++++++++-------------- _sass/ribbon/_base.scss | 11 +++++++---- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index 917bc8ab..28e2b383 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -20,57 +20,57 @@ colors: code-tag: "#0F4A40" typography: display: - fontFamily: "Alegreya, Georgia, serif" + fontFamily: "Alegreya, Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia, serif" fontSize: "clamp(3.4rem, 5.6vw, 5.1rem)" fontWeight: 700 lineHeight: 0.9 letterSpacing: "-0.022em" headline: - fontFamily: "Alegreya, Georgia, serif" + fontFamily: "Alegreya, Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia, serif" fontSize: "clamp(2.4rem, 4.4vw, 3.8rem)" fontWeight: 700 lineHeight: 1.02 letterSpacing: "-0.02em" section: - fontFamily: "Alegreya, Georgia, serif" + fontFamily: "Alegreya, Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia, serif" fontSize: "clamp(2rem, 3vw, 2.6rem)" fontWeight: 700 lineHeight: 1.05 letterSpacing: "-0.015em" title: - fontFamily: "Alegreya, Georgia, serif" + fontFamily: "Alegreya, Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia, serif" fontSize: "clamp(1.75rem, 2.6vw, 2.25rem)" fontWeight: 700 lineHeight: 1.1 letterSpacing: "-0.015em" subtitle: - fontFamily: "Alegreya, Georgia, serif" + fontFamily: "Alegreya, Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia, serif" fontSize: "1.45rem" fontWeight: 700 lineHeight: 1.2 lead: - fontFamily: "Alegreya, Georgia, serif" + fontFamily: "Alegreya, Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia, serif" fontSize: "clamp(1.25rem, 1.7vw, 1.5rem)" fontWeight: 400 lineHeight: 1.3 body: - fontFamily: "Alegreya, Georgia, serif" + fontFamily: "Alegreya, Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia, serif" fontSize: "1.1875rem" fontWeight: 400 lineHeight: 1.55 label: - fontFamily: "Alegreya SC, Alegreya, Georgia, serif" + fontFamily: "Alegreya SC, Alegreya, Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia, serif" fontSize: "1rem" fontWeight: 500 lineHeight: 1.2 letterSpacing: "0.03em" ui: - fontFamily: "Alegreya Sans, Alegreya, sans-serif" + fontFamily: "Alegreya Sans, Seravek, Gill Sans Nova, Ubuntu, Calibri, sans-serif" fontSize: "1.0625rem" fontWeight: 500 lineHeight: 1.2 code: - fontFamily: "JetBrains Mono, ui-monospace, SFMono-Regular, Menlo, monospace" + fontFamily: "JetBrains Mono, ui-monospace, SFMono-Regular, Menlo, Cascadia Code, Consolas, monospace" fontSize: "0.8125rem" fontWeight: 400 lineHeight: 1.65 @@ -189,13 +189,15 @@ The site follows the visitor's system setting (`prefers-color-scheme: dark`); th ## Typography -**Display Font:** Alegreya (with Georgia, serif) -**Body Font:** Alegreya (with Georgia, serif) -**Label Font:** Alegreya SC for dates and small labels; Alegreya Sans for interface text -**Mono Font:** JetBrains Mono (with ui-monospace), ligatures off +**Display Font:** Alegreya (with an old-style serif: Iowan Old Style, Palatino Linotype, Palatino, URW Palladio L, P052, Georgia) +**Body Font:** Alegreya (with the same old-style serifs) +**Label Font:** Alegreya SC for dates and small labels; Alegreya Sans for interface text (with a humanist sans: Seravek, Gill Sans Nova, Ubuntu, Calibri) +**Mono Font:** JetBrains Mono (with ui-monospace, SFMono-Regular, Menlo, Cascadia Code, Consolas), ligatures off **Character:** One humanist book family in three cuts: the serif reads and titles, the small caps date and label, the sans runs the menu, buttons, metadata and table cells. All four families are self-hosted under the SIL Open Font License. +**Fallbacks:** Without the webfonts (before they load, or in a reference guide or example built without them) each role falls back to a face of the same kind that the system ships: Iowan Old Style and Seravek on Apple, Palatino Linotype and Calibri on Windows, URW Palladio or P052 and Ubuntu on Linux, Georgia as the last serif. Labels lose their small caps there. The fallbacks are not size-adjusted; Georgia sets about 9% wider than Alegreya and has a 6% taller x-height. + ### Hierarchy - **Display** (700, `clamp(3.4rem, 5.6vw, 5.1rem)`, 0.9): the homepage lockup "Apache Wicket" beside the mark. The lockup carries no version: the release panel below it names the lines. - **Headline** (700, `clamp(2.4rem, 4.4vw, 3.8rem)`, 1.02): the title of every page on the photo band, at most 20ch wide. diff --git a/_sass/ribbon/_base.scss b/_sass/ribbon/_base.scss index 944a6795..15222aa6 100644 --- a/_sass/ribbon/_base.scss +++ b/_sass/ribbon/_base.scss @@ -30,10 +30,13 @@ --chev-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239A430A' stroke-width='1.6'/%3E%3C/svg%3E"); --chev-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16'%3E%3Cpath d='M8 1L2 8l6 7' fill='none' stroke='%239A430A' stroke-width='2'/%3E%3C/svg%3E"); - --serif: "Alegreya", Georgia, serif; - --sc: "Alegreya SC", "Alegreya", Georgia, serif; - --sans: "Alegreya Sans", "Alegreya", sans-serif; - --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; + // Without the webfonts the stacks fall back to old-style serifs and humanist sans faces + // that the systems ship: Iowan and Seravek on Apple, Palatino Linotype and Calibri on + // Windows, URW Palladio/P052 and Ubuntu on Linux. + --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, Georgia, serif; + --sc: "Alegreya SC", "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, Georgia, serif; + --sans: "Alegreya Sans", Seravek, "Gill Sans Nova", Ubuntu, Calibri, sans-serif; + --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, "Cascadia Code", Consolas, monospace; --pad: 56px; --max: 1440px;
