/frontend-css:remfrom frontend-css
CSS Units — enforce rem for CSS/SCSS/Tailwind dimensions. Use whenever a hardcoded pixel length appears in a stylesheet or component's layout — spacing, sizing, or typography such as gap, padding, margin, width, height, or font-size — and the user wants it changed, reviewed, made consistent with a spacing scale, or made responsive to browser zoom/font-size. Applies whether the value is stated as px, an arbitrary Tailwind value like p-[10px], or an SCSS property. Do NOT trigger for genuinely pixel-appropriate values that stay in px: border-width, box-shadow offsets, or SVG attributes like width, height, and stroke-width on chart/vector elements.
Ships in frontend-css. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
In: a stylesheet, component style, or Tailwind class carrying a hardcoded dimensional value —
px, an arbitrary Tailwind px like p-[10px], or an SCSS length — that is being written, reviewed,
or made responsive.
Out: every dimensional value that governs spacing, sizing, or typography is expressed in rem
against a 16px base; px survives ONLY where it is genuinely pixel-bound (see the rule). This IS the
skill's acceptance criteria — the property the changed styles must hold.
Always use rem for all dimensional values in CSS and Tailwind.
Use px only where rem is technically not appropriate:
border-width (e.g. 1px, 2px hairlines and borders)border-radius values that must be truly pixel-precise (e.g. 1px sharp corners)box-shadow offsets and blur radiiwidth, height, stroke-width on SVG elements)letter-spacing in very fine-grained cases where rem rounding causes visible drift| px | rem |
|---|---|
| 1 | 0.0625rem |
| 2 | 0.125rem |
| 4 | 0.25rem |
| 6 | 0.375rem |
| 8 | 0.5rem |
| 10 | 0.625rem |
| 12 | 0.75rem |
| 14 | 0.875rem |
| 16 | 1rem |
| 18 | 1.125rem |
| 20 | 1.25rem |
| 24 | 1.5rem |
| 28 | 1.75rem |
| 32 | 2rem |
| 40 | 2.5rem |
| 48 | 3rem |
rem scales with the user's root font size preference, so the UI honours browser-level zoom and
font-size settings. px is absolute and ignores them.
Tailwind's spacing scale is already rem-based. Prefer Tailwind utility classes (p-2, text-sm,
gap-4) over arbitrary values (p-[8px]). When Tailwind lacks the exact value, use arbitrary rem —
p-[0.625rem], not p-[10px].
grep -nE ':\s*-?[0-9.]+px|\[[0-9.]+px\]' <changed files>.rem against the 16px base, or it is one of the allowed
pixel-bound cases (border-width, box-shadow offset, SVG attribute) — nothing else stays in px.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aquivalabs/bladeforge --plugin frontend-css3 skills in this plugin
/responsive-layoutResponsive Layout — Breakpoint ValidityUse when creating or editing ANY UI component, page, or layout style — the acceptance bar that it must render validly at every defined viewport breakpoint (no overflow, readable text, discernible images, restrained borders, sane density). Also use when a project has no breakpoint/grid system yet: propose one before verifying. NOT for choosing px→rem (frontend-css:rem), SCSS tokens/BEM structure (frontend-css:scss-modules), or component folder placement (frontend-react:component-structure)./scss-modulesCSS / SCSS — Modules, Colors, and StructureHouse rules for authoring component SCSS — the .scss-over-.css convention, SCSS file structure, the color/spacing/radius variable & token system (never hardcode hex or magic numbers — add to variables first), and BEM structure (block → &__element → &--modifier). Use when writing or refactoring a component's styles, setting up the SCSS token/variable system, or consolidating hardcoded values to the scale. NOT for choosing a dimensional unit or converting px→rem (frontend-css:rem), naming a component's folder or its non-style files (frontend-react:component-structure), style import-alias policy (frontend-js:conventions), LWC/Aura styling (salesforce:lwc_development), or skeleton/Storybook files.Other plugins' skills for the same job