minasaad1/pbi-cli/power-bi-themes
Claude Code and agent skill by minasaad1/pbi-cli
- community
Checking that the SKILL.md file is still in the repository.
Apply, inspect, and compare Power BI report themes and conditional formatting rules using pbi-cli. Invoke this skill whenever the user mentions "theme", "colours", "colors", "branding", "dark mode", "corporate theme", "styling", "conditional formatting", "colour scale", "gradient", "data bars", "background colour", "formatting rules", "visual formatting", or wants to change the overall look-and-feel of a report or apply data-driven formatting to specific visuals.
Install
npx vskill@latest install minasaad1/pbi-cli/power-bi-themesSKILL.md
Power BI Themes Skill
Manage report-wide themes and per-visual conditional formatting. No Power BI Desktop connection is needed.
Applying a Theme
Power BI themes are JSON files that define colours, fonts, and visual defaults for the entire report. Apply one with:
This copies the theme file into the report's StaticResources/RegisteredResources/ folder and updates report.json to reference it. The theme takes effect when the report is opened in Power BI Desktop.
Inspecting the Current Theme
Returns:
base_theme-- the built-in theme name (e.g."CY24SU06")custom_theme-- custom theme name if one is applied (ornull)theme_data-- full JSON of the custom theme file (if it exists)
Comparing Themes
Before applying a new theme, preview what would change:
Returns:
current/proposed-- display namesadded-- keys in proposed but not currentremoved-- keys in current but not proposedchanged-- keys present in both but with different values
This helps catch unintended colour changes before committing.
Theme JSON Structure
A Power BI theme JSON file typically contains:
Key sections:
dataColors-- palette for data series (6-12 colours recommended)background/foreground-- page and text defaultstableAccent-- header colour for tables and matricesvisualStyles-- per-visual-type overrides (font sizes, padding, etc.)
See Microsoft theme documentation for the full schema.
Invalid Properties to Avoid
These properties look plausible but are not in PBI's theme schema. Including them causes PBI Desktop to fail silently or crash when loading the report:
| Property | Location | Why invalid | |
|---|---|---|---|
"radius": 8 | Inside border objects in visualStyles | Borders only accept color and show | |
"page": { ... } | Top-level key | Legacy pbiviz format — not valid in report themes | |
"dropShadow": { "position": "Inner" } | Inside visualStyles | No position sub-property exists for dropShadow |
Safe top-level keys for a custom theme: name, dataColors, background, foreground, tableAccent, visualStyles, textClasses, outspaceColor, borderColor, shapeColors
Always use pbi report diff-theme to preview changes before applying, and open the report in Desktop once to confirm it loads before committing the file.
Conditional Formatting
Apply data-driven formatting to individual visuals:
Workflow: Brand a Report
JSON Output
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/pbi_cli/skills/power-bi-themes/SKILL.md
Popularity
- Repository stars
- 400
- Repository forks
- 107
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/minasaad1/pbi-cli/power-bi-themes)