Using Pastry (#F8DEB8) in Interface Design: Scale, Buttons and Dark Mode
A working design system from Pastry #F8DEB8: a 50 to 950 scale, button states with contrast, a dark-mode version, an accessible link color and the CSS to paste in.
Pastry (#F8DEB8) is a very light, muted beige. As an interface color it has a clear personality: it is light enough that dark labels read better than white ones, which makes it better as a surface, a highlight or a data color than as a button. This guide shows how to build a working interface from it: a full scale, every button state, a dark-mode version, a link color that passes, and the CSS to paste in.
A scale built from Pastry
A single color is not enough for an interface. You need lighter steps for surfaces and borders and darker steps for text and hover states. This 50 to 950 scale keeps the hue and saturation of Pastry and moves only the lightness. The step closest to Pastry keeps its exact value.
| Step | Hex | Contrast on white | Best text on it |
|---|---|---|---|
| 50 | #F9F6F2 | 1.07:1 | #111111 |
| 100 | #F1EAE1 | 1.19:1 | #111111 |
| 200 | #F8DEB8 | 1.30:1 | #111111 |
| 300 | #D0BEA5 | 1.81:1 | #111111 |
| 400 | #B49E7E | 2.58:1 | #111111 |
| 500 | #9A825F | 3.66:1 | #111111 |
| 600 | #816B4A | 5.07:1 | #FFFFFF |
| 700 | #675538 | 7.15:1 | #FFFFFF |
| 800 | #4F4029 | 10.01:1 | #FFFFFF |
| 900 | #3A2E1C | 13.22:1 | #FFFFFF |
| 950 | #21190C | 17.36:1 | #FFFFFF |
Button states
Interactive elements need to look different when you hover, press and disable them, and each state still has to be readable. These values are made from Pastry itself, so the button stays in family.
| State | Background | Label | Label contrast |
|---|---|---|---|
| Default | #F8DEB8 | #111111 | 14.50:1 |
| Hover | #EAD2AE | #111111 | 12.88:1 |
| Pressed | #DEC7A5 | #111111 | 11.52:1 |
| Disabled | #FCF3E7 | #6B7280 | 4.40:1 |
Disabled controls are exempt from WCAG contrast rules, but they still need to be recognizable, so the label is kept dark enough to read. For keyboard focus, use an outline of Morrel (#A78F6B), which reaches 3 to 1 against a white page, the minimum for interface parts.
Dark mode
On a near-black page (#0F1115), Pastry reaches 14.51:1 (AAA). That is enough to use it directly as text, a link or an icon in dark mode.
Links and text
Pastry on white reaches only 1.30:1, which is not enough for text. For links and small headings use Mossy (#88714E), the closest shade that reaches 4.5 to 1, and keep Pastry itself for fills and large display type.
Surfaces and borders
Tints of Pastry make quiet surfaces that feel connected to the brand without competing with it. White (#FFFDFB) works as a card or page tint, and Snow (#FDF8F2) as a border or divider.
The CSS
:root {
--brand: #F8DEB8;
--brand-hover: #EAD2AE;
--brand-active: #DEC7A5;
--on-brand: #111111;
--brand-surface: #FFFDFB;
--brand-border: #FDF8F2;
--brand-text: #88714E;
--focus-ring: #A78F6B;
}
@media (prefers-color-scheme: dark) {
:root {
--brand: #F8DEB8;
--brand-text: #F8DEB8;
}
}A short checklist
- Use Pastry for the one action you most want people to take.
- Put #111111 text on it and check that the ratio stays above 4.5 to 1.
- Use the scale for hover, pressed, border and surface colors rather than inventing new ones.
- Define a separate dark-mode value and test it on a dark page.
- Never use the color as the only signal: add an icon, a label or an underline.