/frontend:css-subgridfrom frontend
Aligns inner content across sibling cards using CSS Subgrid. Use for card grids, tile layouts, or repeated components where icons, titles, prices, or buttons must align horizontally.
Ships in frontend. 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.
None: SKILL.md is the whole skill.
CSS Subgrid lets grid children inherit parent track sizing, so inner content (icons, labels, prices, CTAs) aligns across sibling cards without fixed heights or hacks.
When NOT to use:
/* Parent: responsive wrapping grid */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 200px));
justify-content: center;
gap: 1rem;
}
/* Child: spans N rows and inherits parent row tracks */
.card {
display: grid;
grid-row: span 2; /* one per content section: icon + label = 2 */
grid-template-rows: subgrid;
justify-items: center;
align-content: center;
gap: 0.5rem;
}
auto-fill + minmax() for responsive wrappinggrid-template-rows: implicit auto rows are createdgrid-row: span N (N = number of content sections per card)grid-template-rows: subgrid to inherit parent row tracksminmax(min, max) NOT minmax(min, 1fr)Using 1fr as max stretches cards to fill available space, cards become too wide and look bad:
/* BAD: cards stretch to fill row */
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
/* GOOD: cards stay compact, max 200px */
grid-template-columns: repeat(auto-fill, minmax(140px, 200px));
Use justify-content: center on the parent to center the grid tracks.
auto-fill vs auto-fitauto-fill: creates as many tracks as fit, empty tracks remain (grid stays compact)auto-fit: collapses empty tracks, items stretch to fill (can cause unwanted stretching with 1fr)For card grids with capped max width, both work similarly. Prefer auto-fill.
span N vs 1 / -1grid-row: span 2: works with implicit rows, cards wrap to new row groups naturallygrid-row: 1 / -1: only works with explicit rows, breaks when cards wrapAlways use span N for wrapping grids.
Row subgrid + auto-fill columns works (the pattern above).
Column subgrid + auto-fill rows does NOT work, you need explicit column counts with media queries for column subgrid.
| Cards with N sections | grid-row | Example |
|---|---|---|
| Icon + Label | span 2 | Link cards, feature tiles |
| Image + Title + Description | span 3 | Blog cards, product cards |
| Image + Title + Description + CTA | span 4 | E-commerce cards |
| Mistake | Fix |
|---|---|
| Cards stretch too wide | Use minmax(min, max) not minmax(min, 1fr) |
| Cards don't wrap on narrow screens | Use auto-fill not fixed repeat(3, ...) |
| Subgrid breaks when wrapping | Use span N not 1 / -1 |
| Icons misaligned across rows | Ensure ALL cards have same span N value |
| Cards without icons break alignment | Use consistent HTML structure, hide icon visually if absent |
Supported in all modern browsers (Chrome 117+, Firefox 71+, Safari 16+, Edge 117+). ~98% global support as of 2026.
frontend:css-nesting: Full CSS nesting workflow with specificity analysis and stylelint compliance.frontend:code-style-css: CSS-specific code style rules (nesting, layout-only).frontend:pixel-perfect: Pixel drift detection when modifying CSS or HTML element structure.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fubits1/svelte-skills --plugin frontend13 skills in this plugin
/code-styleCode style rules for all languages: variable naming, brace style, HTML data attributes, markup, forms and locale formatting, CSS nesting. Auto-invoke when editing code files, writing new functions or markup, or naming variables./code-style-cssUse when editing CSS, SCSS, or style blocks in .svelte files. Covers CSS-specific code style rules. Auto-invoke when writing or modifying styles./commentsComment rules for every language: which comments survive, format, protected comments, placement, TODOs. Use when writing, editing, moving or deleting comments, docstrings or TODOs. Auto-invoke when editing code files./css-nestingConvert flat CSS to nested & syntax while satisfying stylelint's no-descending-specificity and no-duplicate-selectors rules. Use when nesting selectors, refactoring flat CSS to &, or fixing stylelint specificity/duplicate errors after nesting./editingFile editing discipline: correct types, safe refactors, Svelte file rules, config overrides, markdown lint, visual refactors. Requires frontend:code-style and frontend:comments. Auto-invoke when editing code files./js-configUse when editing ESLint, Prettier, Stylelint, PostCSS, or Svelte config files. Use when adding or removing linting plugins, resolving formatter conflicts, auditing JS/TS toolchain configuration, or deciding whether a config package is needed.Other plugins' skills for the same job