Claude-skill-registry ia-presenter-themes
This skill should be used when creating, modifying, or troubleshooting custom themes for iA Presenter.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/ia-presenter-themes" ~/.claude/skills/majiayu000-claude-skill-registry-ia-presenter-themes && rm -rf "$T"
skills/data/ia-presenter-themes/SKILL.mdiA Presenter Theme Creation
Overview
Create or edit custom iA Presenter themes that control the visual appearance of presentations, including typography, colours, layouts, backgrounds, and responsive behaviour. Themes consist of CSS files, JSON configuration files, and optional custom fonts or images.
Core Concepts
Theme Structure
Every iA Presenter theme consists of:
- Theme metadata (name, author, CSS filename, fonts)template.json
- Colour presets for light/dark modes and gradientspresets.json
- CSS rules for layouts, typography, and stylingtheme.css- Custom fonts (optional) -
font files.woff2 - Images/assets (optional) - Background images or other visual assets
Theme Location
Themes are stored in:
~/Library/Containers/net.ia.presenter/Data/Library/Application Support/iA Presenter/Themes/
Development Workflow
- Create theme structure in ~/Library/Containers/net.ia.presenter/Data/Library/Application Support/iA Presenter/Themes/<YourTheme>
- Created / edit CSS/JSON files
- Ask the user to:
- Close and reopen iA Presenter to see changes
- Test in both light and dark modes
- Validate across different layouts
Task Decision Tree
When the user requests theme work, determine the appropriate task:
Creating a New Theme
Trigger: User wants to create a theme from scratch Steps:
- Clarify requirements (colour palette, fonts, layout preferences)
- Choose approach: starter templates or custom build
- Load
for CSS classesreferences/quick_reference.md - Create
,template.json
, and CSS filepresets.json - Write files to theme directory
- Provide testing checklist
Resources:
assets/starter-theme/*, references/quick_reference.md
Modifying an Existing Theme
Trigger: User wants to customise an existing theme Steps:
- Read the existing theme files
- Identify what needs modification
- Load relevant references based on changes
- Edit the appropriate files
- Validate changes
Resources:
references/official_guide.md, references/quick_reference.md
Adding Custom Fonts
Trigger: User wants to add custom typography Steps:
- Verify font files (
format) are available.woff2 - Add
declarations to CSS@font-face - Update
with display namestemplate.json - Update
with CSS font family namespresets.json - Confirm font files are in theme directory
Resources:
references/official_guide.md (Custom Fonts section)
Implementing Backgrounds
Trigger: User wants gradients, images, or SVG backgrounds Steps:
- Determine background type (image, SVG, gradient)
- For gradients: Update
presets.json - For images/SVG: Add to CSS with proper selectors
- Test in both light and dark modes
- Validate across layouts
Resources:
references/official_guide.md (Backgrounds section), references/advanced_techniques.md
Troubleshooting
Trigger: Theme not working as expected Steps:
- Identify the issue category
- Load
for debugging tipsreferences/advanced_techniques.md - Apply debugging borders if needed
- Validate JSON syntax
- Check common issues (SVG colours, font paths, selectors)
Resources:
references/advanced_techniques.md
Common Customisations
Typography
Modify heading sizes, line heights, and font weights. The starter CSS includes a typography section with heading sizes for both desktop and mobile. Target headings within layouts:
section > :not([class*="layout-"]) h1, [class*="layout-"] > div h1 { font-size: 2.986em; line-height: 1; }
Layout Alignment
Available layouts and their CSS classes:
| Layout | Container Class | Content Class |
|---|---|---|
| Cover | | |
| Title | | |
| Section | | |
| Split | | |
| Grid | | |
| Caption | | |
| Image Title | | |
| Default | | |
To align content, target the inner
div of each layout:
.layout-cover > div { justify-content: center; /* vertical: flex-start, center, flex-end */ align-items: center; /* horizontal: flex-start, center, flex-end */ }
Backgrounds
Image backgrounds:
.backgrounds .cover-container { background-image: url("cover-bg.jpg"); background-size: cover; background-position: center; }
Inline SVG (use
rgb() colours, not hex):
.backgrounds .v-split-container { background-image: url('data:image/svg+xml;utf8,<svg>...</svg>'); }
Gradients (defined in
presets.json, not CSS):
{ "LightBgGradient": ["#c7e7ff", "#f0c8ff", "#ffdada", "#ffebb2"], "DarkBgGradient": ["#15354c", "#3e154c", "#4c2828", "#4c3900"] }
Light and Dark Modes
Configure colours for both modes in
presets.json:
{ "Appearance": "light", "DarkBodyTextColor": "#000000", "LightBodyTextColor": "#ffffff", "DarkTitleTextColor": "#000000", "LightTitleTextColor": "#ffffff", "DarkBackgroundColor": "#1a1a1a", "LightBackgroundColor": "#ffffff" }
CRITICAL: Understanding iA Presenter Colour Naming
The colour field names in
presets.json can be counter-intuitive. They refer to the COLOUR OF THE ELEMENT, not the mode:
-
= Dark-coloured text (e.g. #000000 black)DarkBodyTextColor- Used for text ON light backgrounds in light mode
-
= Light-coloured text (e.g. #ffffff white)LightBodyTextColor- Used for text ON dark backgrounds in dark mode
-
= Dark background colour (e.g. #1a1a1a)DarkBackgroundColor- Used as background in dark mode
-
= Light background colour (e.g. #ffffff)LightBackgroundColor- Used as background in light mode
Example - For good contrast:
{ "DarkBodyTextColor": "#000000", // Black text for light backgrounds "LightBodyTextColor": "#ffffff", // White text for dark backgrounds "DarkBackgroundColor": "#1a1a1a", // Dark grey background "LightBackgroundColor": "#ffffff" // White background }
In light mode: Uses LightBackgroundColor (#ffffff) with DarkBodyTextColor (#000000) In dark mode: Uses DarkBackgroundColor (#1a1a1a) with LightBodyTextColor (#ffffff)
Common Mistake: Swapping DarkBodyTextColor and LightBodyTextColor, which results in invisible text.
Force appearance for specific layouts in
template.json:
"Layouts": [ { "Name": "Cover", "Classes": "dark" } ]
Responsive Design
Default CSS applies to mobile. Use media queries for larger screens:
/* Mobile (default) */ @media (max-width: 639px) { [class*="layout-"] > div h1 { font-size: 2.074em; } } /* Desktop/Tablet */ @media (min-width: 768px) { /* Desktop-specific styles */ }
Troubleshooting Guide
Text Not Visible (Invisible Text Issue)
Symptom: Text appears invisible in both light and dark modes
Cause: Incorrect colour assignments in
presets.json. The colour naming refers to the colour of the element, not the mode.
Solution: Ensure colours are assigned correctly:
{ "DarkBodyTextColor": "#000000", // Dark text (for light backgrounds) "LightBodyTextColor": "#ffffff", // Light text (for dark backgrounds) "DarkBackgroundColor": "#1a1a1a", // Dark background "LightBackgroundColor": "#ffffff" // Light background }
Common Mistake: Setting
DarkBodyTextColor to a light colour like "#ffffff" - this puts white text on a white background in light mode.
Inline SVG Broken
Use
rgb(255,0,0) instead of #FF0000 in inline SVG. Hex colours break inline SVG in CSS.
Fonts Not Loading
Verify:
- Font files (
) are in the theme directory.woff2
declarations use correct file paths@font-face
has display font namestemplate.json
has CSS font family namespresets.json
Layout Alignment Issues
Target the inner
div of layouts:
.layout-cover > div { /* alignment properties */ }
Not the container:
.cover-container { /* this won't align content */ }
Debugging Technique
Use coloured borders during development:
.cover-container { border: 5px solid red; } .layout-cover > div { border: 5px dashed red; } .title-container { border: 5px solid blue; } .layout-title > div { border: 5px dotted blue; }
Remove these before final distribution.
Validation Checklist
When creating or modifying themes:
- All required files exist (
,template.json
, CSS file)presets.json - JSON files have valid syntax
- Tested in both light and dark modes
- Responsive behaviour verified at different viewport sizes
- Custom fonts load correctly (if applicable)
- All layouts tested (cover, title, section, split, grid, caption, image title, default)
- Gradients render smoothly (if applicable)
- Backgrounds display correctly (if applicable)
- Debugging borders and comments removed
Best Practices
- Start with templates - Use
for consistencyassets/starter-theme/* - Reference documentation - Load
for CSS classesreferences/quick_reference.md - Test thoroughly - Verify in light/dark modes and all layouts
- Use semantic names - Name colours and presets descriptively
- Comment CSS - Add comments for complex or non-obvious rules
- Mobile-first - Default styles for mobile, enhance for desktop
- Consistent spacing - Use consistent units (em, rem) for scalability
- Minimal overrides - Only override what's necessary
- British English - Use British spelling in all comments and documentation
Key Reminders
- CRITICAL: Colour naming - DarkBodyTextColor = dark-coloured text (for light backgrounds), LightBodyTextColor = light-coloured text (for dark backgrounds). DO NOT swap these!
- No hot reload on theme creation - The user must close and reopen iA Presenter when you first create a theme, but subsequent updates will apply on the fly.
- Inner div targeting - Alignment rules target
, not the container.layout-* > div - Inline SVG colours - Use
format, not hexadecimalrgb() - Mobile-first - Default CSS applies to mobile, add
for desktop@media (min-width: 768px) - Both modes - Always configure and test light and dark appearances
- Grid modifiers - Grid layouts have
,.grid-items-2
, etc. classes.grid-items-3 - British spelling - Use "colour", "centre", "customise" in all content
- Minimal CSS overrides - Avoid setting explicit colours in CSS for text/backgrounds - let presets.json handle them
- Update placeholders - Update any placeholder content in the template.json, theme.css, presets.json files
- If you need clarification on the theme you may ask the user for more details about their preferences and requirements.
Resources
references/
Reference documentation to load into context as needed:
- Complete official iA Presenter theme documentation covering all layouts, CSS classes, font configuration, backgrounds, gradients, and appearancesofficial_guide.md
- Condensed reference with CSS classes, selectors, file structure, and common patterns for quick lookupquick_reference.md
- Advanced techniques including centring content, debugging borders, inline SVG backgrounds, and workflow tipsadvanced_techniques.md
Load progressively:
- Always useful:
(CSS classes, structure)quick_reference.md - For new themes:
filesassets/starter-theme/* - For complex customisation:
official_guide.md - For debugging:
advanced_techniques.md
assets/
Starter theme templates in
assets/starter-theme/:
- Minimal theme metadata templatetemplate.json
- Colour preset template with sensible defaultspresets.json
- Comprehensive CSS starter with commented sections for typography, layouts, backgrounds, headers/footers, responsive designtheme.css
- Guide for using the starter templatesREADME.md
Use these templates as a starting point for new themes. Copy and customise based on user requirements.