
Frontend Responsive Design Standards
Apply mobile-first breakpoints, fluid layouts, and touch-friendly sizing whenever you or your agent change CSS layouts for multi-device web UIs.
Overview
Frontend Responsive Design Standards is an agent skill for the Build phase that guides mobile-first, breakpoint-driven CSS layouts with fluid grids and touch-friendly targets across screen sizes.
Install
npx skills add https://github.com/am-will/codex-skills --skill frontend-responsive-design-standardsWhat is this skill?
- Mobile-first rule: base styles for small screens, then min-width media queries for tablet and desktop
- Fluid layouts with flexbox/grid and percentage-based widths instead of fixed-pixel shells
- Relative units (rem, em, %) for typography and spacing that scale with user settings
- Touch-friendly minimum targets (44×44px) for buttons and interactive controls on mobile
- Breakpoint-consistent patterns for navigation, images, and assets across mobile, tablet, and desktop
- Minimum recommended touch target size: 44×44px for mobile interactive elements
Adoption & trust: 1.2k installs on skills.sh; 941 GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You are shipping a web UI but layouts break on phones, tap targets are too small, and breakpoint CSS is inconsistent across pages.
Who is it for?
Solo builders or agents editing React, Vue, or plain HTML/CSS who need a repeatable responsive checklist without hiring a frontend lead.
Skip if: Headless APIs, CLIs, native-only mobile apps without responsive web views, or projects where a finalized design spec already forbids breakpoint changes.
When should I use this skill?
Creating or modifying UI layouts, responsive grids, breakpoint styles, mobile navigation, viewport settings, flexbox/grid, touch target sizing, relative units, or multi-device image behavior.
What do I get? / Deliverables
After the skill runs, layout and style changes follow mobile-first breakpoints, relative units, and touch sizing so the interface adapts cleanly from mobile through desktop.
- Mobile-first layout and breakpoint CSS aligned to the skill’s standards
- Touch-sized controls and fluid containers suitable for phone through desktop widths
Recommended Skills
Journey fit
Responsive layout work happens while implementing and styling the product UI, before you ship and tune performance. The skill is entirely about HTML/CSS layout patterns—grids, media queries, viewport units—not APIs, agents, or release gates.
How it compares
Procedural responsive CSS standards for agents—not a drop-in UI kit like Material or shadcn, and not an automated visual regression test runner.
Common Questions / FAQ
Who is frontend responsive design standards for?
Indie and solo builders using AI coding agents on web frontends who want consistent mobile-first layout rules across pages and components.
When should I use frontend responsive design standards?
Use it during Build when adding or changing layouts, media queries, flexible grids, mobile navigation, viewport meta settings, or image behavior for multiple screen sizes.
Is frontend responsive design standards safe to install?
It is instructional skill content for your agent; review the Security Audits panel on this Prism page and your repo trust model before pulling any third-party skill package.
SKILL.md
READMESKILL.md - Frontend Responsive Design Standards
# Frontend Responsive Design Standards **Rule:** Mobile-first development with consistent breakpoints, fluid layouts, relative units, and touch-friendly targets. ## When to use this skill - When creating or modifying layouts that need to work on mobile, tablet, and desktop - When implementing mobile-first design patterns starting with mobile layout - When writing media queries or breakpoint-specific styles - When using flexible units (rem, em, %) instead of fixed pixels for scalability - When implementing fluid layouts with percentage-based widths or flexbox/grid - When ensuring touch targets meet minimum size requirements (44x44px) for mobile - When optimizing images and assets for different screen sizes and mobile networks - When testing UI across multiple device sizes and breakpoints - When maintaining readable typography across all screen sizes - When prioritizing content display on smaller screens through layout decisions - When using responsive design utilities in CSS frameworks (Tailwind, Bootstrap responsive classes) This Skill provides Codex with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend responsive. ## Mobile-First Development - Mandatory **Always start with mobile layout, then enhance for larger screens.** Bad (desktop-first): ```css .container { width: 1200px; display: grid; grid-template-columns: repeat(4, 1fr); } @media (max-width: 768px) { .container { width: 100%; grid-template-columns: 1fr; } } ``` Good (mobile-first): ```css .container { width: 100%; display: grid; grid-template-columns: 1fr; } @media (min-width: 768px) { .container { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1024px) { .container { max-width: 1200px; grid-template-columns: repeat(4, 1fr); } } ``` **Why mobile-first:** - Forces content prioritization - Better performance on mobile (no overriding) - Progressive enhancement over graceful degradation ## Standard Breakpoints **Identify and use project breakpoints consistently:** Common breakpoint systems: Tailwind: ``` sm: 640px (small tablets) md: 768px (tablets) lg: 1024px (laptops) xl: 1280px (desktops) 2xl: 1536px (large desktops) ``` Bootstrap: ``` sm: 576px md: 768px lg: 992px xl: 1200px xxl: 1400px ``` **Check existing codebase for breakpoint definitions before creating new ones.** Usage (Tailwind): ```jsx <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4"> ``` Usage (CSS): ```css @media (min-width: 768px) { } @media (min-width: 1024px) { } ``` **Never use arbitrary breakpoints like 850px or 1150px unless explicitly required.** ## Fluid Layouts **Use flexible containers that adapt to screen size:** Bad (fixed widths): ```css .container { width: 1200px; } .sidebar { width: 300px; } .content { width: 900px; } ``` Good (fluid): ```css .container { width: 100%; max-width: 1200px; padding: 0 1rem; } .layout { display: grid; grid-template-columns: 1fr; } @media (min-width: 1024px) { .layout { grid-template-columns: 300px 1fr; } } ``` **Patterns for fluid layouts:** - Flexbox: `flex: 1`, `flex-grow`, `flex-shrink` - Grid: `1fr`, `