The UI theme system provides a centralized way to customize the visual appearance of menus and selection screens. The MonoGlass theme is currently active by default.
- Style: Clean, minimal, modern glass-effect design
- Colors:
- Background:
#0E1116 - Accent:
#5BC0BE(Teal) - P1 Frame:
#5BC0BE - P2 Frame:
#F25F5C(Coral) - Text:
#EAEAEA
- Background:
- Font: Inter (sans-serif)
- Feel: Professional, calm, focused
- Style: Futuristic cyberpunk aesthetic
- Colors:
- Background:
#0A0C10 - Accent:
#00D1FF(Bright Cyan) - P1 Frame:
#00D1FF - P2 Frame:
#FF2E88(Hot Pink) - Text:
#FFFFFF
- Background:
- Font: System default
- Feel: High-tech, vibrant, energetic
- Style: Bright, playful, festival vibes
- Colors:
- Background:
#FFD6A5(Peach) - Accent:
#FF006E(Magenta) - P1 Frame:
#FF006E - P2 Frame:
#3A86FF(Blue) - Text:
#000000
- Background:
- Font: System default
- Feel: Fun, colorful, energetic
// In your initialization code or console
UIComponents.setTheme('monoGlass'); // Activate MonoGlass theme
UIComponents.setTheme('neonCore'); // Activate NeonCore theme
UIComponents.setTheme('festivalPop'); // Activate FestivalPop themeconst currentTheme = UIComponents.getTheme();
console.log(currentTheme.accent); // Get accent color
console.log(currentTheme.text); // Get text colorEach theme object contains:
bg: Main background colorbgGlass: Glass overlay color (rgba)accent: Primary accent colorsecondary: Secondary colortext: Main text colortextSubtle: Muted text color (rgba)p1Frame: Player 1 selection frame colorp2Frame: Player 2 selection frame colorglow: Glow effect color (rgba)
To add a new theme, edit ui-components.js and add to the uiThemes object:
const uiThemes = {
// ... existing themes ...
myCustomTheme: {
bg: "#YOUR_COLOR",
bgGlass: "rgba(R,G,B,ALPHA)",
accent: "#YOUR_ACCENT",
secondary: "#YOUR_SECONDARY",
text: "#YOUR_TEXT",
textSubtle: "rgba(R,G,B,ALPHA)",
p1Frame: "#YOUR_P1",
p2Frame: "#YOUR_P2",
glow: "rgba(R,G,B,ALPHA)",
}
};Then activate with:
UIComponents.setTheme('myCustomTheme');The theme system affects:
- Character selection screen background and borders
- Stage selection screen tiles and highlights
- Controller legend symbols and text
- Lock status indicators
- Loading placeholders
- All button symbols
- The MonoGlass theme uses the Inter font from Google Fonts
- Glass effects are achieved through radial gradients and shadow blur
- Frame glow effects use
ctx.shadowBlurfor modern depth - All colors should follow accessibility guidelines for contrast