button-states

button-states is a skill for Claude Code from dembrandt/dembrandt-skills. It costs 36 tokens per session (1,726 once invoked), scanned A, original, MIT.

A design rule for giving buttons, links, fields, and other interactive controls distinct visual appearances for resting, hovering, pressing, keyboard focus, disabled, and loading states.

In plain words
What is it for?
It is for designing interaction states and deriving related colours from a control's base colour.
Why use it?
It prevents controls from looking unfinished or making it unclear whether an action is available, focused, or in progress.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dembrandt plugin — 45 skills, 1 MCP server shipped together

Good fit It is for designing interaction states and deriving related colours from a control's base colour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dembrandt/dembrandt-skills/button-states
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 dembrandt/dembrandt-skills --skill button-states
Clone the repo
git clone --depth 1 https://github.com/dembrandt/dembrandt-skills

Made for: Claude Code.

Or install dembrandt, the plugin that ships this one along with the rest of its 45 skills, 1 MCP server.

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 button-states

README.md
[![agentmods](https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/button-states/github.svg)](https://agentmods.dev/skills/dembrandt/dembrandt-skills/button-states)
Your own site
<a href="https://agentmods.dev/skills/dembrandt/dembrandt-skills/button-states"><img src="https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/button-states/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 button-states

Your own site · 80×15
<a href="https://agentmods.dev/skills/dembrandt/dembrandt-skills/button-states"><img src="https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/button-states.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,726 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. Third-party audits
  • Socket pass 2 Nov 2026
  • Snyk pass 2 Nov 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00036 $0.01726
Opus 5.5 $0.00014 $0.00690
Sonnet 5.5 $0.00007 $0.00345
Haiku 4.5 $0.00004 $0.00173

Measured 5d ago against content hash 8ab323cc69d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

button-states 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 5d 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.

skills/button-states/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Button and Interactive Element States

Every interactive component must have a complete, visually distinct state for each interaction mode. Missing or ambiguous states make the UI feel unfinished and reduce user confidence.

The Six States

State Trigger Visual signal
Rest Default Base colour, cursor: pointer
Hover Mouse over Slightly darker, subtle background shift
Active / Pressed Mouse down / tap Noticeably darker, slight scale-down
Focus Keyboard navigation Visible focus ring, no change to fill
Disabled Not available Low contrast, cursor: not-allowed, no interaction
Loading Async action in progress Spinner or pulse, non-interactive

Deriving State Colours Algorithmically

State colours are not chosen independently — they are derived from the base colour by adjusting lightness in HSL. This guarantees coherence across the entire palette.

base:     hsl(H, S%, L%)
hover:    hsl(H, S%, L% - 8%)    ← darken 8%
active:   hsl(H, S%, L% - 14%)   ← darken 14%

Example: primary button #635BFF (hsl 243, 100%, 68%)

.btn-primary {
  background: hsl(243, 100%, 68%);       /* rest    #635BFF */
}
.btn-primary:hover {
  background: hsl(243, 100%, 60%);       /* hover   #4A40FF */
}
.btn-primary:active {
  background: hsl(243, 100%, 54%);       /* active  #3429FF */
}

For light buttons on dark backgrounds, invert the logic — lighten on hover instead of darkening.

Secondary / outlined buttons

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-secondary:hover {
  background: var(--color-grey-100);     /* subtle fill */
  border-color: var(--color-grey-300);
}
.btn-secondary:active {
  background: var(--color-grey-200);
}

The Primary Fill Is Chosen per Background

A brand's main action is often not one colour. The bright brand colour carries it on white, a dark variant of the same hue on a light brand tint, black or white on photos and dark sections. Define the primary button as one role with a fill per surface it sits on, each with its own derived states and a contrast check, rather than forcing one fill onto every background. A near-black or desaturated colour of the brand hue is a variant in the brand family, not neutral ink.

Read the full file on GitHub · 200 lines

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. 5d ago Changed · +5 lines 8ab323cc69d6
  2. 1mo ago Changed · -24 tokens per session fc93a29acf01
  3. 1mo ago Changed · +2 lines 2c86d7394b1b
  4. 2mo ago First seen · 193 lines · 60 tokens per session scan A 38e714dbd176

Subscribe to this mod's changes

button-states is a skill published in the GitHub repository dembrandt/dembrandt-skills (185 stars, last pushed 6d ago), licensed MIT. It adds 36 tokens to every session and 1,726 once invoked, about $0.0001 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-30.

Related

button-states compared with skills from other repositories

button-states next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
button-statesdembrandt/dembrandt-skillsSkill1856d agoMITA36Claude Code
indian-gov-web-uiYashraj00700/indian-gov-ui-skillsSkill23mo agoMITA95Claude Code, Codex
ux4g-design-systemYashraj00700/indian-gov-ui-skillsSkill23mo agoMITA147Claude Code, Codex
design-doctrineplugin87/ux-ui-agent-skillsSkill3.1k11d agoMITA92Claude Code
image-to-codeplugin87/ux-ui-agent-skillsSkill3.1k11d agoMITA77Claude Code
design-dnazanwei/design-dnaSkill2.1k2mo agoMITA192Claude Code, Codex
desktop-principlesAThevon/genjutsuSkill754yesterdaynoneA36Claude Code