1.0.0 • Published 4 years ago

svelte-dark-theme-manager v1.0.0

Weekly downloads
64
License
-
Repository
-
Last release
4 years ago

Simple and useless, isn't is?

<script>
	import { theme } from 'svelte-dark-theme-manager';
</script>

<div id="app" class:dark={$theme}>
	Is dark theme: {$theme}

	<button on:click={() => { theme.set(!$theme) }}>
		Change theme
	</button>
</div>

<style>
	#app{
		height: 100vh;
		width: 100%;
		padding: 16px;
	}
	:global(body){
		padding: 0;
	}
	:global(*){
		box-sizing: border-box;
	}
	#app.dark{
		background: #333;
		color: #eee;
	}
</style>
1.0.0

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago