[PR #166] [MERGED] Design system: one set of tokens for the launcher, menus and website #2366

Closed
opened 2026-11-02 15:55:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/166
Author: @ludovic111
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: feat/design-tokens


📝 Commits (2)

  • 1a73065 Add a design system: one set of tokens for the launcher, menus and website
  • 7d26cb0 Hold the game menus' text to AA over the brightest backdrops

📊 Changes

10 files changed (+824 additions, -220 deletions)

View changed files

📝 crates/horizon-client/src/ui_theme.rs (+28 -23)
➖ crates/horizon-theme/fonts/InstrumentSerif-Regular.ttf (+0 -0)
➖ crates/horizon-theme/fonts/OFL-InstrumentSerif.txt (+0 -93)
📝 crates/horizon-theme/src/lib.rs (+470 -78)
➕ docs/design-system.md (+162 -0)
📝 launcher/src/main.rs (+0 -1)
📝 launcher/src/theme.rs (+27 -23)
➕ website/src/tokens.css (+121 -0)
📝 xtask/Cargo.toml (+4 -1)
📝 xtask/src/main.rs (+12 -1)

📄 Description

First of a stack that redesigns the launcher, the website and the game's Horizon menus (Ludovic's brief: "hyper tasteful and clean", after https://mkdir.directory/).

  • docs/design-system.md: the principles, tokens, components, surfaces and the mark.
  • crates/horizon-theme: the whole system as Rust constants (two palettes, type scale with web sizes, spacing, radii, control heights, motion curves). A test checks WCAG AA (4.5:1) for every text colour on every background in both palettes.
  • cargo run -p xtask -- tokens writes website/src/tokens.css; a test fails when it is out of date.
  • Instrument Serif is gone; display type is Geist at medium weight. The launcher and the menus read the new names through small adapters here; their restyles are the next PRs.

The stack: #166 tokens → #167 mark and icons → #168 launcher → #173 game menus → #174 website. Screenshots of every surface are in those PRs (images on the design-review branch, never merged).

Palettes (both pass AA for every text colour on page, plate_soft, plate and surface; the lowest is 4.54:1, success on plate in light):

page plate_soft plate rule ink ink_soft muted accent
light #fafafc #f3f3f8 #ebecf4 #e2e3ea #16181f #3b3e49 #646875 #5b3fd6
dark #0d0e13 #181a22 #20222c #24262f #ecedf3 #c5c7d1 #8b8f9c #9a86ff

Draft: nothing merges before Ludovic has seen them.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/166 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/design-tokens` --- ### 📝 Commits (2) - [`1a73065`](https://github.com/horizon-rust/horizon/commit/1a730659f0e1029257a5d26d7ec77e04e6c86ff3) Add a design system: one set of tokens for the launcher, menus and website - [`7d26cb0`](https://github.com/horizon-rust/horizon/commit/7d26cb0a5b997794cdb20ef4781fd9acce915b7f) Hold the game menus' text to AA over the brightest backdrops ### 📊 Changes **10 files changed** (+824 additions, -220 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/ui_theme.rs` (+28 -23) ➖ `crates/horizon-theme/fonts/InstrumentSerif-Regular.ttf` (+0 -0) ➖ `crates/horizon-theme/fonts/OFL-InstrumentSerif.txt` (+0 -93) 📝 `crates/horizon-theme/src/lib.rs` (+470 -78) ➕ `docs/design-system.md` (+162 -0) 📝 `launcher/src/main.rs` (+0 -1) 📝 `launcher/src/theme.rs` (+27 -23) ➕ `website/src/tokens.css` (+121 -0) 📝 `xtask/Cargo.toml` (+4 -1) 📝 `xtask/src/main.rs` (+12 -1) </details> ### 📄 Description First of a stack that redesigns the launcher, the website and the game's Horizon menus (Ludovic's brief: "hyper tasteful and clean", after https://mkdir.directory/). - `docs/design-system.md`: the principles, tokens, components, surfaces and the mark. - `crates/horizon-theme`: the whole system as Rust constants (two palettes, type scale with web sizes, spacing, radii, control heights, motion curves). A test checks WCAG AA (4.5:1) for every text colour on every background in both palettes. - `cargo run -p xtask -- tokens` writes `website/src/tokens.css`; a test fails when it is out of date. - Instrument Serif is gone; display type is Geist at medium weight. The launcher and the menus read the new names through small adapters here; their restyles are the next PRs. The stack: #166 tokens → #167 mark and icons → #168 launcher → #173 game menus → #174 website. Screenshots of every surface are in those PRs (images on the `design-review` branch, never merged). Palettes (both pass AA for every text colour on page, plate_soft, plate and surface; the lowest is 4.54:1, success on plate in light): | | page | plate_soft | plate | rule | ink | ink_soft | muted | accent | |---|---|---|---|---|---|---|---|---| | light | #fafafc | #f3f3f8 | #ebecf4 | #e2e3ea | #16181f | #3b3e49 | #646875 | #5b3fd6 | | dark | #0d0e13 | #181a22 | #20222c | #24262f | #ecedf3 | #c5c7d1 | #8b8f9c | #9a86ff | **Round 2:** the game menus' veil over the live backdrop is now `VEIL` 0.90 (pages and in a world) and `HOME_VEIL` 0.80 (the title's home page, which keeps to ink/ink_soft); muted text over the backdrop is `BACKDROP_MUTED` #9fa3ae. A new test holds every menu text colour to AA over a backdrop of luminance 0.77 (bare veil and a selected row's plate); the snowiest title panorama measured reaches 0.49. **Draft: nothing merges before Ludovic has seen them.** 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:22 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2366
No description provided.