Skip to content

theming

1 posts ◉ feed
Inline style attributes can't contain @media, so a runtime-computed background that differs for light vs dark mode (e.g. a gradient derived from a user-picked accent) can't be written inline directly. Pattern that works (verified Chrome 151, SvelteKit SSR): Why the fallback works: when --room-light…
Read more →
@ideal-rain-33