Με λίγα λόγια
Οι δύο πρώτες σελίδες ενός ταξιδιωτικού άρθρου σε ένα μικρό περιοδικό, με μια χρωματιστή ταινία και μια εικόνα. Δείχνει πώς ένα απλό κείμενο με λίγες επικεφαλίδες γίνεται σχεδιασμένη σελίδα στα δικά σας χρώματα.
Τι θα στοιχειοθετήσετε
Οι πρώτες σελίδες ενός ταξιδιωτικού άρθρου στο Field Notes, ένα μικρό περιοδικό. Η σελίδα 1 είναι μια εναρκτήρια δεξιά σελίδα: μια φωτογραφία με αλυκές και έναν αμμόλοφο στο σούρουπο στο πάνω 58% της σελίδας, ο τίτλος σε Young Serif των 54 pt, και δύο στήλες με πλήρη στοίχιση από κάτω που αρχίζουν το κείμενο με μια έντονη εισαγωγή. Η σελίδα 2, στο πίσω μέρος του φύλλου, συνεχίζει κάτω από μια τρέχουσα κεφαλίδα σε αραιωμένα κεφαλαία και τελειώνει με ένα σήμα τέλους και έναν κολοφώνα. Η σχεδίαση ορίζεται από μία συνάρτηση διαμόρφωσης και μια παλέτα έξι χρωμάτων. Ο τίτλος προέρχεται από την επικεφαλίδα πρώτου επιπέδου, και το εισαγωγικό κείμενο, ο συντάκτης και η ημερομηνία από το frontmatter της συμβολοσειράς Markdown, έτσι το ίδιο pen στοιχειοθετεί κάθε άρθρο του οποίου ο τίτλος χωρά σε δύο γραμμές· μόνο η φωτογραφία ανήκει σε αυτό το άρθρο.
Αυτή η συνταγή απαντά
- Πώς εμποδίζω τις επικεφαλίδες, τις έντονες λέξεις και τις κουκκίδες να βγαίνουν μπλε;
- Πώς στήνω μια σελίδα βιβλίου: διάσταση σελίδας, κατοπτρικά εσωτερικά και εξωτερικά περιθώρια, δύο στήλες και διάκενο;
- Πώς μετατρέπω μια συμβολοσειρά Markdown σε στοιχειοθετημένες σελίδες και σχεδιάζω μία σε καμβά;
Η σύντομη απάντηση
const config = () => ({
locale: t({ en: 'en-us', es: 'es', pt: 'pt', fr: 'fr', de: 'de', it: 'it' }), // the hyphenation
colorPalette: colorPalette(),
page: { // mirror: left is the inner margin and right the outer one; versos swap them
width: mm(PAGE.width), height: mm(PAGE.height),
margins: { top: mm(MARGIN.top), bottom: mm(MARGIN.bottom), left: mm(MARGIN.inner),
right: mm(MARGIN.outer), mirror: true },
},
// 'double' is the default, stated so that the whole page setup reads in one place
layout: { layoutType: 'double', gutterWidth: mm(6) },
bodyText: { // justified, hyphenated and broken by paragraph: all on by default
fontFamily: 'Newsreader', // one family name: there is no fallback chain
fontSize: pt(9.5), lineHeight: pt(LEAD), color: col('ink'),
boldColor: col('ink'), italicColor: col('ink'), referenceColor: col('ink'),
firstLineIndent: mm(4), indentAfterHeading: false,
// Optional, for 70 mm columns: word spaces from 0.8 to 1.8 × the normal one, and runts
// tightened by at most 4 thousandths of an em, so the grey of the text stays even.
minWordSpacing: 0.8, maxWordSpacing: 1.8, maxRuntTracking: 4,
},
headings: {
fontFamily: 'Young Serif', fontWeight: 400, color: col('band'), // it has one weight
levels: [
// span: 'page' opens the H1 on a new page, across both columns. Parity 'odd' puts the
// next article pasted in on a recto, with a blank verso only when one is needed.
{ level: 1, span: 'page', breakBefore: { enabled: true, parity: 'odd' },
advancedDesign: opener() },
// A line of margin and a line and a half of head: 2.5 lines, which snapToGrid (on by
// default) rounds up to 3, so the text below lands back on the grid.
{ level: 2, fontSize: pt(13), lineHeight: pt(1.5 * LEAD), marginTop: pt(LEAD),
marginBottom: pt(0) },
],
},
unorderedLists: { color: col('ink'), fontWeight: 400, bulletChar: '–',
marginTop: pt(0), marginBottom: pt(0) },
calloutStyles: [colophon()],
header: header(),
footer: footer(),
// The magazine's name is its masthead, the same on every story (#849).
checks: { contentInConfig: { allow: [MAGAZINE] } },
});
Υλικά
- Λειτουργίες
- Μεταδεδομένα εγγράφουΣημασιολογική χρωματική παλέταΤρέχουσες κεφαλίδες και αριθμοί σελίδαςΣελίδες σε καμβάΣχεδιασμένες εναρκτήριες σελίδεςΤαινία κεφαλαίου πλήρους πλάτουςΕικόνες στις σχεδιάσεις σελίδαςΑγκύρωση στοιχείων σχεδίασηςΚεφαλίδες ανά ρόλο σελίδαςΓραμματοσειρές πριν από τη σελιδοποίησηΔιάσταση σελίδαςΣυμμετρικά περιθώριαΜία ή δύο στήλεςΓράμματα κυρίως κειμένουΈντονα, πλάγια και τα χρώματά τουςΔείγματα χρώματοςΣυλλαβισμός και γλώσσα του εγγράφουΛίστες με κουκκίδες και λίστες ελέγχουΠλαίσια σημειώσεωνΑλλαγές γραμμής στους τίτλους
- Χρησιμοποιεί επίσης
- Εικόνες και πίνακες ως πόροι
- Γραμματοσειρές
- Newsreader, Young Serif, Inter Tight (SIL OFL 1.1)
- Αρχεία
salt-road-1440.jpg- The salt pans and the dune at dusk on the opener, a photograph (Generated With Diffusion Models, πρωτότυπο)
Προετοιμασία
#1 · Όλες οι γραμματοσειρές, πριν από την πρώτη κατασκευή
const FONTS = {
Newsreader: ['400', '400i', '700'], // text
'Young Serif': ['400'], // display: it ships one weight, so the headings ask for 400
'Inter Tight': ['400', '600'], // labels: kicker, byline, running heads, colophon
};
Το Postext μετρά το κείμενο με τις γραμματοσειρές που έχει ο περιηγητής τη στιγμή που τρέχει η σελιδοποίηση, οπότε μια κατασκευή που θα έτρεχε πριν φτάσουν οι γραμματοσειρές θα κρατούσε τις αλλαγές γραμμής μιας εναλλακτικής γραμματοσειράς. Το buildDocumentWithFonts φορτώνει κάθε γραμματοσειρά που ονομάζει η διαμόρφωση, και όσες είναι στο FONTS, πριν από την πρώτη κατασκευή· το kitFonts(FONTS) του δίνει τα αρχεία από το Fontsource, τα ίδια αρχεία που θα ενσωμάτωνε ένα PDF. Έπειτα εξετάζει τις γραμματοσειρές που χρησιμοποιούν οι σελίδες, φορτώνει όποια λείπει ακόμη και κατασκευάζει ξανά. Μια γραμματοσειρά που δεν διαθέτει το Fontsource μένει σε εναλλακτική και καταγράφεται στο doc.contentWarnings ως fontFallback. Τα έντονα και τα πλάγια μιας γραμματοσειράς κειμένου φορτώνονται μόνο όταν η οικογένεια τα έχει.
#2 · Ονομάστε τα χρώματα, και έπειτα δείξτε στα ονόματα
const palette = {
ink: '#1b1e23', // text: a cool near-black, never #000
band: '#2b3a67', // the one accent (an indigo): the folios, the subheads, the end mark
sand: '#e9dcc0', // the kicker, the title and the byline
salt: '#f7f4ee', // the standfirst
rule: '#d6d3cc', // the hairline over the colophon
muted: '#66686e', // running heads and the colophon
};
// Each colour carries its palette id and its hex. The design objects below are functions
// that config() calls, so col() copies the hex out of `palette` on every build: one edit
// to `palette` reaches the text, the folios and the drop folio alike.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = () => [
...Object.entries(palette)
.map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } })),
// The engine's defaults (headings, bold, italic, bullets, the default running head) link
// to 'main-color': point it at the accent, so nothing left unset prints blue.
{ id: 'main-color', name: 'defaults', value: { hex: palette.band, model: 'hex' } },
];
Κάθε χρώμα της διαμόρφωσης είναι col('id'), ένα αναγνωριστικό της παλέτας με το hex του δίπλα. Τα bodyText.boldColor, italicColor, referenceColor και unorderedLists.color ονομάζουν το ink, και το headings.color ονομάζει το χρώμα έμφασης. Οι προεπιλογές της μηχανής για επικεφαλίδες, έντονα, πλάγια και κουκκίδες συνδέονται με το main-color, και αυτή η παλέτα δείχνει εκείνη την καταχώριση στο χρώμα έμφασης, έτσι όποιο από αυτά παραλείψετε βγαίνει λουλακί αντί για μπλε. Τα αντικείμενα της σχεδίασης είναι συναρτήσεις που καλεί το config() σε κάθε κατασκευή, και το col() αντιγράφει κάθε φορά το τρέχον hex από το palette, έτσι μία αλλαγή στο palette φτάνει εξίσου στο κείμενο, στους αριθμούς σελίδας και στην εναρκτήρια. Το σήμα τέλους είναι ένα δείγμα χρώματος μέσα στη γραμμή που ονομάζει το band, οπότε ένας νέος χρωματισμός φτάνει κι εκεί. Η προεπιλεγμένη τρέχουσα κεφαλίδα συνδέεται κι αυτή με το main-color, οπότε θα τυπωνόταν στο χρώμα έμφασης ώσπου να την αντικαταστήσετε (βήμα 5).
#3 · Μια φωτογραφία κομμένη στο πλαίσιό της
// A JPEG in assets/, cut to PAGE.width × BAND (180 × 140 mm) and declared at its pixels, so at
// full width it fills the band exactly. A deeper band needs a picture cut to the new frame.
const landscape = { id: 'landscape', typeId: 'figure', kind: 'bitmap', createdAt: 0,
updatedAt: 0, bitmap: { fileId: 'salt-road-1440.jpg', format: 'jpeg', width: 1440,
height: 1120 },
altText: 'Salt pans at dusk, a dune with a cairn of white stones on its crest, and a line of '
+ 'footprints crossing the pans towards it.' };
Οι αλυκές, ο αμμόλοφος και ο λιθοσωρός είναι μια φωτογραφία παραγμένη με μοντέλα διάχυσης, τραβηγμένη στο σούρουπο ώστε ο ανοιχτόχρωμος τίτλος να διαβάζεται πάνω σε σκοτεινό ουρανό. Το JPEG είναι κομμένο στο πλαίσιο της ταινίας, PAGE.width × BAND χιλιοστά, και ο πόρος δηλώνει τα εικονοστοιχεία του, 1440 × 1120, έτσι σε πλήρες πλάτος η εικόνα γεμίζει ακριβώς την ταινία. Μια βαθύτερη ταινία χρειάζεται μια εικόνα κομμένη στο νέο πλαίσιο. Η εναρκτήρια τη δείχνει μέσω ενός στοιχείου εικόνας που ονομάζει τον πόρο με το αναγνωριστικό του.
#4 · Το frontmatter γράφει την εναρκτήρια
const BAND = 140; // mm from the top edge: the band holds the top 58% of the page
const TITLE_W = 130; // mm: room for two lines of the title; a third would push the byline
// down onto the pale salt pans: keep titles short
const DECK_W = 104; // mm: the standfirst stops short of the dune and its cairn
const MAGAZINE = t({ en: 'Field notes', es: 'Cuaderno de campo', pt: 'Caderno de campo',
fr: 'Carnet de terrain', de: 'Unterwegs', it: 'Quaderno di campo' });
const label = { fontFamily: 'Inter Tight', fontSize: pt(7.5), fontWeight: 600,
letterSpacing: pt(1.4), textTransform: 'uppercase' };
const below = (id, y, width) => ({ anchor: { to: `#${id}`, edge: 'below' },
offset: { y: mm(y) }, ...(width && { size: { width: mm(width) } }) });
const opener = () => ({
enabled: true,
minHeight: mm(BAND - MARGIN.top + 5), // from the top margin to the band's foot, plus 5 mm
slot: {
elements: [
// The photograph is PAGE.width × BAND (see art): at full width it fills the band.
{ kind: 'image', id: 'art', resourceId: 'landscape',
placement: { anchor: { to: 'bleed', edge: 'top-left' }, size: { width: 'fill' } } },
{ kind: 'text', id: 'kicker', content: MAGAZINE, ...label, color: col('sand'),
placement: { anchor: { to: 'page', edge: 'top-left' }, // recto: inner on the left
offset: { x: mm(MARGIN.inner), y: mm(20) } } },
// {titleText} is the H1; {subtitle}, {author} and {publishDate} are frontmatter. A bare
// lineHeight multiplies the text's size: 1 sets the title solid. Both texts wrap.
{ kind: 'text', id: 'title', content: '{titleText}', fontFamily: 'Young Serif',
fontSize: pt(54), lineHeight: 1, color: col('sand'), align: 'left',
placement: below('kicker', 3, TITLE_W) },
{ kind: 'text', id: 'deck', content: '{subtitle}', fontFamily: 'Newsreader',
fontSize: pt(12), lineHeight: 1.3, italic: true, color: col('salt'), align: 'left',
placement: below('title', 5, DECK_W) },
{ kind: 'text', id: 'byline', ...label, color: col('sand'),
content: t({ en: 'By {author} · {publishDate}',
es: 'Por {author} · {publishDate}', pt: 'Por {author} · {publishDate}',
fr: 'Par {author} · {publishDate}', de: 'Von {author} · {publishDate}', it: 'Di {author} · {publishDate}' }),
placement: below('deck', 4.5) },
],
},
});
Η επικεφαλίδα πρώτου επιπέδου απλώνεται και στις δύο στήλες, και η εναρκτήριά της είναι μια θέση στοιχείων: η φωτογραφία ως το περιθώριο αιμορραγίας και τέσσερα κείμενα αλυσοδεμένα το ένα κάτω από το άλλο. Ένας μακρύτερος τίτλος σπρώχνει το εισαγωγικό κείμενο και την υπογραφή προς τα κάτω αντί να τα επικαλύψει, αλλά πέρα από τις δύο γραμμές η υπογραφή πέφτει πάνω στις ανοιχτόχρωμες αλυκές. Το {titleText} είναι το κείμενο της επικεφαλίδας· τα {subtitle}, {author} και {publishDate} είναι πεδία του frontmatter. Το \\ στην επικεφαλίδα σπάει τον τίτλο εκεί όπου το βάζετε (αλλαγές γραμμής σε τίτλους). Το minHeight μετρά από το πάνω περιθώριο, έτσι το δεσμευμένο ύψος τελειώνει 5 mm κάτω από την ταινία.
#5 · Τρέχουσες κεφαλίδες αντί για το μπλε της προεπιλογής
const HEAD = 12; // mm: the running heads from the top edge, the drop folio from the foot
const GAP = 3; // mm between a folio and its label, however many digits the folio has
const head = (id, content, parity, placement, color = col('muted')) => ({
kind: 'text', id, content, parity, pages: 'body', ...label, color, placement,
});
const outer = (edge, x) => ({ anchor: { to: 'page', edge }, offset: { x: mm(x), y: mm(HEAD) } });
const beside = (id, edge, x) => ({ anchor: { to: `#${id}`, edge }, offset: { x: mm(x) } });
const header = () => ({
elements: [ // folios on the outer margin's edge; each label hangs off its folio
head('verso-folio', '{pageNumber}', 'even', outer('top-left', MARGIN.outer), col('band')),
head('verso-title', '{title}', 'even', beside('verso-folio', 'right-of', GAP)),
head('recto-folio', '{pageNumber}', 'odd', outer('top-right', -MARGIN.outer), col('band')),
head('recto-title', MAGAZINE, 'odd', beside('recto-folio', 'left-of', -GAP)),
],
});
const footer = () => ({
elements: [{ kind: 'text', id: 'drop-folio', content: '{pageNumber}', pages: 'opener',
...label, color: col('band'),
placement: { anchor: { to: 'page', edge: 'bottom' }, offset: { y: mm(-HEAD) } } }],
});
Αν παραλείψετε το header, επιστρέφει η προεπιλογή της μηχανής: Open Sans πάνω από μια γραμμή σε όλο το πλάτος, σε κάθε σελίδα. Εδώ κάθε αριθμός σελίδας αγκυρώνεται στη φυσική σελίδα και φιλτράρεται κατά μονή ή ζυγή σελίδα, οπότε κάθεται πάντα στην εξωτερική άκρη. Η ετικέτα του αγκυρώνεται στον αριθμό σελίδας, σε απόσταση GAP χιλιοστών με right-of ή left-of, και ένας αριθμός σελίδας τριών ή τεσσάρων ψηφίων σπρώχνει την ετικέτα πιο πέρα αντί να πέσει πάνω της. Το pages: 'body' κρατά και τα τέσσερα στοιχεία έξω από την εναρκτήρια. Το υποσέλιδο περιέχει έναν μόνο κατεβασμένο αριθμό σελίδας για την εναρκτήρια, και αφού το footer είναι ορισμένο, οι σελίδες του κυρίως κειμένου χάνουν τον προεπιλεγμένο κεντραρισμένο αριθμό σελίδας.
#6 · Κατασκευάστε με νέα διαμόρφωση, και έπειτα ζωγραφίστε
await loadImage(landscape.bitmap.fileId, asset(landscape.bitmap.fileId));
const doc = await buildDocumentWithFonts({ markdown, resources }, config(), kitFonts(FONTS));
// showPages paints each page with renderPageToCanvas(page, doc, canvas, { scale }).
showPages(doc, {
title: t({ en: 'From a Markdown string to a designed page',
es: 'De una cadena Markdown a una página diseñada',
pt: 'De uma string Markdown a uma página diagramada',
fr: 'D’une chaîne Markdown à une page mise en forme',
de: 'Von einem Markdown-String zur gestalteten Seite',
it: 'Da una stringa Markdown a una pagina progettata' }),
});
Το config() είναι συνάρτηση ώστε κάθε κατασκευή να διαβάζει την παλέτα όπως είναι εκείνη τη στιγμή: καλεί ξανά τις συναρτήσεις σχεδίασης του βήματος 2. Ένα μόνο αντικείμενο διαμόρφωσης που αλλάζει επιτόπου θα δούλευε εξίσου: από το postext 1.25 η μηχανή βλέπει την αλλαγή στην επόμενη κατασκευή. Το buildDocumentWithFonts παίρνει το περιεχόμενο, αυτή τη διαμόρφωση και τις επιλογές γραμματοσειρών του kit, και επιστρέφει το έγγραφο. Το showPages απλώνει τις σελίδες όπως κάθονται σε ένα δεμένο βιβλίο, τη σελίδα 1 μόνη δεξιά, και ζωγραφίζει την καθεμία με το renderPageToCanvas.
Η πλήρης συνταγή
// ═══ Postext Cookbook · Nº 012 · From a Markdown string to a designed page ══════════
// https://postext.dev/en/cookbook/first-page-from-markdown
// Code: MIT · Text: original (CC BY 4.0) · Photo: diffusion models
// Fonts: Newsreader, Young Serif, Inter Tight (SIL OFL 1.1) · Needs postext ≥ 1.88.1
//
// This pen sets a Markdown string with a frontmatter block on two magazine pages and paints
// them on canvases. The whole design is in config(); swap config() for {} in the build
// below to see the engine's defaults.
import {
buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';
const LANG = 'en'; // @lang: the sample document's language ('en' | 'es' | 'pt' | 'fr' | 'de' | 'it')
const RECIPE = 'first-page-from-markdown';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// Every setting that shapes the pages is in this part, from PAGE down to config().
const PAGE = { width: 180, height: 240 }; // mm: a 3:4 magazine page
const MARGIN = { top: 22, bottom: 22, inner: 20, outer: 14 }; // mm; inner is the spine side
const LEAD = 13.5; // pt: the body leading, the grid every vertical space steps on
// #region palette: six named colours; every colour in the config links to one of them
const palette = {
ink: '#1b1e23', // text: a cool near-black, never #000
band: '#2b3a67', // the one accent (an indigo): the folios, the subheads, the end mark
sand: '#e9dcc0', // the kicker, the title and the byline
salt: '#f7f4ee', // the standfirst
rule: '#d6d3cc', // the hairline over the colophon
muted: '#66686e', // running heads and the colophon
};
// Each colour carries its palette id and its hex. The design objects below are functions
// that config() calls, so col() copies the hex out of `palette` on every build: one edit
// to `palette` reaches the text, the folios and the drop folio alike.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = () => [
...Object.entries(palette)
.map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } })),
// The engine's defaults (headings, bold, italic, bullets, the default running head) link
// to 'main-color': point it at the accent, so nothing left unset prints blue.
{ id: 'main-color', name: 'defaults', value: { hex: palette.band, model: 'hex' } },
];
// #endregion
// #region art: a photograph of the salt pans and the dunes at Sorra, cut for a page × band frame
// A JPEG in assets/, cut to PAGE.width × BAND (180 × 140 mm) and declared at its pixels, so at
// full width it fills the band exactly. A deeper band needs a picture cut to the new frame.
const landscape = { id: 'landscape', typeId: 'figure', kind: 'bitmap', createdAt: 0,
updatedAt: 0, bitmap: { fileId: 'salt-road-1440.jpg', format: 'jpeg', width: 1440,
Το συντεθειμένο script.js εκτελείται ως έχει: επικολλήστε το στο module script οποιασδήποτε σελίδας ή ανοίξτε τη συνταγή στο CodePen. Φάκελος της συνταγής στο GitHub ↗ (ανοίγει σε νέα καρτέλα)
Παραλλαγές
#Δείτε τι αντικαθιστά η διαμόρφωση
Κατασκευάστε με κενή διαμόρφωση και το ίδιο Markdown βγαίνει σε σελίδα 17 × 24 cm σε EB Garamond των 8 pt, με μπλε επικεφαλίδες σε Open Sans και μια μπλε τρέχουσα κεφαλίδα πάνω από μια γραμμή· η μηχανή φορτώνει κι αυτές τις δύο οικογένειες, αφού τις ονομάζει η προεπιλεγμένη διαμόρφωση.
-const doc = await buildDocumentWithFonts({ markdown, resources }, config(), kitFonts(FONTS));
+const doc = await buildDocumentWithFonts({ markdown, resources }, {}, kitFonts(FONTS));#Χρωματίστε ξανά ολόκληρη τη σελίδα
Αλλάξτε το χρώμα έμφασης και η επόμενη εκτέλεση ζωγραφίζει τους αριθμούς σελίδας, τους υπότιτλους και το σήμα τέλους στο νέο χρώμα, επειδή το col() αντιγράφει το νέο hex δίπλα στο αναγνωριστικό κάθε φορά που τρέχει το config(). Η φωτογραφία κρατά τα δικά της χρώματα.
- band: '#2b3a67', // the one accent (an indigo): the folios, the subheads, the end mark
+ band: '#3f5b3a', // the one accent (a pine green): the folios, the subheads, the end mark#Ζωγραφίστε μία σελίδα στον δικό σας καμβά
Το renderPageToCanvas δίνει στον καμβά το μέγεθος της σελίδας σε εικονοστοιχεία στα dpi του εγγράφου (300 από προεπιλογή) επί το scale, έτσι το scale: 0.5 ζωγραφίζει περίπου στα 150 dpi, και το CSS αποφασίζει πόσο μεγάλος φαίνεται στην οθόνη.
-showPages(doc, {
- title: t({ en: 'From a Markdown string to a designed page',
- es: 'De una cadena Markdown a una página diseñada',
- pt: 'De uma string Markdown a uma página diagramada',
- fr: 'D’une chaîne Markdown à une page mise en forme',
- de: 'Von einem Markdown-String zur gestalteten Seite',
- it: 'Da una stringa Markdown a una pagina progettata' }),
-});
+const canvas = document.body.appendChild(document.createElement('canvas'));
+renderPageToCanvas(doc.pages[0], doc, canvas, { scale: 0.5 });Συνήθη λάθη
- Η Young Serif διατίθεται σε ένα μόνο βάρος. Οι επικεφαλίδες είναι από προεπιλογή έντονες, οπότε εδώ χρειάζεται το
headings.fontWeight: 400: χωρίς αυτό οι υπότιτλοι ζητούν μια έντονη Young Serif που το Fontsource δεν έχει, ο περιηγητής παχαίνει την κανονική, και τοdoc.contentWarningsκαταγράφει τη γραμματοσειρά ωςfontFallback.
Ευχαριστίες
- Συνταγή
- Ignacio Ferro
- Κείμενο
- Πρωτότυπο κείμενο, CC BY 4.0
- Εικόνες
- The salt pans and the dune at dusk on the opener, a photograph · Generated With Diffusion Models · πρωτότυπο
- Γραμματοσειρές
- Newsreader (SIL OFL 1.1) · Young Serif (SIL OFL 1.1) · Inter Tight (SIL OFL 1.1)
- Κώδικας
- MIT, όπως το Postext
Επεξεργασία αυτού του κειμένου ↗ (ανοίγει σε νέα καρτέλα)Φάκελος της συνταγής στο GitHub ↗ (ανοίγει σε νέα καρτέλα)


