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.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- app-designSkill
- app-validationSkill
- org-app-fetchSkill
- org-app-parsingSkill
- playwright-cliSkill
- powerbi-secure-embedSkill
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
- Very specific: line 23
Do not modify themePresets.ts or lib/theme.ts from this skill — those are end-user surfaces.
- Distinctive: line 46
Use a single string replacement per token.
- Very specific: line 48
Update only the five required tokens.
- Very specific: line 52
Do not override these tokens in the .dark block.
- Very specific: line 69
If colors don't update: check the browser's DevTools → Elements → Computed → search for --color-app-background.
≈ “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.
Files
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 it | Migration agent, once per template instance | End user, any time |
| What it changes | @theme defaults in src/global.css | :root inline styles + localStorage["org-app-active-theme"] |
| When it applies | Always — the baseline | Only when the user picks a non-default theme |
| What it can pick from | The Org App's own brand colors | The 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.cssare a neutral white shell. Replace them with the extracted hex strings — keep the leading#and the trailing;.
Editing rules
- Use a single string replacement per token. Do not regenerate the whole file.
- Preserve all other tokens in the
@themeblock (font sizes, spacing, etc.). - Update only the five required tokens; add
--color-app-foreground-selectedonly when the Org App'stheme.foregroundSelectedis 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 devAnd 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.
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
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.

