responsive-engine

Solid

Design multi-device layouts with Container Queries, clamp() fluid typography, :has() selector, subgrid, and modern CSS units (dvh/svh/lvh). Use when user asks to make a layout responsive, handle mobile/tablet/desktop breakpoints, create fluid typography, or use Container Queries. Do NOT use for full-page layouts (use landing-craft), component design (use component-forge), or animation-specific responsive (use motion-craft).

Web & Frontend 96 stars 12 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
66
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Responsive Engine Layouts that work at every screen size without breakpoint spaghetti. Inspired by Ahmad Shadeed (Container Queries), Jen Simmons (Intrinsic Web Design), and the CSS Working Group. ## Core Principle Responsive design is about containers, not viewports. Use Container Queries first, media queries only for global layout shifts and form factor detection. --- ## Container Queries (preferred over media queries) ```css .card-grid { container-type: inline-size; container-name: card-grid; } @container card-grid (min-width: 600px) { .card { display: grid; grid-template-columns: 200px 1fr; } } @container card-grid (min-width: 900px) { .card { grid-template-columns: 1fr 1fr 1fr; } } ``` ### Container query length units ```css .card { padding: 10cqw; /* 10% of container width */ font-size: 5cqi; /* 5% of container inline size */ margin-block: 2cqb; /* 2% of container block size */ border-radius: 1cqmin; /* 1% of container smaller side */ } ``` --- ## Form Factor Detection Detect the device type, not just width. ```css /* Touch vs mouse */ @media (pointer: coarse) { .button { min-height: 48px; } } @media (hover: hover) { .card:hover { transform: scale(1.02); } } @media (hover: none) { .card:active { transform: scale(0.98); } } /* Portrait vs landscape */ @media (orientation: portrait) { .hero-grid { grid-template-columns: 1fr; } } ``` --- ## Viewport Unit Decision Tree | Use case | Unit | Why | |-------...

Details

Author
EliasOulkadi
Repository
EliasOulkadi/shokunin
Created
1 months ago
Last Updated
yesterday
Language
HTML
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category