Skip to content

Built-in themes

View Markdownllms.txt

Folio has three built-in themes: paper (the default), ink and editorial. Pick one with @theme at the start of the document or in the project theme. Any token can be replaced with @color and @font.

@theme editorial
@color accent #0f766e
@font display "Playfair Display" 700
paperinkeditorial
LookLight, cream paperDarkLight, magazine
Text font (body)BarlowInterSource Sans 3
Heading font (display)Archivo BlackInterFraunces
Code font (mono)JetBrains MonoJetBrains MonoJetBrains Mono
Text size40 px38 px40 px
Text line height1.351.41.4
Slide padding (vertical × horizontal)96 × 128 px96 × 128 px104 × 140 px
Space between slide blocks32 px32 px32 px
Code blocksDark backgroundDark backgroundLight background

In every theme, slide content starts aligned to the left and vertically centered.

The default theme: cream background, graphite text and a coral accent.

TokenValue
bg#fbf7ef
text#1f2430
muted#6b6f7b
accent#f2603d
surface#ffffff
line#1f243026
FontFamilyLoaded weights
bodyBarlow300, 400, 500, 600, 700, 900
displayArchivo BlackFamily default
monoJetBrains Mono400, 700
LevelSizeWeightFontLine height
#88 px400display1.02
##64 px400display1.05
###52 px700body1.1
####40 px700body1.2
#####32 px700body1.2
######26 px700body1.2
@theme paper
::: columns {gap=xl}
::: stack {gap=sm}
Paper theme {.kicker}
# Clear and direct
Text in Barlow, headings in Archivo Black. {.muted}
:::
::: box {.card}
### Card
`surface` background with an [accent]{.accent}.
:::
:::

Dark theme: near-black background, light text and an amber accent. It also redefines the ink token.

TokenValue
bg#12141c
text#f4f1ea
muted#a3a7b3
accent#ffb547
surface#1d2130
line#ffffff26
ink#0b0c11
FontFamilyLoaded weights
bodyInter300, 400, 500, 600, 700, 800, 900
displayInter300, 400, 500, 600, 700, 800, 900
monoJetBrains Mono400, 700
LevelSizeWeightFontLine height
#92 px800display1.0
##66 px800display1.05
###50 px700body1.1
####40 px700body1.2
#####32 px600body1.2
######26 px600body1.2
@theme ink
::: columns {gap=xl}
::: stack {gap=sm}
Ink theme {.kicker}
# Dark and bold
All in Inter, with headings at weight 800. {.muted}
:::
::: box {.card}
### Card
`surface` background with an [accent]{.accent}.
:::
:::

Magazine theme: paper background, serif headings and a brick-red accent. The first three heading levels use the display font.

TokenValue
bg#f6f1e7
text#1b1b1b
muted#6d665c
accent#b23a2b
surface#fffdf8
line#1b1b1b22
FontFamilyLoaded weights
bodySource Sans 3300, 400, 600, 700, 900
displayFraunces400, 600, 700, 900
monoJetBrains Mono400, 700
LevelSizeWeightFontLine height
#96 px600display1.0
##68 px600display1.05
###52 px600display1.1
####40 px700body1.2
#####32 px700body1.2
######26 px700body1.2
@theme editorial
::: columns {gap=xl}
::: stack {gap=sm}
Editorial theme {.kicker}
# Elegant and serif
Text in Source Sans 3, headings in Fraunces. {.muted}
:::
::: box {.card}
### Card
`surface` background with an [accent]{.accent}.
:::
:::

These tokens exist in every theme, with the same values (except ink, which the ink theme redefines).

TokenValue
coral#f2603d
blue#2f6fdb
green#23976a
yellow#f2b632
violet#7c5cd6
white#ffffff
black#000000
ink#151821 (#0b0c11 in the ink theme)
paper#fbf7ef
transparent#00000000

The chart palette uses, in order, accent, blue, green, yellow, violet and coral, with the values of the current theme.

Available in every theme. Apply them with {.name}; a @style with the same name replaces the built-in style.

StyleDefinitionUse
.mutedcolor=mutedSecondary text.
.accentcolor=accentText in the accent color.
.leadsize=xl color=mutedOpening paragraph, larger and softer.
.kickersize=sm weight=bold uppercase tracking=0.14 color=accentShort label above a heading.
.displayfont=displayUses the heading font.
.hugefont=display size=6xl leading=0.95Huge text, for numbers and punchlines.
.cardbg=surface radius=lg pad=lg shadow=mdCard with background, corners and shadow.
.darkbg=ink color=paperDark background with light text.
.centeralign=centerCenters horizontally.