mirror of
https://github.com/zadam/trilium.git
synced 2026-04-09 05:28:55 +02:00
The calendar event has a light yellow background with light yellow text in dark theme, making it nearly unreadable. The root cause is a CSS load order issue. The :root defaults in index.css:1-10 are loaded after the dark theme's :root overrides (since component CSS loads after global CSS in Vite), so the defaults (95% lightness, 80% saturation) stomp over the dark theme values (20% lightness, 25% saturation). The background stays light, but --custom-color correctly gets the dark-adjusted (light) text color → light-on-light = bad contrast. The fix: remove the :root block and use var() fallbacks instead, so there's no :root competition.