feat(webapp): add color scheme switcher with 7 palettes #90
No reviewers
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/color-scheme-switcher"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
src/assets/index.csswith a shadcn-vue-idiomatic theme.css using Catppuccin Latte/Mocha as the default, while preserving the existingtailwindcss-animateplugin, custom accordion keyframes, animation duration/easing tokens, and native-scrollbar styling.:root[data-theme="<name>"]/:root[data-theme="<name>"].dark: Countryside Castle, Dark Matter, Emerald Forest, Light Green, Neo Brutalist, Starry Night.useTheme()withpalette/setPalettestate, persists the choice underlocalStorage['ui-palette'], and applies it via adata-themeattribute on<html>(alongside the existing.darkclass).activities,chat,forum,market,restaurant,tasks,wallet,accounting) inherit the palette automatically — each one already mounts viaAppShell, which invokesuseTheme()on mount.common.nav.colorScheme+common.nav.palette_*).Persistence:
ui-paletteandui-themeare bothlocalStorage-backed, so user choice survives reload, app re-open, and crosses between hub and every standalone (same origin in production).Test plan
npm run build(hub) — greennpm run build:activities— green (verified all 6 alternatedata-themeselectors land in the standalone CSS bundle)vue-tsc -p tsconfig.app.json --noEmit— cleanaio-demo)🤖 Generated with Claude Code