Menu

116 tokens: a default theme for light, dark and a phone
📰

116 tokens: a default theme for light, dark and a phone

DEV Community: frontend·Galascribe·3 days ago
#sn5CTc0L
#devtofrontend#devto#dev#rrggbb#rrggbbaa
Reading 0:00
15s threshold

Originally published at https://blog.galascribe.com/116-tokens-a-default-theme-for-light-dark-and-a-phone/ .

Our default theme was a skin over a fixed page. When I approved a new design for it, five decisions shaped what followed. This post covers what they produced: a closed list of 116 typed tokens, a light and a dark value for each, and a way for a creator to pick their own colours without making the page unreadable.

Five decisions

I approved a working preview and asked for the production theme to be replaced with it. The decisions that went with it:

No backwards compatibility. Only test users were onboarded, so we broke contracts and bumped majors, with no migration shims.

The template owns layout. Themes supply design values, the tokens, plus optional skin CSS.

A site script is allowed, but every page must read completely with JavaScript off. The script only enhances: search, copy buttons, the menu, the colour-mode toggle.

"Most read" was dropped, because we have no visit data.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.