Neutral: an Astryx theme
Light grey page, white cards, near-black buttons, Figtree type and soft rounded corners; colour only where status needs it.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-neutral 0.7.16
Preview
The 7 choices
Brand colour
#1B1B1B
The primary button, links and focusTone
Neutral
True greysContrast
Standard
Body text 21.0:1 on cardsFonts
Figtree
Headings and body; ui-monospace 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 | #1B1B1B | #F1F1F1 | AAAOn accent: 17.2 / 16.7 :1 |
On accent--color-on-accent | #FFFFFF | #111111 | – |
Page--color-background-body | #F1F1F1 | #1B1B1B | AAAText on page: 18.5 / 17.2 :1 |
Surface--color-background-surface | #FFFFFF | #262626 | AAAText on surface: 21.0 / 15.1 :1 |
Muted--color-background-muted | #F1F1F1 | #1B1B1B | AASecondary text on it: 8.2 / 6.4 :1 |
Text--color-text-primary | #000000 | #FFFFFF | – |
Text secondary--color-text-secondary | #474747 | #9E9E9E | AAOn surface: 9.2 / 5.6 :1 |
Border--color-border | #000000 8 % | #FFFFFF 10 % | – |
Success--color-success | #198100 | #64AF4C | Fills with their own on-colour |
Warning--color-warning | #FFCE2F | #FFCE2F | Fills with their own on-colour |
Error--color-error | #C9303A | #FF705D | Fills with their own on-colour |
Info--color-info | #0074E2 | #6D9CFE | Fills with their own on-colour |
| Token | Light | Dark |
|---|---|---|
Accent AAA17.2 | #1B1B1B | #F1F1F1 |
On accent | #FFFFFF | #111111 |
Page AAA18.5 | #F1F1F1 | #1B1B1B |
Surface AAA21.0 | #FFFFFF | #262626 |
Muted AA8.2 | #F1F1F1 | #1B1B1B |
Text | #000000 | #FFFFFF |
Text secondary AA9.2 | #474747 | #9E9E9E |
Border | #000000 8 % | #FFFFFF 10 % |
Success | #198100 | #64AF4C |
Warning | #FFCE2F | #FFCE2F |
Error | #C9303A | #FF705D |
Info | #0074E2 | #6D9CFE |
Use it
Start a new app
Terminal
npm create tweakui@latest my-app -- --theme neutral
Add it to an existing Astryx app
Terminal
npx create-tweakui theme neutral
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 Neutral'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.Neutral
Overview
Neutral is a monochrome workspace: light grey page, white cards, near-black primary buttons and Figtree for all text. Corners are softly rounded and shadows light, so the layout reads through spacing and contrast rather than colour. It suits tools, editors and admin screens where content should carry the colour; avoid it when the product needs a warm or playful voice.
Do's and Don'ts
- Do let the black
variant="primary"Button be the only filled action in a view. - Do leave colour to status:
Banner statusand colouredBadgevariants for meaning, not decoration. - Do separate areas with white
Cards and space before reaching for dividers. - 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
Neutral is a monochrome workspace: light grey page, white cards, near-black primary buttons and Figtree for all text. Corners are softly rounded and shadows light, so the layout reads through spacing and contrast rather than colour. It suits tools, editors and admin screens where content should carry the colour; avoid it when the product needs a warm or playful voice.