Fonts and icons
Choose a font pairing, or bring your own from Google Fonts, and host it yourself.
Six font pairings
A font pack sets the heading, body and quote fonts with one attribute. It is separate from the colour theme, so any pack works with any theme. Every font here is open source and is served from this site, not from Google.
Classic
The quick brown fox jumps over the lazy dog
Poppins headings with DM Sans body text. The Product Scope pairing: clear, modern and friendly.
Files to download: Poppins 400, 500, 600, 700 · DM Sans 400, 500, 600, 700 · DM Serif Display 400
Modern
The quick brown fox jumps over the lazy dog
Inter throughout, with Lora for quotes. Neutral and highly legible; suits products, dashboards and documentation.
Files to download: Inter 400, 600, 700 · Lora 400, 600
Editorial
The quick brown fox jumps over the lazy dog
Playfair Display headings with Source Sans 3 body text. Authoritative and refined; suits law, finance and advice.
Files to download: Playfair Display 500, 700 · Source Sans 3 400, 600
Warm
The quick brown fox jumps over the lazy dog
Lora headings with Inter body text. A friendly, bookish voice with a clean reading face; suits guides, health and hospitality.
Files to download: Lora 400, 600 · Inter 400, 600, 700
Travel
The quick brown fox jumps over the lazy dog
DM Serif Display headings with Space Grotesk body text. Editorial and a little unexpected; suits travel, culture and personal sites.
Files to download: DM Serif Display 400 · Space Grotesk 400, 500, 700
Friendly
The quick brown fox jumps over the lazy dog
Montserrat headings with DM Sans body text. Geometric and confident; suits services and professional practices.
Files to download: Montserrat 500, 600, 700 · DM Sans 400, 500, 600, 700 · DM Serif Display 400
Use any Google font
The packs are a starting point. Any font from Google Fonts works, because the blocks only read three variables.
- Choose a font at fonts.google.com. Pick a heading font and a body font, and note which weights you want. Four weights is plenty; every extra weight is another file for visitors to download.
- Download the files. The easiest route is google-webfonts-helper: search the family, pick the weights and the Latin set, and download a zip of WOFF2 files with ready-made CSS. If you use Node,
npm install @fontsource/interputs the same WOFF2 files innode_modules/@fontsource/inter/files/. The Download button on Google Fonts itself gives TrueType files, which you would need to convert to WOFF2. - Host them with your site. Put the WOFF2 files in a
/fonts/folder and declare them, then point the tokens at the family:@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); } /* repeat for each weight you use: 600, 700 */ /* then point the tokens at it, or load a font pack */ :root { --blk-font-heading: "Inter", system-ui, sans-serif; --blk-font-body: "Inter", system-ui, sans-serif; } - Or add a pack. Link
/fonts/classic.css(or any pack) afterblocks.cssand setdata-blk-fontson the page. The pack only sets the variables; you still supply the font files. - Preload the body font so text does not jump:
<link rel='preload' href='/fonts/inter-400.woff2' as='font' type='font/woff2' crossorigin>.
Why self-host instead of linking to Google? Your pages make no third-party request, load faster from one origin, and keep working under a strict Content-Security-Policy. Check the licence of any font you add; the ones here are all under the SIL Open Font License.
Icons
The blocks use inline SVG icons, which are crisp, need no request and take the accent colour. Avoid icon fonts: they need a font file, break when it fails to load, and are harder to make accessible.
- Find an icon. Lucide has a clean line style that matches the blocks (ISC licence). Material Symbols at Google Fonts has a very large set (Apache 2.0 licence).
- Copy it as SVG. On Lucide, open the icon and choose Copy SVG. On Google Fonts, open the icon, choose the SVG tab and download it, then open the file in a text editor. Pick the lightest weight and a size of 24 for the closest match.
- Paste it into the block. Remove any width and height, add
aria-hidden="true"if the icon is decoration, and keepcurrentColorso it follows the theme:<span class="blk-feature__icon"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <!-- paste the paths from your icon here --> </svg> </span> - Material icons are filled shapes, not lines. Add the class
blk-icon--fillto the svg and it takesfill: currentColorinstead of a stroke. - If an icon carries meaning on its own, give the svg
role="img"and anaria-label. If the text beside it already says the same thing, keep it hidden from screen readers.
Want a site built on blocks like these?
I help teams plan, build and ship websites, products and automation, using AI where it makes the work faster and safer.