# modifying-theme-json

modifying-theme-json manages Power BI report themes via the pbir CLI: creates themes, changes palette and fonts, promotes visual formatting into the theme, clears local overrides.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1104 repo stars
- Author: Kurt Buhler
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/reports/skills/modifying-theme-json/SKILL.md
- Updated: 2026-10-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/modifying-theme-json

## What it does

The skill interacts with Power BI report `theme.json` exclusively through `pbir` commands — manual JSON editing is prohibited. It sets data colors, semantic colors (good, bad, neutral), typography by hierarchy level (title, label, callout), container settings (shadows, borders, padding), and visual-type defaults for cards, slicers, and tables. You can promote a well-designed visual's formatting into the theme using `pbir theme push-visual`.

After changes, the skill validates and refreshes the report in Power BI Desktop. Without Desktop installed, rendering does not work. Clearing overrides is destructive — the skill asks for confirmation and preserves conditional formatting by default with the `--keep-cf` flag.

## Requirements
- Works with: Power BI

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add data-goblin/power-bi-agentic-development
```
In the agent chat (not a shell):
```text
/plugin install reports@power-bi-agentic-development
```
This installs the whole reports plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill modifying-theme-json -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/modifying-theme-json/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/modifying-theme-json/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill modifying-theme-json -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/modifying-theme-json/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill modifying-theme-json -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/modifying-theme-json/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install data-goblin/power-bi-agentic-development plugins/reports/skills/modifying-theme-json
```

2. **Manually: put the files in place**
- File: `.github/skills/modifying-theme-json/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill modifying-theme-json -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/data-goblin/power-bi-agentic-development --path plugins/reports/skills/modifying-theme-json
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/modifying-theme-json/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/reports/skills/modifying-theme-json/SKILL.md

## When to use it
- create a Power BI report theme from a template via pbir
- set data palette and semantic colors in the theme
- promote visual formatting into the theme with push-visual
- clear local overrides while preserving conditional formatting
- inspect formatting cascade and property source for a visual

## Example prompts
- Apply the sqlbi theme template to Report.Report using pbir theme apply-template
- Set data palette to #1971C2, #F08C00, #2F9E44 and bad color to #C62828 in the report theme
- Promote formatting from visual Page.Page/BestCard.Visual into the theme with pbir theme push-visual

## Similar
- [Horizun PBI MCP](https://affpapa.org/en/nevibecode/mcp/horizun-pbi-mcp.md) — MCP server · ★ 34 repo stars
- [power-bi-report-design-best-practices](https://affpapa.org/en/nevibecode/rules/power-bi-report-design-best-practices.md) — rule · ★ 41430 repo stars
- [power-bi-development](https://affpapa.org/en/nevibecode/plugins/power-bi-development.md) — plugin · ★ 41430 repo stars
- [preline-theme-generator](https://affpapa.org/en/nevibecode/skills/preline-theme-generator.md) — skill · 1400 installs
- [theme-craft](https://affpapa.org/en/nevibecode/skills/theme-craft.md) — skill · 494 installs
- [power-bi-build](https://affpapa.org/en/nevibecode/skills/power-bi-build.md) — skill · 688 installs

From the same set: [data-goblin/power-bi-agentic-development](https://affpapa.org/en/nevibecode/by/data-goblin/power-bi-agentic-development.md) — 59 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
