mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
10 lines
297 B
Go
10 lines
297 B
Go
function addThemeColorCssVars() {
|
|
const key = '__THEME_COLOR__'
|
|
const defaultColor = '#00BFFF'
|
|
const themeColor = window.localStorage.getItem(key) || defaultColor
|
|
const cssVars = `--primary-color: ${themeColor}`
|
|
document.documentElement.style.cssText = cssVars
|
|
}
|
|
|
|
addThemeColorCssVars()
|