Core: an Astryx theme

Cool grey page, white cards with soft 12 px corners, system fonts and a single clear blue accent.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/core 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
#0064E0
The primary button, links and focus
Tone
Neutral
True greys
Contrast
Standard
Body text 18.7:1 on cards
Fonts
System
Headings and body; System for code
Shape
Soft
4 / 8 / 12 px corners
Density
Default
4 px spacing step, 32 px controls
Motion
Calm
175 / 410 / 975 ms

Colour tokens

Every colour in light and dark, with contrast against the text that sits on it.
TokenLightDarkContrast
Accent--color-accent
#0064E0
#0171E3
AAOn accent: 5.3 / 4.6 :1
On accent--color-on-accent
#FFFFFF
#FFFFFF
–
Page--color-background-body
#F1F4F7
#111112
AAAText on page: 17.0 / 14.5 :1
Surface--color-background-surface
#FFFFFF
#1F1F22
AAAText on surface: 18.7 / 12.6 :1
Muted--color-background-muted
#053659 5 %
#111112 50 %
AA largeSecondary text on it: 1.9 / 8.5 :1
Text--color-text-primary
#0A1317
#DFE2E5
–
Text secondary--color-text-secondary
#4E606F
#AAAFB5
AAOn surface: 6.5 / 7.4 :1
Border--color-border
#053659 10 %
#F2F4F6 10 %
–
Success--color-success
#0D8626
#0D8626
Fills with their own on-colour
Warning--color-warning
#E9AF08
#F2C00B
Fills with their own on-colour
Error--color-error
#E3193B
#F5394F
Fills with their own on-colour
Info--color-info
#0064E0
#0064E0
Fills with their own on-colour
TokenLightDark
Accent
AA5.3
#0064E0
#0171E3
On accent
#FFFFFF
#FFFFFF
Page
AAA17.0
#F1F4F7
#111112
Surface
AAA18.7
#FFFFFF
#1F1F22
Muted
AA large1.9
#053659 5 %
#111112 50 %
Text
#0A1317
#DFE2E5
Text secondary
AA6.5
#4E606F
#AAAFB5
Border
#053659 10 %
#F2F4F6 10 %
Success
#0D8626
#0D8626
Warning
#E9AF08
#F2C00B
Error
#E3193B
#F5394F
Info
#0064E0
#0064E0

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

Core

Overview
Core is Astryx's default look: a cool grey page, white cards with soft corners and gentle shadows, and the platform's own system font. A bright blue carries actions and links, and nothing else competes with it. It suits almost any product UI, dashboards, settings and internal tools; pick a more characterful preset when the brand needs to show.
Do's and Don'ts
  • Do keep blue for actions: one variant="primary" Button per view, variant="secondary" or variant="ghost" for the rest.
  • Do group content on white Cards over the grey page rather than drawing borders round everything.
  • Do use Text type="supporting" for metadata so the body copy stays the darkest text.
  • 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

Core is Astryx's default look: a cool grey page, white cards with soft corners and gentle shadows, and the platform's own system font. A bright blue carries actions and links, and nothing else competes with it. It suits almost any product UI, dashboards, settings and internal tools; pick a more characterful preset when the brand needs to show.

More Astryx themes

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