mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-01-31 14:43:35 +00:00
Retro Arcade theme
This commit is contained in:
@@ -32,11 +32,13 @@ export function ThemeSelector({ themes, currentTheme, onThemeChange }: ThemeSele
|
||||
useEffect(() => {
|
||||
if (previewTheme) {
|
||||
const root = document.documentElement
|
||||
root.classList.remove('theme-claude', 'theme-neo-brutalism')
|
||||
root.classList.remove('theme-claude', 'theme-neo-brutalism', 'theme-retro-arcade')
|
||||
if (previewTheme === 'claude') {
|
||||
root.classList.add('theme-claude')
|
||||
} else if (previewTheme === 'neo-brutalism') {
|
||||
root.classList.add('theme-neo-brutalism')
|
||||
} else if (previewTheme === 'retro-arcade') {
|
||||
root.classList.add('theme-retro-arcade')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,11 +46,13 @@ export function ThemeSelector({ themes, currentTheme, onThemeChange }: ThemeSele
|
||||
return () => {
|
||||
if (previewTheme) {
|
||||
const root = document.documentElement
|
||||
root.classList.remove('theme-claude', 'theme-neo-brutalism')
|
||||
root.classList.remove('theme-claude', 'theme-neo-brutalism', 'theme-retro-arcade')
|
||||
if (currentTheme === 'claude') {
|
||||
root.classList.add('theme-claude')
|
||||
} else if (currentTheme === 'neo-brutalism') {
|
||||
root.classList.add('theme-neo-brutalism')
|
||||
} else if (currentTheme === 'retro-arcade') {
|
||||
root.classList.add('theme-retro-arcade')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user