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
Preview
The 7 choices
Brand colour
#8C5927
The primary button, links and focusTone
Warm
Greys lean warmContrast
Standard
Body text 9.1:1 on cardsFonts
Fraunces / Albert Sans
Fraunces headings, Albert Sans body; JetBrains Mono for codeShape
Soft
6 / 10 / 12 px cornersDensity
Default
4 px spacing step, 32 px controlsMotion
Snappy
125 / 300 / 700 msColour tokens
| Token | Light | Dark | Contrast |
|---|---|---|---|
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 |
| Token | Light | Dark |
|---|---|---|
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
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
Headingfor 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.
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.