power-bi-themes

Featured

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.

AI & Automation 453 stars 114 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
88
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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: ```bash pbi report set-theme --file corporate-theme.json ``` 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 ```bash pbi report get-theme ``` Returns: - `base_theme` -- the built-in theme name (e.g. `"CY24SU06"`) - `custom_theme` -- custom theme name if one is applied (or `null`) - `theme_data` -- full JSON of the custom theme file (if it exists) ## Comparing Themes Before applying a new theme, preview what would change: ```bash pbi report diff-theme --file proposed-theme.json ``` Returns: - `current` / `proposed` -- display names - `added` -- keys in proposed but not current - `removed` -- keys in current but not proposed - `changed` -- 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: ```json { "name": "Corporate Brand", "dataColors": ["#0078D4", "#00BCF2", "#FFB900", "#D83B01", "#8661C5", "#00B294"], "background": "#FFFFFF", "foreground": "#252423", "tableAccent": "#0078D...

Details

Author
MinaSaad1
Repository
MinaSaad1/pbi-cli
Created
5 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

powerbi-modifying-theme-json

Design, enforce, audit, and validate Power BI report themes. This skill MUST be invoked when a report uses the default or built-in theme, has a minimal custom theme (few or no visualStyles), or has accumulated many visual-level formatting overrides (objects/visualContainerObjects in visual.json); these are signs the theme needs attention. Also automatically invoke when the user asks to "create a theme", "design a theme", "enforce theme compliance", "audit theme adherence", "push formatting to theme", "clear visual overrides", "standardize report formatting", "update theme colors", "change theme typography", "set theme text classes", "validate a theme", "add visual-type overrides to the theme", "copy a theme", "download a theme", "apply a template", or mentions theme design, enforcement, compliance, or visual formatting inconsistency.

2 Updated 1 weeks ago
santoshkanthety
Data & Documents Listed

pbir-themes

Use when authoring or editing a Power BI report theme JSON under Report.Report/StaticResources/SharedResources/BaseThemes/ or RegisteredResources/. Covers top-level theme properties (name, dataColors palette, semantic colors background/foreground/tableAccent, sentiment good/bad/neutral/minimum/maximum/center, textClasses title/label/callout/header, visualStyles), inheritance (wildcard, per-visualType, per-instance visual.json), state keys (default, hover, press, selected), theme JSON value conventions — BARE numbers never D/L suffixes, BARE hex without inner quotes, unlike visual.json — ThemeDataColor with ColorId + Percent tint, container vs chart object properties, textClasses, outspacePane styling (colors, text, backgrounds, input colors, width), filterCard targeting Available/Applied/GUID, wildcard + override patterns, clearing stale overrides via pbir visuals clear-formatting --keep-cf -f. Invoke when user edits a theme file, tweaks CY24SU10, or fixes a theme-not-applied issue.

2 Updated 2 weeks ago
wardawgmalvicious