Typography
Bold rules that create consistency across the whole component library.
Typography is hard. Every style you add makes it clunkier, so building this page was mostly cutting and refactoring until only the essential rules remained. Those rules power every component in the library, and each one is simple. Defining them and applying them on every surface is what makes it hard. Good rules hold every kind of component, and every component holds to them. Enjoy!
5 rules
- 5 styles for the whole site, from page titles to captions.
- 3 weights: regular for text, semibold for headings and selected items, bold for page titles.
- 2 text colors: foreground and muted.
- 1 font family: Inter Variable 4.0. Headings can switch to Geist Serif or any Google Fonts family.
- 1 paragraph style.
5 no-gos
- No uppercase: hierarchy comes from size and weight.
- No letter-spacing: handled with Inter's optical sizing.
- No eyebrows: a section starts with its title.
- No difference with markdown: it uses the same styles and colors as everything else.
- No opacity for text: it's foreground or muted, never a faded step of them.
The scale
5 styles, each a size and a line height. Press S for compact.
Heading font
3 choices for headings: Inter, Geist Serif, or any Google Fonts family. Geist Serif runs the display style 4px larger, in its one Regular cut. Press F to cycle.
Getting started
Install the components you need
Body text stays in Inter, so only the hierarchy changes voice.
Markdown
Markdown gets the same 5 styles, to-dos and tables included.
Type # for a heading, - for a list, [] for a to-do, > for a quote.
Getting started with Fluid Functionalism
Flavors Radix and Base UI · Stack React and Tailwind v4 · License MIT
Setup
Install the type scale and the markdown styles
Add a dropdown and a dialog
Move every list to fluid hover
Sidebar
Command menu
Switch dense screens to compact
How it moves
Every component animates with 3 spring speeds, and hover glides to the item under your cursor instead of blinking. A label turns semibold without moving its neighbors, since fontWeights pairs each weight with an optical size. The motion page has every value.
No component invents its own timing, so everything moves at the same pace.
What you get
Components in 2 flavors
Radix
Base UI
A size ladder of 36px and 28px rows
A skill for your coding agent
Spring speeds
Speed | Duration | Used for |
|---|---|---|
fast | 0.08s | Hover, tooltips, focus rings |
moderate | 0.16s | Dropdowns and tabs |
slow | 0.24s | Dialogs and drawers |
Install
Each piece installs with the shadcn CLI. We planned to ship one big bundle ship one item per component, so you only add what you use:
# One component
npx shadcn@latest add https://www.fluidfunctionalism.com/r/dropdown.json
# The skill for your coding agent
npx skills add mickadesign/fluid-functionalismNext steps
Read the craft notes for each component
Install the skill
Let it read your stack
Fix what it flags
Ship it
Found a bug? Open an issue on GitHub.
Spacing
Space only goes above a block, so streaming text never shifts.
| Gap | Default | Compact |
|---|---|---|
| Above display and title | 24px | 16px |
| Above subtitle | 20px | 12px |
| Below display, title, and subtitle | 8px | 4px |
| Between body blocks | 12px | 8px |
| Above caption | 8px | 4px |
| Between list items | 4px | 4px |
| Around a divider | 24px | 16px |
5 tweaks
Small details that keep text still, snug in its box, and evenly wrapped.
Weight without reflow
Each weight carries its own optical size, so semibold labels keep their width. Idea from @lochieaxon.
Steady numbers
Changing numbers use tabular-nums so every digit is the same width and the words after them hold still.
Trimmed labels
Labels use text-box: trim-both cap alphabetic so the padding you set is the space you see. Idea from @jakubkrehel.
Balanced headings
Headings use text-wrap: balance so their lines come out even.
Give every component the same motion
wrap leaves a short last lineGive every component the same motion
balance evens the linesPretty paragraphs
Paragraphs use text-wrap: pretty so none ends on a lone word.
Hover glides from item to item instead of blinking, so the highlight always sits under your cursor.
wrap leaves one word aloneHover glides from item to item instead of blinking, so the highlight always sits under your cursor.
pretty brings a word down to join itEffect UI port notes
The live text measurements use the active browser font and size. Markdown editing uses vanilla Tiptap, and its Inspect control shows the selected block’s line boxes and top margin.