Retro Arcade theme

This commit is contained in:
Auto
2026-01-26 18:45:58 +02:00
parent c402736b92
commit 9aae6769c9
4 changed files with 134 additions and 6 deletions

View File

@@ -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')
}
}
}