responsive-craft
Responsive Craft
Implement responsive design that works across all viewports — compensating for the lack of a visual canvas by making deliberate decisions upfront.
Quick Start
Transform an existing site: /responsive-craft audit or "make this responsive" or "fix the mobile layout"
Build responsive from scratch: /responsive-craft build or "build this mobile-first" or "create a responsive layout"
Preview all breakpoints: /responsive-craft preview or "show me the responsive preview" or "open the breakpoint preview"
Core Principles
-
Escalation model — Intrinsic CSS first (
auto-fit,flex-wrap,clamp()) → container queries next (component-level) → media queries last (page-level only). If a simpler layer solves it, stop there. -
Describe before you code — Without a canvas, explicitly describe responsive behavior before writing CSS. In Adaptive mode, use inline behavior notes (CSS comments). In Guided mode, write formal behavior specs (tables per component). Both catch design decisions a canvas would reveal passively.
-
Fluid by default, breakpoints by exception — Use
clamp()for typography, spacing, sizing. Reserve hard breakpoints for structural changes: nav transforms, column count shifts, sidebar visibility.