fix: update ring color when primary color changes
This commit is contained in:
parent
cb46e7f3d5
commit
666e417a13
2 changed files with 73 additions and 36 deletions
|
|
@ -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 }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue