/reports:modifying-theme-jsonfrom reports
Designs, enforces, audits, and validates Power BI report themes via the pbir CLI. Helps standardize formatting, rebrand, clear visual overrides, and improve theme compliance.
Ships in reports. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill for theme design and compliance decisions. Use the pbir-cli skill for command details.
Use pbir for every report and theme mutation. Never edit theme.json, visual.json, serialized .Theme fragments, or other report JSON directly. Never fall back to jq, shell replacement, or a JSON-editing skill. If pbir lacks the required operation, stop and report the missing capability.
Read JSON only through pbir cat, pbir get, or read-only examples. Prefer structured CLI inspection commands because they explain the formatting cascade and usage.
A theme centralizes formatting that would otherwise drift across visuals. It should own repeated choices such as:
Visual-level overrides should remain only for content-specific exceptions or conditional formatting. Theme-first reports are easier to rebrand, diff, and maintain.
Power BI defaults
-> theme wildcard defaults
-> theme visual-type defaults
-> selected style preset
-> visual instance overrides
The last layer wins. Diagnose unexpected rendering with pbir visuals format, which reports the effective value and source; do not inspect or patch visual.json.
pbir theme colors "Report.Report"
pbir theme fonts "Report.Report"
pbir color list "Report.Report"
pbir fonts list "Report.Report"
pbir visuals format "Report.Report/Page.Page/Visual.Visual"
pbir bpa run "Report.Report"
Look for hard-coded colors, repeated visual-level font or container overrides, inconsistent visual types, weak contrast, excessive palette size, and sentiment colors that change meaning between visuals.
pbirStart from a valid template or the report's existing theme; do not author an empty theme.
# Apply a known base when requested
pbir theme list-templates
pbir theme apply-template "Report.Report" sqlbi
# Set palette and semantic colors
pbir theme set-colors "Report.Report" \
--data-colors '["#1971C2","#F08C00","#2F9E44","#7048E8"]' \
--good "#2E7D32" --neutral "#6B7280" --bad "#C62828" \
--background "#FFFFFF" --foreground "#252525"
# Set typography by semantic level
pbir theme set-fonts "Report.Report" title --font-face "Segoe UI Semibold" --font-size 14
pbir theme set-fonts "Report.Report" label --font-face "Segoe UI" --font-size 10
pbir theme set-fonts "Report.Report" callout --font-face "Segoe UI Semibold" --font-size 32
# Set repeated formatting at theme level
pbir theme set-formatting "Report.Report" "*.*.dropShadow.show" --value false
pbir theme set-formatting "Report.Report" "*.*.border.show" --value false
pbir theme set-formatting "Report.Report" "card.*.title.fontSize" --value 14
Run pbir schema describe <visualType> <object> before authoring unfamiliar formatting properties.
pbir theme push-visual "Report.Report/Page.Page/BestCard.Visual" --dry-run
pbir theme push-visual "Report.Report/Page.Page/BestCard.Visual"
Use this when a well-designed instance should become the default for its visual type. Inspect the dry run first so content-specific formatting is not promoted accidentally.
Clearing overrides is destructive and must be confirmed with the user. Preserve conditional formatting unless the user explicitly wants it removed.
pbir visuals clear-formatting "Report.Report/**/*.Visual" --keep-cf --dry-run -f
pbir visuals clear-formatting "Report.Report/**/*.Visual" --keep-cf -f
pbir theme colors "Report.Report" --normalize
pbir theme colors "Report.Report" --normalize --apply
For selective cleanup, use the flags documented by pbir visuals clear-formatting --help rather than broad file edits.
pbir cp "Source.Report/theme" "Target.Report/theme" -f
pbir theme validate "Target.Report"
After a theme swap, clear stale visual overrides, normalize surviving color literals, and inspect foreground/background polarity so text does not become invisible.
Use one confidence pass after a coherent batch:
pbir theme validate "Report.Report"
pbir validate "Report.Report" --all
pbir desktop refresh "Report.Report"
pbir desktop screenshot "Report.Report" --all --output-dir screenshots
Desktop refresh does not reload theme resources. Close and reopen the report before judging theme changes, then capture screenshots. If Desktop is unavailable, ask before publishing to a sandbox workspace for rendered verification.
references/style-presets.md: named style presets per visual type, default preset, selecting a preset on visualspbir-cli -> references/modifying-theme.md: colors, fonts, formatting, normalization, validationpbir-cli -> references/apply-theme.md: templates, copying, clearing overridespbir-cli -> references/format-visuals.md: cascade inspection and property discoverypbi-report-design: layout, restrained color use, hierarchy, and accessibilityexamples/DataGoblins2021.json (opens in a new tab)examples/Fluent2-CY26SU03.json (opens in a new tab)examples/visualTypes/actionButton.md (opens in a new tab)examples/visualTypes/advancedSlicerVisual.md (opens in a new tab)examples/visualTypes/aiNarratives.md (opens in a new tab)examples/visualTypes/areaChart.md (opens in a new tab)examples/visualTypes/azureMap.md (opens in a new tab)examples/visualTypes/barChart.md (opens in a new tab)examples/visualTypes/bookmarkNavigator.md (opens in a new tab)examples/visualTypes/card.md (opens in a new tab)examples/visualTypes/cardVisual.md (opens in a new tab)examples/visualTypes/clusteredBarChart.md (opens in a new tab)examples/visualTypes/clusteredColumnChart.md (opens in a new tab)examples/visualTypes/columnChart.md (opens in a new tab)examples/visualTypes/decompositionTreeVisual.md (opens in a new tab)examples/visualTypes/donutChart.md (opens in a new tab)examples/visualTypes/filledMap.md (opens in a new tab)examples/visualTypes/filter.md (opens in a new tab)examples/visualTypes/funnel.md (opens in a new tab)examples/visualTypes/gauge.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
power-bi, theme-design, report-formatting, pbir-cli, visual-compliance
npx claudepluginhub data-goblin/power-bi-agentic-development --plugin reports5 skills in this plugin
/create-pbi-reportStep-by-step workflow for creating complete Power BI reports from scratch using pbir CLI. Covers model discovery, report creation, page layout, theme setup, visual placement, field binding, filtering, formatting, validation, and publishing. Automatically invoke when the user asks to "create a new report", "build a report from scratch", "make a dashboard", "set up a report with KPIs", "create an executive dashboard", "add pages and visuals to a new report"./pbir-cliThis skill should be used whenever the user mentions "pbir", "pbir-cli", "Power BI reports", or "PBI reports", works with .pbir, .pbip, or .pbix files, or wants to refresh, screenshot, or visually verify a report that is open in Power BI Desktop. Covers creating, exploring, formatting, validating, and publishing Power BI reports through the pbir CLI and object model, plus driving Power BI Desktop (canvas reload, page screenshots) and querying connected or local semantic models./pbi-report-designThe Power BI report design canon covering design identity, visual hierarchy and the 3-30-300 rule, layout/spacing/alignment, color discipline, chart selection, KPI and card design, tables and matrices, accessibility, and the closing design gate. The shared reference home for report design judgment, routed to by the create-pbi-report, pbir-cli, review-report, modifying-theme-json, and custom-visual skills. Load when committing a design identity or making a design, layout, color, chart-selection, or accessibility decision for a report./review-reportActionable feedback on the quality, usage, and effectiveness of Power BI reports. Automatically invoke when the user asks to "review a report", "audit a report", "report usage analysis", "report health check", "find unused reports", "check if a report is being used", "assess report performance", "evaluate report quality".Other plugins' skills for the same job