mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat: monorepo
This commit is contained in:
parent
4d54060a4f
commit
42089d4996
200 changed files with 1530 additions and 1521 deletions
8
packages/web/utils/theme.ts
Normal file
8
packages/web/utils/theme.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export const changeAccentColor = (color: string) => {
|
||||
document.body.setAttribute('data-accent-color', color)
|
||||
}
|
||||
|
||||
const stateString = localStorage.getItem('state')
|
||||
const stateInLocalStorage = stateString ? JSON.parse(stateString) : {}
|
||||
|
||||
changeAccentColor(stateInLocalStorage?.settings?.accentColor || 'blue')
|
||||
Loading…
Add table
Add a link
Reference in a new issue