fix: update ring color when primary color changes

This commit is contained in:
codytseng 2025-10-19 15:10:55 +08:00
parent cb46e7f3d5
commit 666e417a13
2 changed files with 73 additions and 36 deletions

View file

@ -21,6 +21,7 @@ const updateCSSVariables = (color: TPrimaryColor, currentTheme: TTheme) => {
root.style.setProperty('--primary', config.primary)
root.style.setProperty('--primary-hover', config['primary-hover'])
root.style.setProperty('--primary-foreground', config['primary-foreground'])
root.style.setProperty('--ring', config.ring)
}
export function ThemeProvider({ children }: { children: React.ReactNode }) {