Skip to content

Add responsive grid gaps to the default theme - #16

Merged
minimaldesign merged 2 commits into
mainfrom
responsive-grid-gaps
Jul 17, 2026
Merged

Add responsive grid gaps to the default theme#16
minimaldesign merged 2 commits into
mainfrom
responsive-grid-gaps

Conversation

@minimaldesign

Copy link
Copy Markdown
Owner

Closes #10

--grid-column-gap / --grid-row-gap now start at --sm1 (16px) on small screens and step up to the previous --sm3 (24px) at the --md breakpoint (768px), so 24px gutters stop eating narrow viewports.

  • Pure theme-level change: .grid consumes the vars via var(), so global.grid.css and its generator are untouched. Rendering at ≥768px is identical to before.
  • Per-element overrides (--grid-column-gap on a specific .grid) still win over :root; .grid-flush unaffected.
  • The wireframe theme needs no change — it's a tokens-only overlay on the default theme and inherits the responsive gaps.
  • Grid docs updated with the per-breakpoint values and the override escape hatches.

Verified in dev: gap flips 16px → 24px at 768px; production build passes.

🤖 Generated with Claude Code

--grid-column-gap/--grid-row-gap start at --sm1 (16px) on small screens
and step up to the previous --sm3 (24px) at the --md breakpoint, so
gutters stop eating narrow viewports. Pure theme-level change: .grid
consumes the vars, and per-element overrides still win over :root.

Closes #10

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for mcssdev ready!

Name Link
🔨 Latest commit a951235
🔍 Latest deploy log https://app.netlify.com/projects/mcssdev/deploys/6a5a833e6c6c600008e7fc46
😎 Deploy Preview https://deploy-preview-16--mcssdev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100
Accessibility: 96
Best Practices: 100
SEO: 99
PWA: 70
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

dist/ conflict resolved by rebuilding from the merged source
(npm run build:css).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@minimaldesign
minimaldesign merged commit 412307d into main Jul 17, 2026
3 of 5 checks passed
@minimaldesign
minimaldesign deleted the responsive-grid-gaps branch July 17, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add responsive gap values for .grid in default theme

1 participant