agentleFS
MicrosoftKnown publishermicrosoft/fabric-org-app-template/.agents/skills/org-app-theming/SKILL.md

org-app-theming

Skill1 starsChanged 6 months agoMITView on GitHub

Patch src/global.css so the --color-app-* Tailwind tokens use the Org App's brand colors extracted by the org-app-parsing skill. Use after org-app-parsing has populated the manifest theme.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not modify themePresets.ts or lib/theme.ts from this skill — those are end-user surfaces.

    line 23
  2. Distinctive:

    Use a single string replacement per token.

    line 46
  3. Very specific:

    Update only the five required tokens.

    line 48
  4. Very specific:

    Do not override these tokens in the .dark block.

    line 52
  5. Very specific:

    If colors don't update: check the browser's DevTools → Elements → Computed → search for --color-app-background.

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

org-app-theming

When to use this skill

Right after org-app-parsing has populated the theme object in src/config/orgAppManifest.ts. The components reference theme colors via CSS variables (var(--color-app-background) etc.), and those variables live in src/global.css.

This skill writes the default theme — the one shown until the end user picks something else from Settings → Theme.

Scope: this skill vs the runtime theme picker

This skill (org-app-theming)Runtime picker (Settings → Theme)
Who runs itMigration agent, once per template instanceEnd user, any time
What it changes@theme defaults in src/global.css:root inline styles + localStorage["org-app-active-theme"]
When it appliesAlways — the baselineOnly when the user picks a non-default theme
What it can pick fromThe Org App's own brand colorsThe Org App's brand colors or any built-in Power BI theme in src/config/themePresets.ts

Do not modify themePresets.ts or lib/theme.ts from this skill — those are end-user surfaces. Your job is only to write the Org App's brand colors into the @theme block so they become the default.

Target tokens

Edit the @theme block in src/global.css. The five required tokens to update, plus one optional:

@theme {
    --color-app-background: <theme.background>;
    --color-app-foreground: <theme.foreground>;
    --color-app-background-hover: <theme.backgroundHover>;
    --color-app-background-selected: <theme.backgroundSelected>;
    --color-app-background-pressed: <theme.backgroundPressed>;
    /* Optional — only set when `theme.backgroundSelected` is a saturated
       accent that would clash with the default `foreground` text color. */
    --color-app-foreground-selected: <theme.foregroundSelected ?? theme.foreground>;
}

The placeholder values already in global.css are a neutral white shell. Replace them with the extracted hex strings — keep the leading # and the trailing ;.

Editing rules

  1. Use a single string replacement per token. Do not regenerate the whole file.
  2. Preserve all other tokens in the @theme block (font sizes, spacing, etc.).
  3. Update only the five required tokens; add --color-app-foreground-selected only when the Org App's theme.foregroundSelected is set. The component layer (Sidebar) relies on exactly these names.

Dark mode

Do not override these tokens in the .dark block. The Org App's brand colors carry through both light and dark mode by design — only the surrounding shell (--color-background, --color-foreground) flips.

Verification

After patching, run:

pnpm dev

And confirm:

  • Sidebar background matches theme.background
  • Hovering a nav item shows theme.backgroundHover
  • The selected (active) nav item shows theme.backgroundSelected
  • Pressing (mouse-down) a nav item briefly shows theme.backgroundPressed

If colors don't update: check the browser's DevTools → Elements → Computed → search for --color-app-background. The value should match what you wrote.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.