add-theme

A command for adding a light and dark visual theme to the Quiver app. It updates the app's shared style settings and makes the theme available in the theme selector.

In plain words
What is it for?
Use it when creating themes such as an ocean or terminal look. It can also add theme-specific Tailwind CSS variants when individual elements need extra styling.
Why use it?
It gives a consistent process for adding colors and other theme values without scattering fixed colors through individual components.

Command for Claude Code

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.

agentmods
npx agentmods add commands/go4cas/quiver/add-theme
Clone the repo
git clone --depth 1 https://github.com/go4cas/quiver

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 477 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00477
Opus 5 $0.00000 $0.00238
Sonnet 5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00048

Measured 2d ago against content hash 93c59eec9273, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

add-theme 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 2d 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.

.claude/commands/add-theme.md · 57 lines

What it actually says

Add a new visual theme to this Quiver app: $ARGUMENTS

The argument is a theme identifier and optional description (e.g. ocean — cool blues, soft shadows, terminal — green-on-black hacker aesthetic).

Follow this process:

Step 1 — Token override blocks in src/style.css

Study the existing theme blocks ([data-theme="mono"], [data-theme="glass"], etc.) to see which custom properties a theme overrides. Add a light and a dark block for the new theme:

/* <Label> — light */
[data-theme="<id>"] {
  --color-surface: ...;
  --color-brand: ...;
  /* override the same token set the existing themes do */
}

/* <Label> — dark */
[data-theme="<id>"][data-mode="dark"] {
  ...
}

Only override semantic tokens — never introduce new hard-coded colors in components.

Step 2 — Tailwind variant (optional)

If the theme needs per-element utility overrides in markup, register a variant alongside the existing ones near the top of src/style.css:

@variant theme-<id> (&:where([data-theme=<id>], [data-theme=<id>] *));

Step 3 — Register in the ThemeSelector

Add an entry to the THEMES array in src/components/ThemeSelector.js:

{ id: '<id>', label: '<Label>', bg: 'bg-[#<swatch-hex>]' },

The bg value is the swatch color shown in the selector — pick the theme's brand color.

Step 4 — Test

Extend tests/e2e/theme.test.js with a case matching the existing ones: selecting the new theme applies data-theme="<id>". Iterate with the targeted run, then finish with the full gate:

npm run test:e2e -- --grep "theme"                  # while iterating
npm run typecheck && npm test && npm run test:e2e   # full gate before done

Step 5 — Verify visually

Run npm run dev, switch to the new theme via the selector, and check both light and dark mode on the dashboard and team pages before reporting done.

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. 2d ago First seen · 57 lines · 0 tokens per session scan A 93c59eec9273

Subscribe to this mod's changes

add-theme is a command published in the GitHub repository go4cas/quiver (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 477 tokens. 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.