Theme Manager

VerifiedSafe

Manage UI themes (light/dark/custom) for your platform. Create, edit and switch between themes using Tailwind CSS and CSS variables.

Sby Skills Guide Bot
DevelopmentIntermediate
206/2/2026
Claude Code
#themes#ui-customization#tailwind-css#radix-ui

Recommended for

Our review

Manages UI themes (light/dark/custom) for the trading platform.

Strengths

  • Easily switch between light and dark themes.
  • Supports creation and editing of custom themes.
  • Allows exporting themes as JSON.
  • Includes accessibility and color-blindness considerations.

Limitations

  • Requires prior setup of the theme system (Tailwind CSS, next-themes).
  • Limited to predefined themes; advanced customizations require code changes.
When to use it

When you need to quickly customize the look and feel of the trading platform UI.

When not to use it

For minor style tweaks that do not involve the global theme.

Security analysis

Safe
Quality score90/100

The skill is a theme manager for a UI framework that only instructs the AI to read/write CSS theme files and provide UI theme-switching information. There are no destructive commands, data exfiltration, or unsafe operations.

No concerns found

Examples

Switch to dark theme
/theme dark
List all available themes
/theme --list
Create a new theme called trading-dark
/theme --create trading-dark

name: theme description: Switch and customize UI themes (light/dark/custom) argument-hint: "[light|dark|--list|--create|--edit]"

Theme Manager

Manage UI themes for the trading platform.

Usage

  • /theme - Show current theme
  • /theme light - Switch to light theme
  • /theme dark - Switch to dark theme
  • /theme --list - List all available themes
  • /theme --create trading-dark - Create new theme
  • /theme --edit dark - Edit existing theme
  • /theme --export - Export theme as JSON

Theme System

  • Framework: Tailwind CSS + CSS variables
  • Provider: next-themes (ThemeProvider)
  • Storage: localStorage
  • Components: Radix UI primitives

Theme Files

services/ui/
├── src/
│   ├── contexts/ThemeContext.tsx
│   ├── components/theme-provider.tsx
│   ├── components/mode-toggle.tsx
│   └── styles/
│       ├── globals.css        # CSS variables
│       └── themes/
│           ├── light.css
│           ├── dark.css
│           └── trading-dark.css
└── tailwind.config.js

Instructions

When this skill is invoked:

  1. Parse arguments:

    • No args: Show current theme info
    • Theme name: Switch to that theme
    • --list: List all available themes
    • --create <name>: Create new theme
    • --edit <name>: Edit theme variables
    • --export: Export current theme
  2. Show current theme:

    Current Theme
    ═══════════════════════════════════════════════════════════
    
    Active: dark
    System preference: dark
    
    Colors:
    ─────────────────────────────────────────────────────────
    --background:     hsl(222.2 84% 4.9%)     ████
    --foreground:     hsl(210 40% 98%)        ████
    --primary:        hsl(217.2 91.2% 59.8%)  ████
    --secondary:      hsl(217.2 32.6% 17.5%)  ████
    --accent:         hsl(217.2 32.6% 17.5%)  ████
    --destructive:    hsl(0 62.8% 30.6%)      ████
    --muted:          hsl(217.2 32.6% 17.5%)  ████
    
    Chart colors:
    ─────────────────────────────────────────────────────────
    --chart-up:       hsl(142 76% 36%)        ████ (green)
    --chart-down:     hsl(0 84% 60%)          ████ (red)
    --chart-grid:     hsl(217 32% 25%)        ████
    
  3. For --list:

    Available Themes
    ─────────────────────────────────────────────────────────
    • light         System light theme
    • dark          System dark theme (active)
    • trading-dark  Dark theme optimized for trading
    • bloomberg     Bloomberg terminal style
    
  4. For --create:

    • Create new theme CSS file
    • Copy from base theme
    • Guide through customization
    • Register in theme provider
  5. For --edit:

    • Open theme CSS variables
    • Show color picker suggestions
    • Preview changes
    • Validate contrast ratios
  6. Theme CSS structure:

    /* themes/trading-dark.css */
    [data-theme="trading-dark"] {
      --background: 222.2 84% 4.9%;
      --foreground: 210 40% 98%;
      --card: 222.2 84% 4.9%;
      --primary: 217.2 91.2% 59.8%;
    
      /* Chart-specific */
      --chart-up: 142 76% 36%;
      --chart-down: 0 84% 60%;
      --chart-volume: 217 91% 60%;
    }
    
  7. Trading-specific considerations:

    • Contrast: Ensure readability for numbers
    • Color blindness: Avoid red/green only
    • Eye strain: Dark themes for long sessions
    • Chart colors: Clear up/down distinction
    • Alert colors: Warning/error visibility
  8. Apply theme programmatically:

    import { useTheme } from 'next-themes';
    
    function ThemeSwitch() {
      const { theme, setTheme } = useTheme();
      return (
        <button onClick={() => setTheme('dark')}>
          Dark Mode
        </button>
      );
    }
    
Related skills