Theming¶
Customize the appearance of your presentations using themes and style overrides.
Overview¶
SlideGen supports theming through:
- Built-in themes - Pre-configured color schemes and fonts
- PowerPoint templates - Use existing
.pptxfiles as templates - Style overrides - Per-slide style customization
Built-in Themes¶
Default Theme¶
The default theme provides a clean, professional appearance:
Corporate Theme¶
Professional theme suitable for business presentations:
presentation:
title: "Corporate Presentation"
theme: "corporate"
slides:
- layout: title
title: "Welcome"
Dark Theme¶
Dark color scheme for modern presentations:
PowerPoint Templates¶
Use an existing PowerPoint file as a template:
presentation:
title: "My Presentation"
theme: "templates/corporate-template.pptx"
slides:
- layout: title
title: "Welcome"
Template Requirements:
- Must be a valid
.pptxfile - Slide master defines colors, fonts, and layouts
- Background colors and styles are applied from template
Creating Templates:
- Create a PowerPoint file with desired design
- Customize slide master (View → Slide Master)
- Set colors, fonts, and background
- Save as
.pptxfile - Reference in schema:
theme: "path/to/template.pptx"
Style Overrides¶
Override theme styles on individual slides:
slides:
- layout: bullet_list
title: "Custom Styled Slide"
bullets: ["Point 1", "Point 2"]
style:
background_color: "#1a1a1a"
text_color: "#ffffff"
font_family: "Arial"
font_size: 24
Style Properties:
| Property | Type | Description | Example |
|---|---|---|---|
background_color |
string | Hex color code | "#1a1a1a" |
text_color |
string | Hex color code | "#ffffff" |
font_family |
string | Font family name | "Arial" |
font_size |
integer | Font size in points (8-144) | 24 |
Color Format:
Use hex color codes (6 digits):
Font Families:
Common font families:
- Arial
- Calibri
- Times New Roman
- Helvetica
- Georgia
Use fonts installed on your system. If a font is not available, SlideGen falls back to a default font.
Font Sizes:
Font sizes are specified in points (pt): - Minimum: 8pt - Maximum: 144pt - Recommended: 18-36pt for body text, 44-72pt for titles
Theme Configuration¶
Setting Theme Globally¶
Set theme for entire presentation:
presentation:
title: "My Presentation"
theme: "corporate" # or path to .pptx file
slides:
- layout: title
title: "Welcome"
Per-Slide Theme Override¶
Override theme for specific slides:
Best Practices¶
1. Use Consistent Themes¶
Apply the same theme throughout a presentation:
2. Limit Style Overrides¶
Use style overrides sparingly for emphasis:
# Good: Use override for special slide
- layout: bullet_list
title: "Important Notice"
style:
background_color: "#ff0000"
text_color: "#ffffff"
# Avoid: Overriding every slide
3. Test Theme Compatibility¶
Verify theme works with all layout types:
4. Create Reusable Templates¶
Create PowerPoint templates for your organization:
Reference in schemas:
Advanced Theming¶
Custom Color Schemes¶
Define custom color schemes in PowerPoint template:
- Open PowerPoint
- View → Slide Master
- Colors → Customize Colors
- Define color scheme
- Save as template
Font Configuration¶
Set default fonts in template:
- View → Slide Master
- Fonts → Customize Fonts
- Define heading and body fonts
- Save as template
Troubleshooting¶
Theme Not Applied¶
Issue: Theme changes not visible in output
Solutions:
- Verify theme path is correct
- Check template file is valid .pptx
- Ensure template has slide master defined
Font Not Found¶
Issue: Font not displaying correctly
Solutions: - Use system-installed fonts - Check font name spelling - Fallback font will be used if unavailable
Color Not Rendering¶
Issue: Colors not matching expected values
Solutions:
- Verify hex color format (#RRGGBB)
- Check color values are valid (0-9, A-F)
- PowerPoint may adjust colors for contrast
Next Steps¶
- Explore layout options with theming
- Check out example presentations
- Learn about CLI theming options