Y2K: an Astryx theme

Periwinkle pages, white cards with ink outlines, square corners and Poppins: early-2000s pop on a tidy grid.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-y2k 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
#2D241B
The primary button, links and focus
Tone
Warm
Greys lean warm
Contrast
Standard
Body text 15.2:1 on cards
Fonts
Poppins
Headings and body; JetBrains Mono for code
Shape
Sharp
0 px on every corner
Density
Comfortable
6 px spacing step, 40 px controls
Motion
Snappy
100 / 250 / 600 ms

Colour tokens

Every colour in light and dark, with contrast against the text that sits on it.
TokenLightDarkContrast
Accent--color-accent
#2D241B
#EDEFFC
AAAOn accent: 15.2 / 15.2 :1
On accent--color-on-accent
#FFFFFF
#16182B
–
Page--color-background-body
#CCCFFA
#0E0F1A
AAAText on page: 10.0 / 16.6 :1
Surface--color-background-surface
#FFFFFF
#16182B
AAAText on surface: 15.2 / 15.2 :1
Muted--color-background-muted
#F1E6DB
#1F2238
AASecondary text on it: 6.3 / 7.0 :1
Text--color-text-primary
#2D241B
#EDEFFC
–
Text secondary--color-text-secondary
#5A5146
#A6ACD6
AAAOn surface: 7.7 / 7.9 :1
Border--color-border
#382E24
#EDEFFC 10 %
–
Success--color-success
#C5E17A
#C5E17A
Fills with their own on-colour
Warning--color-warning
#FFE08A
#FDE08F
Fills with their own on-colour
Error--color-error
#FFC3C3
#FFC3C3
Fills with their own on-colour
Info--color-info
#00649B
#70C1FF
Fills with their own on-colour
TokenLightDark
Accent
AAA15.2
#2D241B
#EDEFFC
On accent
#FFFFFF
#16182B
Page
AAA10.0
#CCCFFA
#0E0F1A
Surface
AAA15.2
#FFFFFF
#16182B
Muted
AA6.3
#F1E6DB
#1F2238
Text
#2D241B
#EDEFFC
Text secondary
AAA7.7
#5A5146
#A6ACD6
Border
#382E24
#EDEFFC 10 %
Success
#C5E17A
#C5E17A
Warning
#FFE08A
#FDE08F
Error
#FFC3C3
#FFC3C3
Info
#00649B
#70C1FF

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

Y2K

Overview
Y2K is bubbly early-2000s pop on a strict grid. Pages sit on periwinkle, content lives on white cards with an ink outline and square corners, and colour comes in small lime and pink doses so the dark ink stays the loudest thing on the page. It suits playful consumer products, launch pages and creative tools; avoid it for dense financial or clinical data.
Do's and Don'ts
  • Do use one variant="primary" Button per view and variant="secondary" for the rest.
  • Do put content on white Cards over the periwinkle page; let the page colour show between them.
  • Do use the lime and pink through Astryx props (Badge variant="green", Badge variant="pink"), so dark mode follows.
  • 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

Y2K is bubbly early-2000s pop on a strict grid. Pages sit on periwinkle, content lives on white cards with an ink outline and square corners, and colour comes in small lime and pink doses so the dark ink stays the loudest thing on the page. It suits playful consumer products, launch pages and creative tools; avoid it for dense financial or clinical data.

More Astryx themes

All 27 themes
Core
Neutral
Butter
Chocolate
Gothic
Matcha

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.