Skip to content

Tokens

Every fly-january rule reads --fly-* custom properties. The swatches and specimens on this page are drawn from those variables as the browser resolves them, so they show the values this release ships. DESIGN-TOKENS.md records where each value came from; fly-tokens.css on the assets page carries the same tokens for pages outside MkDocs.

Palette

Twelve hues, each with a lead colour and a soft (lighter), deep (darker) and tint (surface wash) variant, nine greys and the paper surfaces. Light values apply to the default scheme, dark values to the slate scheme. Both panels keep their scheme whichever the palette toggle selects for the rest of the page. The columns are --fly-<hue>, --fly-<hue>-soft, --fly-<hue>-deep and --fly-<hue>-tint; hover a swatch for its name.

Light

Hueleadsoftdeeptint
cherry
tangerine
amber
lime
emerald
teal
sky
cobalt
indigo
violet
magenta
rose
gray-1gray-2gray-3gray-4gray-5gray-6gray-7gray-8gray-9
paper-1paper-2paper-3inkquietedgebar

Dark

Hueleadsoftdeeptint
cherry
tangerine
amber
lime
emerald
teal
sky
cobalt
indigo
violet
magenta
rose
gray-1gray-2gray-3gray-4gray-5gray-6gray-7gray-8gray-9
paper-1paper-2paper-3inkquietedgebar

A site picks its accent with extra.fly.hue, a page with fly: {hue: …}; links, primary buttons and the active navigation follow it. gray is a thirteenth, neutral accent for index pages.

Type roles

Twelve block roles, each with nine variables: --fly-<role>-family, -weight, -stretch, -features, -variation, -size, -leading, -tracking and -scale. This site sets the families of h1, h2, body, lead, nav and caption in extra.fly.fonts.roles (see configuration); the other roles keep the theme defaults or follow the role they reference.

h1

Hamburgefonstiv 0123

h2

Hamburgefonstiv 0123

h3

Hamburgefonstiv 0123

h4

Hamburgefonstiv 0123

h5

Hamburgefonstiv 0123

h6

Hamburgefonstiv 0123

body

Hamburgefonstiv 0123

lead

Hamburgefonstiv 0123

nav

Hamburgefonstiv 0123

table

Hamburgefonstiv 0123

caption

Hamburgefonstiv 0123

code

Hamburgefonstiv 0123

The inline roles em, strong and mono have -family, -weight and -adjust (an x-height multiplier for mixed families): emphasis, strong and mono.

Grid and sizes

1rem is half a body line, and every vertical length in flowing text is a whole number of rems. Continuous text uses exactly three sizes.

Token Value At the 14.4px root Use
--fly-half 1rem 14.4px half a line; the vertical step
--fly-line 2rem 28.8px the body line
--fly-size-xs 0.9722rem 14px captions, table heads, navigation, footers
--fly-size-sm 1.25rem 18px body text, tables
--fly-size-md 1.625rem 23.4px lead paragraphs, blockquotes

xs Captions and navigation sit at the small size.

sm Body text and tables use the middle size.

md Lead paragraphs use the large size.

The root is 90% of the browser's font size (14.4px by default), 99% from 100em and 108% from 125em, so wide screens scale the whole grid while 1rem stays half a line.