Prototype for review, not deployed. Newsreader + Schibsted Grotesk (served locally, italic included), palette from the logo (petrol, sage, sand, rose) instead of gold, the logo blob as a recurring shape, petrol bands with a wave edge, margin-note section labels and uneven columns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
2 KiB
JavaScript
29 lines
2 KiB
JavaScript
/**
|
|
* Curated font list for the "Design" tab's font pickers and the rich-text
|
|
* editor's per-selection font picker. Kept in sync by hand with
|
|
* src/lib/fonts.ts (duplicated because the Astro site is ESM/TS and this
|
|
* backend is CommonJS).
|
|
*/
|
|
const FONT_OPTIONS = [
|
|
{ name: 'Playfair Display', fallback: "Georgia, 'Times New Roman', serif" },
|
|
{ name: 'Lora', fallback: "Georgia, 'Times New Roman', serif" },
|
|
{ name: 'Merriweather', fallback: "Georgia, 'Times New Roman', serif" },
|
|
{ name: 'Libre Baskerville', fallback: "Georgia, 'Times New Roman', serif" },
|
|
{ name: 'DM Serif Display', fallback: "Georgia, 'Times New Roman', serif" },
|
|
{ name: 'Newsreader', fallback: "Georgia, 'Times New Roman', serif" },
|
|
{ name: 'Georgia (Systemschrift)', fallback: "Georgia, 'Times New Roman', serif" },
|
|
{ name: 'Inter', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
{ name: 'Roboto', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
{ name: 'Open Sans', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
{ name: 'Poppins', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
{ name: 'Montserrat', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
{ name: 'Nunito', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
{ name: 'Work Sans', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
{ name: 'Source Sans 3', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
{ name: 'Schibsted Grotesk', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
{ name: 'System UI (Systemschrift)', fallback: "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" },
|
|
];
|
|
|
|
const FONT_NAMES = FONT_OPTIONS.map((f) => f.name);
|
|
|
|
module.exports = { FONT_OPTIONS, FONT_NAMES };
|