Customize Theme
View your current theme, edit it with natural language feedback, adjust CSS variables manually, and preview theme changes on your slides. This guide covers both the AI-assisted and manual approaches to theme customization.
Before customizing your theme, make sure you have:
- A Pitch Smith workspace scaffolded in your project (run
/pitchsmithif you have not set one up yet -- see Quickstart) - Brand setup complete with an existing theme (run
/pitchsmith:setupfirst -- see Brand Setup) - Claude Code running in your project directory
View Current Theme
Display a summary of your current theme settings including colors, typography, shapes, and available templates.
-
Open a Claude Code session in your project directory.
-
Run the theme command:
/pitchsmith:theme -
Pitch Smith reads your
theme.jsonfile and displays a formatted summary with color swatches:━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THEME: Your Brand (v1.0)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COLORS
Primary: ## #CCFF00
Secondary: ## #5DBAB6
Accent: ## #FF6B6B
Background: ## #FFFFFF (default) | ## #F5F5F5 (alt)
Text: Heading #1A1A1A | Body #4A4A4A
TYPOGRAPHY
Heading: Outfit (700)
Body: Outfit (400)
Scale: Hero 72px > H1 48px > H2 36px > Body 18px
SHAPES
Boxes: 8px corners, medium shadow
Callout: 8px corners, lime border
LAYOUTS (4 templates)
title, content, split, data
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Verify: Theme summary displayed
The output should show your brand's colors, fonts, shape styles, and template count. If you see a "No Theme Found" message, run /pitchsmith:setup to create your theme first.
Edit Theme with Natural Language
Modify your theme by describing the changes you want in plain English. Pitch Smith interprets your feedback and adjusts the theme primitives (colors, typography, shapes) accordingly.
-
Open a Claude Code session in your project directory.
-
Run the theme-edit command:
/pitchsmith:theme-edit -
Pitch Smith displays your current theme and saves a backup to the version history. You are then prompted to describe what you want to change.
-
Describe your desired changes using natural language. For example:
"warmer colors"-- shifts palette toward orange and red tones"bolder fonts"-- increases font weights and contrast"more minimal"-- reduces shadows and simplifies shapes"larger corners"-- increases border radius values"make the headings larger and use a darker background"
-
Pitch Smith applies your feedback and regenerates sample slides so you can preview the changes.
-
Review the samples and either:
- Provide more feedback to continue refining (for example,
"a bit less saturated") - Type
approvedto save the changes and update your theme - Type
cancelto discard all changes and restore the original theme
- Provide more feedback to continue refining (for example,
Verify: Theme changes applied
After approving changes:
- Run
/pitchsmith:themeto view the updated theme summary. - Check that the version number has been incremented (for example, v1.0 to v2.0).
- Verify that
theme-history/contains a backup of the previous version.
Expected: The theme summary reflects your requested changes (updated colors, adjusted fonts, modified shapes).
The theme-edit command understands both specific requests ("change the primary color to blue") and gestalt feedback ("make it feel more corporate"). You can go through as many rounds of feedback as you need before approving. Each round regenerates sample slides so you can see the effect of your changes before committing them.
Manual CSS Variable Adjustment
For fine-grained control, edit the theme JSON file directly. This approach is useful when you know exactly which values you want to change.
-
Open the theme file in your editor:
code .slide-builder/theme.json -
The theme file is organized into sections. Here are the key sections you can modify:
Section Controls Example Variables colorsBrand color palette primary,secondary,accent,background,texttypographyFont families, sizes, weights heading.fontFamily,body.fontSize,scaleshapesBorder radius, shadows, borders boxes.borderRadius,boxes.shadow,callout.bordercomponentsComponent-specific styles Button styles, card styles, list styles gradientsGradient definitions Linear and radial gradient presets slidesSlide-level defaults Default background, padding, content width -
Edit the values you want to change and save the file.
When editing theme.json manually, ensure the file remains valid JSON. A missing comma or unclosed bracket will cause build errors. Consider using a JSON-aware editor that highlights syntax errors.
Verify: Manual changes saved correctly
After saving your edits:
- Run
/pitchsmith:themeto verify the theme summary reflects your changes. - If the command reports an error, check
theme.jsonfor JSON syntax issues.
For a complete list of all available theme variables, their types, and default values, see the Theme Schema Reference. The schema covers 9 major sections: colors, typography, shapes, components, slides, gradients, workflowRules, personality, and brandContext.
Preview Theme Changes
After modifying your theme (either via AI editing or manual adjustment), preview how the changes look on your slides by rebuilding them.
Rebuild a Single Slide
To quickly preview your theme changes on one slide:
/pitchsmith:build-one
This rebuilds the next pending slide using the updated theme. Open the result in the Slide Viewer to see how the new theme looks applied to real content.
Rebuild All Slides
To apply your theme changes across the entire deck:
/pitchsmith:build-all
Build commands only regenerate slides with a "pending" status. To force a rebuild with the new theme, set the slide's status back to "pending" in plan.yaml first. See Build Slides for details on the rebuild workflow.
Using the Slide Viewer
After rebuilding, view the results in the Slide Viewer:
- The Slide Viewer auto-opens after builds (if using the VS Code extension).
- Navigate through your slides to verify the updated theme is applied consistently.
- Check that colors, fonts, and shapes match your expectations across different layout types.
Verify: Theme changes visible in slides
Open a rebuilt slide in the Slide Viewer or browser. Confirm that:
- Colors match the updated theme palette
- Fonts reflect the typography changes
- Shapes (borders, shadows, corners) match the updated shape primitives
- The overall visual feel matches your intent
If slides still show the old theme, ensure they were rebuilt after the theme change (check their status in plan.yaml).
See Also
The following pages provide deeper context on the concepts used in this guide:
- Themes (Concept) -- How themes work, theme anatomy, and the design system
- Theme Schema Reference -- Complete reference for all theme.json variables
- Commands Reference -- Complete command reference including
/pitchsmith:theme,/pitchsmith:theme-edit, and/pitchsmith:setup - Brand Setup -- Create your initial theme from brand assets
- Build Slides -- Rebuild slides after theme changes