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¶
| Hue | lead | soft | deep | tint |
|---|---|---|---|---|
| cherry | ||||
| tangerine | ||||
| amber | ||||
| lime | ||||
| emerald | ||||
| teal | ||||
| sky | ||||
| cobalt | ||||
| indigo | ||||
| violet | ||||
| magenta | ||||
| rose |
gray-1gray-2gray-3gray-4gray-5gray-6gray-7gray-8gray-9paper-1paper-2paper-3inkquietedgebarDark¶
| Hue | lead | soft | deep | tint |
|---|---|---|---|---|
| cherry | ||||
| tangerine | ||||
| amber | ||||
| lime | ||||
| emerald | ||||
| teal | ||||
| sky | ||||
| cobalt | ||||
| indigo | ||||
| violet | ||||
| magenta | ||||
| rose |
gray-1gray-2gray-3gray-4gray-5gray-6gray-7gray-8gray-9paper-1paper-2paper-3inkquietedgebarA 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.
h1Hamburgefonstiv 0123
h2Hamburgefonstiv 0123
h3Hamburgefonstiv 0123
h4Hamburgefonstiv 0123
h5Hamburgefonstiv 0123
h6Hamburgefonstiv 0123
bodyHamburgefonstiv 0123
leadHamburgefonstiv 0123
navHamburgefonstiv 0123
tableHamburgefonstiv 0123
captionHamburgefonstiv 0123
codeHamburgefonstiv 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.