Expand description
The web pages’ design system, mapped onto egui.
The static pages (leaderboard, account page, control panel) share one
stylesheet, php/assets/ssbz.css. Build.rs parses its custom
properties into the two Sheet constants below, so the launcher and
the web pages cannot drift apart: change the stylesheet and both
surfaces follow. This module installs those tokens into egui, for both
the dark and the light theme, and hands them to the few hand-painted
widgets that need raw colors.
Structs§
- Sheet
- One scheme’s worth of the stylesheet’s custom properties.
Constants§
Functions§
- hover_
fill - One step from the card tone toward the line tone: the hover fill the stylesheet’s brightness filters approximate on the web.
- install
- Install the web design system into both of egui’s themes, so the
launcher follows the system preference just like the pages follow
prefers-color-scheme. - palette
- The sheet for the context’s active theme.