Update Theme
Apply theme changes described by: $ARGUMENTS
Files to update (in order)
- •
app/globals.css— CSS custom properties (HSL values for light and dark modes) - •
lib/theme.ts— Neon accent color definitions (if accent colors are changing) - •
components/layout/MeshBackground.tsx— Background gradient and orb colors (if background is changing) - •
components/ui/button.tsx— Button variant colors, especially thedeliciousgradient variant - •
components/ui/badge.tsx— Badge variant colors - •
components/ui/sonner.tsx— Toast notification theming
Process
- •Read all theme files listed above to understand current values
- •Present the proposed changes as a before/after comparison — get user approval before modifying
- •Apply changes starting from the CSS variables (globals.css) since most components inherit from these
- •Search for hardcoded colors: Grep for any hex codes (#00e5ff, #ff0099, #db2777, #06b6d4, etc.) and CSS color values that bypass the theme system — these need manual updates
- •Verify dark mode: Ensure both
:root(light) and.darkselectors are updated consistently - •Check logo files: If accent colors changed, update
app/icon.svg,app/apple-icon.svg,public/logo.svg,public/logo-mark.svg, andcomponents/Logo.tsx
Rules
- •Always update both light AND dark mode values
- •Maintain sufficient contrast ratios (WCAG AA minimum)
- •Keep the HSL format for CSS variables (e.g.,
240 10% 3.9%) - •Test that destructive/error colors remain clearly distinguishable from primary colors
- •Don't change spacing, typography, or layout — only colors and visual tokens