svelte-os-themes 0.0.13 → 0.0.14
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 +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,43 +75,43 @@ npm install svelte-os-themes
|
|
|
75
75
|
|
|
76
76
|
The default theme to use when no theme is set in storage.
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
accepted values: `'light'`, `'dark'`, `'system'`<br/>
|
|
79
|
+
default value: `'system'`
|
|
80
80
|
|
|
81
81
|
- `attribute`
|
|
82
82
|
|
|
83
83
|
The attribute to set on the `html` element.
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
accepted values: `'class'`, `'data-<string>'`<br/>
|
|
86
|
+
default value: `'class'`
|
|
87
87
|
|
|
88
88
|
- `storageKey`
|
|
89
89
|
|
|
90
90
|
The key to use when storing the theme in `localStorage`.
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
accepted values: `<string>`<br/>
|
|
93
|
+
default value: `'theme'`
|
|
94
94
|
|
|
95
95
|
- `system`
|
|
96
96
|
|
|
97
97
|
Whether to change theme when os theme changes.
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
accepted values: `true`, `false`<br/>
|
|
100
|
+
default value: `true`
|
|
101
101
|
|
|
102
102
|
- `colorScheme`
|
|
103
103
|
|
|
104
104
|
Whether to add/update the `html`'s `color-scheme`.
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
accepted values: `true`, `false`<br/>
|
|
107
|
+
default value: `true`
|
|
108
108
|
|
|
109
109
|
- `nonce`
|
|
110
110
|
|
|
111
111
|
The nonce to use for script.
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
accepted values: `<string>`<br/>
|
|
114
|
+
default value:
|
|
115
115
|
|
|
116
116
|
### useTheme
|
|
117
117
|
|