Chocolate: an Astryx theme

Cream page and surfaces, brown accent, Fraunces serif headings over Albert Sans body, soft corners and warm tan borders.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-chocolate 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
#8C5927
The primary button, links and focus
Tone
Warm
Greys lean warm
Contrast
Standard
Body text 9.1:1 on cards
Fonts
Fraunces / Albert Sans
Fraunces headings, Albert Sans body; JetBrains Mono for code
Shape
Soft
6 / 10 / 12 px corners
Density
Default
4 px spacing step, 32 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
#8C5927
#D4A06A
AAOn accent: 5.8 / 4.9 :1
On accent--color-on-accent
#FFFFFF
#4A3520
–
Page--color-background-body
#FFFCF7
#141010
AAAText on page: 11.2 / 14.9 :1
Surface--color-background-surface
#FFFCF7
#1C1610
AAAText on surface: 11.2 / 14.2 :1
Muted--color-background-muted
#EDE4D4
#2A2018
AASecondary text on it: 4.5 / 7.0 :1
Text--color-text-primary
#4A3520
#EDE4D4
–
Text secondary--color-text-secondary
#8A5D2E
#C4A882
AAOn surface: 5.5 / 7.9 :1
Border--color-border
#C4AC95
#EDE4D4 10 %
–
Success--color-success
#709900
#96BF2A
Fills with their own on-colour
Warning--color-warning
#FFB600
#FFC940
Fills with their own on-colour
Error--color-error
#FD0000
#FF5C5C
Fills with their own on-colour
Info--color-info
#3A5E8C
#7BA8D4
Fills with their own on-colour
TokenLightDark
Accent
AA5.8
#8C5927
#D4A06A
On accent
#FFFFFF
#4A3520
Page
AAA11.2
#FFFCF7
#141010
Surface
AAA11.2
#FFFCF7
#1C1610
Muted
AA4.5
#EDE4D4
#2A2018
Text
#4A3520
#EDE4D4
Text secondary
AA5.5
#8A5D2E
#C4A882
Border
#C4AC95
#EDE4D4 10 %
Success
#709900
#96BF2A
Warning
#FFB600
#FFC940
Error
#FD0000
#FF5C5C
Info
#3A5E8C
#7BA8D4

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 chocolate
Add it to an existing Astryx app
Terminal
npx create-tweakui theme chocolate
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 Chocolate'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.

Chocolate

Overview
Chocolate is warm and bookish: cream page and surfaces, milk-chocolate brown for actions, tan borders, and Fraunces serif headings over a clean Albert Sans body. Cards sit on the same cream as the page, so borders do the separating. It suits editorial products, food and hospitality, journals and calm reading apps; avoid it for dense data tables or cool, technical brands.
Do's and Don'ts
  • Do use Heading for titles so the Fraunces serif carries the character.
  • Do separate Cards with their tan border rather than a contrasting fill.
  • Do keep brown for the one variant="primary" Button and links.
  • 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

Chocolate is warm and bookish: cream page and surfaces, milk-chocolate brown for actions, tan borders, and Fraunces serif headings over a clean Albert Sans body. Cards sit on the same cream as the page, so borders do the separating. It suits editorial products, food and hospitality, journals and calm reading apps; avoid it for dense data tables or cool, technical brands.

More Astryx themes

All 27 themes
Core
Neutral
Butter
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.