palettes
One place for the colours of all my apps. A change here reaches every app that loads them within about five minutes.
Click the light or dark half of a palette to use it for this site. Saved in this browser only.
use them in an app
Load the stylesheet, pick a palette and a mode on <html>, then use var(--bg), var(--ink), var(--on-red) and the rest:
<link rel="stylesheet" href="https://design.jaeggisimon.ch/api/palettes.css"> <html data-palette="navy" data-mode="dark">
- /api/palettes.cssevery palette as CSS variables, one rule per palette and mode
- /api/palettesthe list: id, name, note
- /api/palettes/<id>.jsonone palette's tokens
Public, CORS open to any site, cached for five minutes.