Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add andrewsrigom/agent-skills --skill shadcn-theming-tokens-and-dark-modegit clone --depth 1 https://github.com/andrewsrigom/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/andrewsrigom/agent-skills/shadcn-theming-tokens-and-dark-mode)<a href="https://agentmods.dev/skills/andrewsrigom/agent-skills/shadcn-theming-tokens-and-dark-mode"><img src="https://agentmods.dev/badge/skills/andrewsrigom/agent-skills/shadcn-theming-tokens-and-dark-mode/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/andrewsrigom/agent-skills/shadcn-theming-tokens-and-dark-mode"><img src="https://agentmods.dev/badge/skills/andrewsrigom/agent-skills/shadcn-theming-tokens-and-dark-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.00669 |
| Opus 5.5 | $0.00026 | $0.00268 |
| Sonnet 5.5 | $0.00013 | $0.00134 |
| Haiku 4.5 | $0.00006 | $0.00067 |
Grade A, and why
shadcn-theming-tokens-and-dark-mode scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
shadcn Theming Tokens And Dark Mode
Use this skill when the task is mainly about visual defaults, token strategy, or dark-mode behavior in a shadcn app.
Scope
- theme tokens
- CSS variables mode
- semantic color mapping
- dark mode strategy
- keeping component-level styling overrides under control
Routing cues
- shadcn theming,
:root, CSS variables, OKLCH colors, semantic tokens, dark mode, theme provider,next-themes, or visual consistency across components -> use this skill - if the work is mainly about CLI init or
components.json-> useshadcn-cli-registry-and-components-json - if the work is mainly about component composition and trigger behavior -> use
shadcn-composition-and-trigger-patterns
Default path
- Use CSS variables mode for app-wide theming.
- Define semantic tokens first: background, foreground, card, popover, primary, secondary, muted, accent, border, input, ring, and chart or sidebar tokens if the app needs them.
- Keep brand decisions in token values, not repeated utility overrides inside every component.
- Use one dark-mode strategy for the whole app and wire it early.
- Let components consume tokens through their default class contracts before adding custom variants.
When to deviate
- Use hardcoded per-component utility styling only when the component is intentionally one-off.
- Add extra token families only when a repeated product surface truly needs them.
- Skip dark mode only when the product has a deliberate single-theme stance.
Guardrails
- tokens should describe semantics, not page-specific hacks
- brand color changes belong in variables, not in mass component edits
- dark mode should be an application decision, not a component-by-component experiment
- keep contrast and readability intact when shifting tokens
Avoid
- styling every shadcn component with ad hoc utility overrides instead of fixing the token layer
- creating token names that encode one page or one feature
- adding several parallel dark-mode patterns in the same app
- using theme state to solve layout or composition problems
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 73 lines · 65 tokens per session scan A fb45f5e22f11
shadcn-theming-tokens-and-dark-mode is a skill published in the GitHub repository andrewsrigom/agent-skills (2 stars, last pushed 7mo ago), licensed MIT. It adds 65 tokens to every session and 669 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
shadcn-theming-tokens-and-dark-mode compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| shadcn-theming-tokens-and-dark-modeandrewsrigom/agent-skills | Skill | 2 | 7mo ago | MIT | A | 65 | Claude Code, Codex |
| anti-slop-designsickn33/agentic-awesome-skills | Skill | 49k | yesterday | MIT | A | 34 | Claude Code |
| chakra-ui-builderchakra-ui/chakra-ui | Skill | 41k | 2d ago | MIT | A | 214 | Claude Code, Codex |
| visual-ralphYeachan-Heo/oh-my-codex | Skill | 34k | today | MIT | A | 52 | Codex |
| open-design-setupcompozy/compozy | Skill | 2.9k | today | MIT | A | 67 | Claude Code, Codex |
| prototype-webnexu-io/html-anything | Skill | 9.4k | yesterday | Apache-2.0 | A | 24 | Claude Code, Codex |
| frontend-visual-qadaymade/claude-code-skills | Skill | 1.5k | today | MIT | A | 125 | Claude Code, Codex |