SSR-friendly Light and Dark Mode for SvelteKit

Simple utilities to manage light and dark mode in your SvelteKit app. Maintained by the Svecosystem team.

Features

SSR Ready

Get out of the box support for server-side rendering, and no flash of unstyled content.

Theme Management

Capable of managing the theme-color meta tag alongside light and dark mode.

Helper Functions

A set of helper functions to programatically manage your users' preferences.

System Prefers Mode

Automatically switch themes based on system preferences.

User Prefers Mode

Automatically keep the theme aligned with the user's preferences.

Color Scheme

Keep your scrollbars and other system UI elements in sync with the theme.

MIT

© 2024 Svecosystem Team