mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-14 06:25:35 +08:00
9 lines
290 B
TypeScript
9 lines
290 B
TypeScript
|
import { makePersisted } from '@solid-primitives/storage'
|
||
|
import { createSignal } from 'solid-js'
|
||
|
import { themes } from '~/constants'
|
||
|
|
||
|
export const [curTheme, setCurTheme] = makePersisted(
|
||
|
createSignal<(typeof themes)[number]>('halloween'),
|
||
|
{ name: 'theme', storage: localStorage },
|
||
|
)
|