Class ThemeTokens
Limn and Limn Light palettes out as CSS custom properties,
for the public site to consume.
The site is dark violet because the toolkit is, and a hex value copied from
Theme into a stylesheet is a fact that either file can change without the other
noticing; the screenshots would drift away from the page around them one tone at a
time, which is exactly the failure the gallery exists to prevent. So the stylesheet is
generated from the palettes themselves and never hand-written.
Emits four blocks, in this order and for this reason: :root carries the light
palette, a prefers-color-scheme: dark query supplies the dark one as the system
default, and two :root[data-theme=…] blocks follow so that an explicit choice
wins over the system in both directions. A reader who forces light on a machine
set to dark is the case that breaks when those last two blocks are omitted.
Run as java limn.demo.site.ThemeTokens <output.css>; no window, no GL context
and no UI thread: it reads static palette data and writes a file.
-
Method Summary
-
Method Details
-
main
- Throws:
IOException
-