sizing-units

sizing-units is a skill for Claude Code from dembrandt/dembrandt-skills. It costs 40 tokens per session (1,283 once invoked), scanned A, original, MIT.

A guide for choosing CSS measurement units such as rem, px, percentages, fr, and clamp based on how a value should respond to text-size changes and available space.

In plain words
What is it for?
Use it when defining typography, control heights, padding, borders, shadows, layout widths, and responsive spacing tokens in CSS.
Why use it?
It helps prevent layouts that ignore a user's preferred text size or become hard to use when screen space changes. It also distinguishes browser text-size settings from full-page zoom.

Skill for Claude Code

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

Part of the dembrandt plugin — 45 skills shipped together

Good fit Use it when defining typography, control heights, padding, borders, shadows, layout widths, and responsive spacing tokens in CSS.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dembrandt/dembrandt-skills/sizing-units
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 sizing-units
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.

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 sizing-units

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dembrandt/dembrandt-skills/sizing-units"><img src="https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/sizing-units.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,283 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
  • 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.00040 $0.01283
Opus 5.5 $0.00016 $0.00513
Sonnet 5.5 $0.00008 $0.00257
Haiku 4.5 $0.00004 $0.00128

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

Security

Grade A, and why

sizing-units 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 10d 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.

directory/skills/sizing-units/SKILL.md · 95 lines

How it starts

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

Sizing Units

The Question the Unit Answers

A unit is not a formatting preference. It is a declaration of what happens to a value when the user enlarges text.

  • rem — this value belongs to the text and must grow with it.
  • px — this value belongs to the screen and must stay put.
  • %, fr, ch, clamp(), min() — this value belongs to the available space.

Pick the unit by answering that question, not by picking a house style and applying it everywhere. Both absolutist positions — all-rem and all-px — produce defects, and they are different defects.

Zoom Is Not the Font-Size Setting

The common argument for px everywhere is that browsers already have full-page zoom, so the root font size can be ignored. They are separate controls serving separate people.

  • Full-page zoom magnifies everything, layout included. It buys larger text at the cost of horizontal scrolling and fewer items per screen.
  • The browser's default font size enlarges text and leaves the layout alone. This is what a user with low vision sets once, years ago, and never touches again. They will not switch to zoom because your product ignored it.

A product that hard-codes every dimension in px answers the first user and silently refuses the second. WCAG 2.2 SC 1.4.4 (Resize Text) requires text to reach 200% without loss of content or function, and SC 1.4.10 (Reflow) requires the page to survive it in a single column. See [[wcag-accessibility]].

Use rem For

Typography. Every font size and line height. See [[modular-scale-typography]].

Padding around text. A button's inner padding in px means large text presses against its edges. In rem the breathing room scales with the words it surrounds.

Control heights. A 40px control holding 24px text is broken. Write the height token in rem and it stays a control-shaped control at every text size. See [[component-family-consistency]].

Measure. max-width on a text column: 65ch or a rem value, never px.

Gaps between text-bearing blocks. Stack spacing in a form or an article is part of the reading rhythm.

Read the full file on GitHub · 95 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. 10d ago Changed · -39 lines 15104ba2ba6d
  2. 1mo ago Changed · +5 lines 3584d95422db
  3. 1mo ago Changed · -51 tokens per session 8c17265ef6bf
  4. 2mo ago First seen · 129 lines · 91 tokens per session scan A be073de5c438

Subscribe to this mod's changes

sizing-units is a skill published in the GitHub repository dembrandt/dembrandt-skills (245 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 1,283 once invoked, about $0.0002 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-09-05.

Related

sizing-units compared with skills from other repositories

sizing-units next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sizing-unitsdembrandt/dembrandt-skillsSkill245yesterdayMITA40Claude Code
indian-gov-web-uiYashraj00700/indian-gov-ui-skillsSkill24mo agoMITA95Claude Code, Codex
ux4g-design-systemYashraj00700/indian-gov-ui-skillsSkill24mo agoMITA147Claude Code, Codex
design-doctrineplugin87/ux-ui-agent-skillsSkill3.3k12d agoMITA92Claude Code
image-to-codeplugin87/ux-ui-agent-skillsSkill3.3k12d agoMITA77Claude Code
design-dnazanwei/design-dnaSkill2.2k3mo agoMITA192Claude Code, Codex
kernel-uikemiljk/kernel-uiSkill35todayMITA56Claude Code, Codex