Theme Selector

Use the following example to create a code theme selector.

CSS

Copy this directory to your `src/routes/utils` directory.

ThemeSelector

Create src/routes/utils/ThemeSelector.svelte using the following code:

Nav

Create src/routes/utils/Nav.svelte using the following code:

+layout.svelte

Finally use this nav in src/routes/+layout.svelte.