svelte-theme-picker 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/ThemeHead.svelte +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# svelte-theme-picker
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A customizable theme picker component for Svelte 5 applications.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- 10
|
|
7
|
+
- 10 built-in themes (dark and light modes)
|
|
8
8
|
- Fully customizable - add your own themes
|
|
9
9
|
- Persists selection to localStorage
|
|
10
10
|
- Applies CSS variables to your document
|
package/dist/ThemeHead.svelte
CHANGED
|
@@ -51,8 +51,6 @@
|
|
|
51
51
|
return generateFontPreloadLinks([...allFonts], fontConfig);
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
// No-transitions CSS
|
|
55
|
-
const noTransitionsCSS = '.no-transitions,.no-transitions *,.no-transitions *::before,.no-transitions *::after{transition:none!important;animation:none!important}';
|
|
56
54
|
</script>
|
|
57
55
|
|
|
58
56
|
<svelte:head>
|
|
@@ -64,6 +62,6 @@
|
|
|
64
62
|
{@html `<script>${blockingScript}</script>`}
|
|
65
63
|
{#if preventTransitions}
|
|
66
64
|
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
|
67
|
-
{@html
|
|
65
|
+
{@html '<style>.no-transitions,.no-transitions *,.no-transitions *::before,.no-transitions *::after{transition:none!important;animation:none!important}</style>'}
|
|
68
66
|
{/if}
|
|
69
67
|
</svelte:head>
|