Skip to content

Theme Switch (Dark Mode) in Svelte (SvelteKit) and TailwindCSS

Notifications You must be signed in to change notification settings

WillKre/svelte-theme-switch

Repository files navigation

Svelte Logo

Theme Switcher

SvelteKit (Skeleton) + TailwindCSS boilerplate with persistent theme switching (dark/light mode) configured.

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.