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
Open in editor

Preview

The theme on real Astryx templates. Switch light and dark to see both modes.

The 7 choices

What tweakui's simple controls are set to. Open in editor to change any of them.
Brand colour
#225BFF
The primary button, links and focus
Tone
Warm
Greys lean warm
Contrast
Standard
Body text 17.1:1 on cards
Fonts
Outfit
Headings and body; JetBrains Mono for code
Shape
Soft
6 / 8 / 12 px corners
Density
Default
4 px spacing step, 40 px controls
Motion
Snappy
125 / 300 / 700 ms

Colour tokens

Every colour in light and dark, with contrast against the text that sits on it.
TokenLightDarkContrast
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
TokenLightDark
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 with this theme, add it to an app you have, or copy the code.
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" or variant="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.
… 33 more lines: Colors, Typography, Layout, Elevation, Shapes, Components.
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.

More Astryx themes

All 27 themes
Core
Neutral
Chocolate
Gothic
Matcha
Stone

Get more with Pro

300 AI generations a month and prompts with an image.
What you getFreePro
AI generations3 a month300 a month
Prompt with an image—
Design-library exports—Coming soon
Saved themesUnlimitedUnlimited
$11 a month, tax included
Checkout opens on Polar. Cancel any time.

Install Tweakui

Add Tweakui to your Home Screen to open it like an app.
1. Tap Share in Safari's toolbar.
2. Choose Add to Home Screen.
3. Tap Add.