Butter: an Astryx theme
Pale butter-yellow page, white cards, Outfit type and a vivid cobalt blue accent with soft rounded corners.Change it in tweakui's Astryx theme lab to pick new choices, check contrast and export it with a DESIGN.md.AstryxBuilt into Astryx · @astryxdesign/theme-butter 0.7.16
Preview
The 7 choices
Brand colour
#225BFF
The primary button, links and focusTone
Warm
Greys lean warmContrast
Standard
Body text 17.1:1 on cardsFonts
Outfit
Headings and body; JetBrains Mono for codeShape
Soft
6 / 8 / 12 px cornersDensity
Default
4 px spacing step, 40 px controlsMotion
Snappy
125 / 300 / 700 msColour tokens
| Token | Light | Dark | Contrast |
|---|---|---|---|
Accent--color-accent | #225BFF | #FDEE8C | AAOn accent: 5.2 / 14.5 :1 |
On accent--color-on-accent | #FFFFFF | #1D1C11 | – |
Page--color-background-body | #FDFBE4 | #261A13 | AAAText on page: 16.3 / 15.0 :1 |
Surface--color-background-surface | #FFFFFF | #2E2117 | AAAText on surface: 17.1 / 13.8 :1 |
Muted--color-background-muted | #F3F2E2 | #3A2A1F | AASecondary text on it: 5.7 / 5.9 :1 |
Text--color-text-primary | #1D1C11 | #F3F2E2 | – |
Text secondary--color-text-secondary | #605F52 | #ADAC9E | AAOn surface: 6.4 / 6.8 :1 |
Border--color-border | #E5E3D4 | #F3F2E2 10 % | – |
Success--color-success | #004A05 | #83BC82 | Fills with their own on-colour |
Warning--color-warning | #514700 | #CDBE59 | Fills with their own on-colour |
Error--color-error | #821B00 | #FFC5B5 | Fills with their own on-colour |
Info--color-info | #225BFF | #81A9FF | Fills with their own on-colour |
| Token | Light | Dark |
|---|---|---|
Accent AA5.2 | #225BFF | #FDEE8C |
On accent | #FFFFFF | #1D1C11 |
Page AAA16.3 | #FDFBE4 | #261A13 |
Surface AAA17.1 | #FFFFFF | #2E2117 |
Muted AA5.7 | #F3F2E2 | #3A2A1F |
Text | #1D1C11 | #F3F2E2 |
Text secondary AA6.4 | #605F52 | #ADAC9E |
Border | #E5E3D4 | #F3F2E2 10 % |
Success | #004A05 | #83BC82 |
Warning | #514700 | #CDBE59 |
Error | #821B00 | #FFC5B5 |
Info | #225BFF | #81A9FF |
Use it
Start a new app
Terminal
npm create tweakui@latest my-app -- --theme butter
Add it to an existing Astryx app
Terminal
npx create-tweakui theme butter
1. Add the two files next to your stylesheet. 2. Import them in this order.
Fonts
DESIGN.md for your coding agent
Give your agent Butter's taste: the tokens, how to use them and Astryx Do's and Don'ts, in the file it reads. create-tweakui writes it into your app too.Butter
Overview
Butter pairs a warm pale-yellow page with crisp white cards and a vivid cobalt blue for actions. Outfit gives headings a round, friendly geometry, and in dark mode the accent turns butter yellow on a deep warm ground. It suits friendly consumer apps, onboarding and lightweight productivity tools; avoid it for sober finance or legal products.
Do's and Don'ts
- Do keep cobalt for actions and links; one
variant="primary"Button per view. - Do let the yellow page show between white
Cards; it is the warmth of the theme. - Do use
Badge variant="blue"orvariant="yellow"for tags so they echo the palette. - Do build every control and layout with @astryxdesign/core components; never write custom CSS, font sizes, spacing or radius; the theme file controls them.
Valid DESIGN.md · spec alpha (@google/design.md 0.4.0)
About this theme
Butter pairs a warm pale-yellow page with crisp white cards and a vivid cobalt blue for actions. Outfit gives headings a round, friendly geometry, and in dark mode the accent turns butter yellow on a deep warm ground. It suits friendly consumer apps, onboarding and lightweight productivity tools; avoid it for sober finance or legal products.