Skip to content

2.0.1

Choose a tag to compare

@ernestdefoe ernestdefoe released this 21 May 04:42
Add Dawn light-mode palette + honor prefers-color-scheme

Aurora was hardcoded dark — every surface and text rule read a static
LESS variable, so toggling `<html data-theme>` to 'light' (via Flarum's
Color Scheme picker or the theme-toggle extension) did nothing visible.

Introduce a CSS-custom-property layer for the swappable tokens
(--aurora-surface-{0,1,2,3} + their -rgb triplets, --aurora-text*,
--aurora-mist-*, --aurora-glass-rgb, --aurora-blob-opacity,
--aurora-shadow-strength). `:root` is dark; `[data-theme^='light']`
applies a Dawn palette (cream-lavender surfaces, deep-indigo text);
prefers-color-scheme: light handles 'auto' / unset.

Mixins updated to read --aurora-glass-rgb so the glassmorphism tint
follows the active theme. Four `color: #fff` rules sitting on mist
overlays (header/sidebar hover, button hover, dropdown item hover)
now use var(--aurora-text) so they're legible on light surfaces; the
#fff rules on saturated gradients/buttons are unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>