mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-05 16:02:03 +00:00
Every palette family but Rose Pine now loads its stylesheet the way Glass and Halloween already do: the first-paint script links a stored palette's sheet before the main stylesheet, and a picked palette applies once its sheet has loaded. paletteSheets.ts holds the seven sheets' URLs and links them through paletteSheet.ts; useAppearance.ts imports it on demand, so neither enters the startup bundle. vite.config.ts derives the stamped list from the palette list, so every family but the default's is covered. The sheets land before every other stylesheet, as they sat first in theme.css before; only Rose Pine's :root defaults now follow them, and each family's blocks outrank those, so every palette resolves as before. E2e specs that switch palettes by writing the root's attributes link the sheets first, and a new spec checks a stored palette's tokens on the first frame and that the default palette loads none of the sheets.