Foundations
Rules that stay, values that move
Color roles, type, space, radius, elevation, and focus are the same in every product. The theme changes the values, not the rules.
Rules
- Primary
- Primary actions. One main action on a view uses this color.
- Accent
- Focus and emphasis. It is not a second primary button.
- Success, warning, destructive
- These keep their meaning in every theme. They are not decoration.
- Radius
- The base is configurable. Small is 0.55 × base, medium is 0.8 × base, large is 1.05 × base.
- Spacing
- 4, 8, 12, 16, 24, and 32 pixels.
- Type
- Body text and headings can use different families. Heading sizes follow the type scale ratio times the body size.
- Focus
- A 2px ring with an offset. Buttons draw the ring and the offset. Some fields draw the ring only.
- Text on a tint
- The target is 4.5:1. The figure on this page is a calculation, not an audit.
Color
Primary is the main action. Accent is focus and emphasis. These two follow Blue app. Success, warning, and destructive keep their hues.
Primary
#1035A3
Primary actions
Accent
#0E80F2
Focus and emphasis
Page
#F4F7FB
The preview background
Text
#0F172A
Words
Card
#FFFFFF
Boxes sitting on the page
Line
#E2E8F0
Borders
Success
#067647
Stays green in every theme
Warning
#B54708
Stays amber in every theme
Destructive
#B42318
Stays red in every theme
Semantic status
In this light preview, success, warning, and destructive match across Blue app, Shop, Health notes, and Editorial.
| Theme | Success | Warning | Destructive |
|---|---|---|---|
| Blue app | #067647 | #B54708 | #B42318 |
| Shop | #067647 | #B54708 | #B42318 |
| Health notes | #067647 | #B54708 | #B42318 |
| Editorial | #067647 | #B54708 | #B42318 |
Type
Headings and body text can use different families. This theme uses Outfit for body text. Heading size follows the type scale. The choices are Outfit, Newsreader, Montserrat, and a family you name.
Large header
Display · Large header44px · line height 51px · weight 600 Semibold
Page title
Header · Page title33px · line height 40px · weight 600 Semibold
Section title
Subheader · Section title25px · line height 31px · weight 500 Medium
Title
Title · Item title19px · line height 25px · weight 500 Medium
Body text stays easy to read at this size.
Body · Reading text14px · line height 21px · weight 400 Regular
Caption
Small · Caption11px · line height 15px · weight 400 Regular
Spacing
The scale is 4, 8, 12, 16, 24, and 32 pixels. It does not change with the theme.
Radius
Base radius is 14px. Small is 0.55 × base (8px). Medium is 0.8 × base (11px). Large is 1.05 × base (15px).
Small
0.55 × base · 8px
Medium
0.8 × base · 11px
Large
1.05 × base · 15px
Base
1 × base · 14px
Elevation and focus
Cards sit on the page with a one-pixel line. There is no drop shadow on the card. Keyboard focus on a button is a 2px ring in the accent color, with a 2px offset. Press Tab to see it on the first button. The second button paints that ring so it is visible without the keyboard.
A card on the page
If a panel needs to feel closer, use the card color on the page color.
Tab here
Focus, painted
Contrast
Text on a tinted surface targets 4.5:1. These ratios are calculated from Blue app in light mode. They are not the result of an accessibility test suite. A dark wash, where the theme text fails on the darker stop, uses the light foreground and a light primary button with a dark label. A light wash keeps dark text.
| Pair | Text | Surface | Ratio | Target |
|---|---|---|---|---|
| Primary button text | #FFFFFF | #1035A3 | 10.19:1 | Meets 4.5:1 |
| Accent text on tint | #0E61B6 | #CFE4FA | 4.74:1 | Meets 4.5:1 |
| Success text on tint | #076843 | #CEE2DE | 5.07:1 | Meets 4.5:1 |
| Warning text on tint | #9C400D | #EADBD4 | 4.94:1 | Meets 4.5:1 |
| Destructive text on tint | #B42318 | #EAD5D7 | 4.70:1 | Meets 4.5:1 |
| Text on the darker wash stop | #0F172A | #A1CCF8 | 10.63:1 | Meets 4.5:1 |
| Secondary text on the darker wash stop | #475569 | #A1CCF8 | 4.51:1 | Meets 4.5:1 |
| Accent text on the darker wash stop | #0E4B8C | #A1CCF8 | 5.20:1 | Meets 4.5:1 |
| Primary button on the wash | #FFFFFF | #1035A3 | 10.19:1 | Meets 4.5:1 |
How to read the target, and what has not been tested, is on the accessibility page.
Open accessibility