shadcn-theming-tokens-and-dark-mode

shadcn-theming-tokens-and-dark-mode is a skill for Claude Code, Codex from andrewsrigom/agent-skills. It costs 65 tokens per session (669 once invoked), scanned A, original, MIT.

Guidance for setting consistent colors and appearance across a shadcn/ui application using shared CSS variables, including light and dark modes. It explains semantic tokens, such as names for backgrounds, borders, and primary actions.

In plain words
What is it for?
Use it when defining a design system, setting up dark mode, choosing an OKLCH color palette, or keeping shadcn/ui components visually consistent.
Why use it?
It prevents each component from gaining unrelated color choices and makes application-wide visual changes easier to manage.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when defining a design system, setting up dark mode, choosing an OKLCH color palette, or keeping shadcn/ui components visually consistent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andrewsrigom/agent-skills/shadcn-theming-tokens-and-dark-mode
Install

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.

Any agent
npx skills add andrewsrigom/agent-skills --skill shadcn-theming-tokens-and-dark-mode
Clone the repo
git clone --depth 1 https://github.com/andrewsrigom/agent-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for shadcn-theming-tokens-and-dark-mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/andrewsrigom/agent-skills/shadcn-theming-tokens-and-dark-mode/github.svg)](https://agentmods.dev/skills/andrewsrigom/agent-skills/shadcn-theming-tokens-and-dark-mode)
Your own site
<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.

agentmods 80×15 button for shadcn-theming-tokens-and-dark-mode

Your own site · 80×15
<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>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash fb45f5e22f11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

shadcn/shadcn-theming-tokens-and-dark-mode/SKILL.md · 73 lines

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 -> use shadcn-cli-registry-and-components-json
  • if the work is mainly about component composition and trigger behavior -> use shadcn-composition-and-trigger-patterns

Default path

  1. Use CSS variables mode for app-wide theming.
  2. 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.
  3. Keep brand decisions in token values, not repeated utility overrides inside every component.
  4. Use one dark-mode strategy for the whole app and wire it early.
  5. 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

Read the full file on GitHub · 73 lines

Files

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.

Changes

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.

  1. 2mo ago First seen · 73 lines · 65 tokens per session scan A fb45f5e22f11

Subscribe to this mod's changes

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.

Related

shadcn-theming-tokens-and-dark-mode compared with skills from other repositories

shadcn-theming-tokens-and-dark-mode next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shadcn-theming-tokens-and-dark-modeandrewsrigom/agent-skillsSkill27mo agoMITA65Claude Code, Codex
anti-slop-designsickn33/agentic-awesome-skillsSkill49kyesterdayMITA34Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41k2d agoMITA214Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34ktodayMITA52Codex
open-design-setupcompozy/compozySkill2.9ktodayMITA67Claude Code, Codex
prototype-webnexu-io/html-anythingSkill9.4kyesterdayApache-2.0A24Claude Code, Codex
frontend-visual-qadaymade/claude-code-skillsSkill1.5ktodayMITA125Claude Code, Codex