Capella Jekyll documentation

Colors, fonts and CSS

Change Capella's colors, light and dark mode and fonts, add your own CSS, choose inline or file CSS, and reword or translate every word the theme prints.

Colors

The colors the theme uses are named in _includes/css/theme.css, as plain CSS. Each one has a light and a dark value, written light-dark(light, dark):

--accent: light-dark(var(--coral-600), var(--coral-400));

The ones you’re most likely to change:

Name Used for
--page The page background
--band The background of tone: band blocks and the footer
--wash The grey wash behind the home page header and hero
--surface Cards and boxes on a band
--ink Text
--ink-muted, --ink-subtle Intros and excerpts, then dates, labels and captions
--line Hairlines
--accent Fills such as the current page number
--accent-ink Coral links and text. Check it’s readable on every background.
--accent-display The coral of large headline words (**word** in a hero)
--accent-soft The soft wash under marked text
--button The dark button (“Read more”, “Send”). It’s the text color turned round.

You can use any color value. Check that text on it is still readable with a contrast checker such as WebAIM’s: 4.5 to 1 for normal text.

The raw color scales (coral and slate, from 50 to 950) are in _includes/css/colors.css. Edit the coral values there to re-color the whole accent at once, or point the names in theme.css at different values.

Your own CSS

Put your own rules in _includes/css/custom.css. It’s loaded last and sits outside the theme’s layers, so anything you write there wins. Theme updates never change this file. For example:

:root {
  --accent: light-dark(#2f6fdd, #8ab4ff);
  --accent-ink: light-dark(#2459b5, #8ab4ff);
}
h1 { font-size: 3rem; }

Keep light-dark(...) if you use dark mode, so each mode has its own value. A plain value such as --accent: #2f6fdd; applies to both.

Light and dark mode

Capella is light by default. Two settings in _config.yml control how it behaves (see Settings):

  • color_scheme is light, dark or auto. auto follows each visitor’s system setting.
  • theme_switch: true adds a light/dark button in the header. A visitor’s choice is remembered in their browser, and color_scheme sets where they start. Without the button, color_scheme applies to everyone.

Inline or file CSS

css under capella: decides how the styles reach the page:

  • inline (the default) puts one <style> block in each page, holding only the CSS that page uses. There’s no extra request, so the page paints at once. This is the setting behind the fast PageSpeed score.
  • file links one ordinary stylesheet, /assets/css/style.css, from every page. The browser keeps it between pages. It’s built from the same files, so the two always match.

Either way, your rules go in _includes/css/custom.css. Don’t edit assets/css/style.css: it’s built for you.

If you add a CSS file of your own to _includes/css/, list it in _data/css.yml so the file mode includes it.

Fonts

Headlines, post titles and pull quotes use EB Garamond, self-hosted in assets/fonts/ as two variable files (upright and italic, weights 400 to 800, Latin letters). It’s licensed under the SIL Open Font License (assets/fonts/OFL.txt). Body text, labels and buttons use the visitor’s own system sans-serif, which costs nothing to load.

The upright file is preloaded. The italic file is fetched only on a page that uses italic serif text, such as the hero’s “Subscribe” link or a pull quote. Capella also describes fallback serifs scaled to match, so nothing jumps while the font loads.

To use another serif:

  1. Put its .woff2 file in assets/fonts/.
  2. Update the @font-face rules in _includes/css/fonts.css.
  3. Update the preload link in _includes/head.html.
  4. Change --font-serif in _includes/css/scale.css (or --font-display in your custom.css).

To use a different body font, change --font-sans in the same way. A different font changes how lines break, so check each page afterwards.

Sizes and spacing

Type sizes, spacing, the page width (--wrap, 1200 pixels) and the width of reading columns (--wrap-narrow, 760 pixels) are in _includes/css/scale.css. They grow smoothly between phone and desktop, so one value works on every screen.

Block backgrounds

Blocks can take a different background with tone:: default, band, wash or ink. See Pages and blocks.

The theme’s words: _data/strings.yml

Nearly every word Capella prints by itself is in _data/strings.yml: “Skip to content”, “Subscribe”, “Read more”, “min read”, “Share”, “Show comments”, “Back to the home page” and more. Reword or translate any line and it changes everywhere.

read_more: Lire la suite
min_read: min de lecture
subscribe: S'abonner
  • Delete a line and the English text built into the theme is used instead. An empty line does the same.
  • Set lang: in _config.yml to match (lang: fr), so browsers and screen readers use the right language.
  • Dates are written in English, like “May 21, 2026”. The format is part of the theme’s files, not of strings.yml.
  • The footer’s “Built with Jekyll” is built_with here. You can reword it, but not empty it: to remove it, edit _includes/footer.html.
  • The headings and text of the 404 and thank-you pages are in 404.html and thank-you.html.

Your own content isn’t in this file. Pages and posts hold their own words, and settings such as capella.quote are in _config.yml.