Compare commits
2 Commits
e14821c699
...
50aa4c5d07
| Author | SHA1 | Date | |
|---|---|---|---|
| 50aa4c5d07 | |||
| 8484553029 |
|
|
@ -10,7 +10,9 @@ export function clearStyles() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// HMR support - clear styles when module is replaced
|
// HMR support - clear styles when module is replaced
|
||||||
import.meta.hot?.dispose(() => clearStyles())
|
if (import.meta.hot) {
|
||||||
|
import.meta.hot.dispose(() => clearStyles())
|
||||||
|
}
|
||||||
|
|
||||||
export function createTheme<const T extends Record<string, string | number>>(name: string, values: T): T {
|
export function createTheme<const T extends Record<string, string | number>>(name: string, values: T): T {
|
||||||
themes[name] = values as Record<string, string | number>
|
themes[name] = values as Record<string, string | number>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user