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
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
#1B1B1B
The primary button, links and focus
Tone
Neutral
True greys
Contrast
Standard
Body text 21.0:1 on cards
Fonts
Figtree
Headings and body; ui-monospace 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
#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
TokenLightDark
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 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 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 status and coloured Badge variants 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.
… 33 more lines: Colors, Typography, Layout, Elevation, Shapes, Components.
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.

More Astryx themes

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