Typography
Use the shared type scale, font weights, line heights, tracking, and text styles to create a clear hierarchy.
Choose a text role
Choose a semantic heading level for document structure, then apply a shared text style for visual hierarchy. Use body for reading copy, caption for short component text, and Code for technical values.
Project activity
Review the latest work across your project.
import { Heading, Text } from "@smoothie-framework/whisk-react";
<Heading level={2} textStyle="h3">Project activity</Heading>
<Text textStyle="body" color="subtle">
Review the latest work across your project.
</Text>Fonts
Choose body for reading, heading for hierarchy, and mono for technical values.
heading
Ag
body
Ag
mono
Ag
Font sizes
Use the shared scale to create visual emphasis without changing semantic structure.
2xs0.625rem
Aa
xs0.75rem
Aa
sm0.875rem
Aa
md1rem
Aa
lg1.125rem
Aa
xl1.25rem
Aa
2xl1.5rem
Aa
3xl1.875rem
Aa
4xl2.25rem
Aa
5xl3rem
Aa
6xl3.75rem
Aa
7xl4.5rem
Aa
8xl6rem
Aa
9xl8rem
Aa
Font weights
Increase weight for emphasis, not as a replacement for hierarchy or contrast.
thin100
Aa
light300
Aa
normal400
Aa
medium500
Aa
semibold600
Aa
bold700
Aa
extrabold800
Aa
Line heights
Use more leading for reading copy and tighter leading for short display text.
shorter1.25
A good smoothie takes a bunch of ingredients that have no business being together, fruit, ice, maybe some spinach if you're that person, and blends them into something that just works.
short1.375
A good smoothie takes a bunch of ingredients that have no business being together, fruit, ice, maybe some spinach if you're that person, and blends them into something that just works.
moderate1.5
A good smoothie takes a bunch of ingredients that have no business being together, fruit, ice, maybe some spinach if you're that person, and blends them into something that just works.
tall1.625
A good smoothie takes a bunch of ingredients that have no business being together, fruit, ice, maybe some spinach if you're that person, and blends them into something that just works.
taller2
A good smoothie takes a bunch of ingredients that have no business being together, fruit, ice, maybe some spinach if you're that person, and blends them into something that just works.
Letter spacings
Keep tracking at its default for reading copy and change it only when the text role needs it.
tighter-0.05em
Smoothie Framework
tight-0.025em
Smoothie Framework
normal0em
Smoothie Framework
wide0.025em
Smoothie Framework
wider0.05em
Smoothie Framework
widest0.1em
Smoothie Framework
TextStyle
Text styles apply a shared visual composition while the element keeps its semantic role.
displayWhisk/UI
h1Whisk/UI
h2Whisk/UI
h3Whisk/UI
bodyWhisk/UI
body-smWhisk/UI
captionWhisk/UI
codeWhisk/UI
Readable product copy.
STATUS
import { Text } from "@smoothie-framework/whisk-react";
<Text textStyle="body">Readable product copy.</Text>
<Text textStyle="caption" color="subtle">STATUS</Text>Keep text readable
- Use body text for longer passages and labels for short component text.
- Keep visible text and its background at a readable contrast in every theme.
- Do not use visual size to replace a logical heading hierarchy.