About css-math-units
A reference skill for tracing how CSS values resolve into computed layout values. It supports developers debugging or editing unit conversions, inherited sizes, `calc()` expressions, custom-property math, and box sizing.
Key features
- 01CSS unit conversion
- 02Inherited size calculations
- 03`calc()` and custom-property math
- 04Box model sizing guidance
- 05Debugging workflow and checklists
Use cases
- 01Trace a CSS value to its computed size
- 02Debug nested or inherited dimensions
- 03Review CSS calculation changes
- 04Apply reusable sizing formulas
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ lvtd-llc/ skills --skill css-math-unitsAfter installing, type/css-math-unitsin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
guidelines.mdagents/openai.yamlreferences/source-map.mdreferences/css-calculations/checklist.mdexamples.mdknowledge.mdpatterns.mdrules.mdworkflows/debug-css-calculation.mdDetails
From the project READMECSS Math Units
Use this skill to trace how CSS values become computed layout values. It is useful for unit conversion, inherited size multiplication, calc expressions, custom property math, and box model sizing.
Quick Start
- Read
guidelines.mdto select the smallest relevant file set. - Load
references/css-calculations/rules.mdfor implementation decisions. - Load
references/css-calculations/examples.mdwhen editing code. - Use
workflows/debug-css-calculation.mdfor multi-step derivation or debugging.
Contents
| Resource | Purpose |
|---|---|
guidelines.md | Routes tasks to the right reference files |
references/source-map.md | Book source and chapter/section traceability |
references/css-calculations/knowledge.md | Core concepts and terminology |
references/css-calculations/rules.md | Practical rules, guidelines, and exceptions |
references/css-calculations/examples.md | Bad/good examples and refactoring approach |
references/css-calculations/patterns.md | Reusable formula and implementation patterns |
references/css-calculations/checklist.md | Review checklist and red flags |
workflows/debug-css-calculation.md | Step-by-step workflow |
Source
Derived from Math for Web Design by Paul McFedries, Chapter 3: Math basics for CSS.
Citations are tracked in references/source-map.md.
Comments
Markdown supported