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
Preview
The 7 choices
Brand colour
#2D241B
The primary button, links and focusTone
Warm
Greys lean warmContrast
Standard
Body text 15.2:1 on cardsFonts
Poppins
Headings and body; JetBrains Mono for codeShape
Sharp
0 px on every cornerDensity
Comfortable
6 px spacing step, 40 px controlsMotion
Snappy
100 / 250 / 600 msColour tokens
| Token | Light | Dark | Contrast |
|---|---|---|---|
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 |
| Token | Light | Dark |
|---|---|---|
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
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 andvariant="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.
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.