LayerwiseLayerwise
  • Features
  • Pricing
  • Templates
  • Docs
DownloadDownload
FeaturesPricingTemplatesDocsAI Website BuilderVibe CodingPersonal Software
DownloadDownload
  1. Glossary
  2. /
  3. Layout

Responsive design

Also called responsive layout, responsive web design, or mobile-friendly design

Designing one layout that adapts to any screen width, rearranging columns, sizes, and navigation at set widths called breakpoints.

const PLANS = [
  { name: 'Hobby', price: 0, blurb: 'For side projects and experiments.' },
  { name: 'Pro', price: 24, blurb: 'For people who ship every week.' },
  { name: 'Team', price: 79, blurb: 'For teams building together.' }
];

// Mobile-first: unprefixed classes apply at every width, and
// sm: (640px) and lg: (1024px) take over from those widths up.
export function PricingPlans() {
  return (
    <main className='mx-auto max-w-6xl px-4 py-12 sm:px-6'>
      <h1 className='text-center text-4xl font-bold tracking-tight lg:text-6xl'>
        Simple pricing
      </h1>
      <div className='mt-10 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3'>
        {PLANS.map((plan) => (
          <article
            key={plan.name}
            className='flex flex-col rounded-2xl border p-6'
          >
            <h2 className='font-semibold'>{plan.name}</h2>
            <p className='mt-2 text-3xl font-bold'>${plan.price}/mo</p>
            <p className='mt-2 flex-1 text-sm text-muted-foreground'>
              {plan.blurb}
            </p>
            {/* min-h-11 keeps the tap target at least 44px tall. */}
            <button
              type='button'
              className='mt-6 min-h-11 rounded-lg bg-primary text-sm font-medium text-primary-foreground'
            >
              Choose {plan.name}
            </button>
          </article>
        ))}
      </div>
    </main>
  );
}
Make the pricing page responsive, mobile-first: one column of plan cards under 640px, two columns from 640px, and three from 1024px. Collapse the nav links into a menu button under 768px, scale the hero headline from 36px on phones to 60px on desktop, and keep every tap target at least 44px tall on touch screens.

Paste into Layerwise or any AI coding tool.

What is Responsive design?

A responsive page reflows to fit the screen it is on. Three columns of cards on a laptop become two on a tablet and one on a phone, a row of navigation links becomes a menu button, and large headings scale down. The widths where the layout changes are called breakpoints.

Tailwind’s default breakpoints are sm 640px, md 768px, lg 1024px, xl 1280px, and 2xl 1536px. They are mobile-first: classes without a prefix apply at every size, and md:grid-cols-2 takes effect from 768px up. In plain CSS the same idea is a @media (min-width: 768px) rule.

Design for the phone first, since it has the tightest space, then add columns as room appears. Test the widths between your breakpoints too, because that is where layouts often break. Container queries (@container) go a step further: a component responds to the width of its parent, so the same card can adapt inside a sidebar or a wide grid.

Related terms

All terms

CSS Grid

A CSS layout system that places items on rows and columns at once, so content lines up in both directions.

Container

A wrapper that caps content at a maximum width and centers it, so lines stay readable on wide screens and keep padding on small ones.

Flexbox

A CSS layout mode that lines items up in a row or a column and controls how they share space, align, and wrap.

Above the fold

The part of a page visible before anyone scrolls, ending at the fold: the bottom edge of the screen, which moves with every screen size.

Build it with Layerwise

Describe your app, watch it run in a live preview, and publish it with a database, storage, and sign-in built in.

DownloadDownloadRead the docs
LayerwiseLayerwise

Build full-stack web apps in minutes with AI.

Product

  • Features
  • Pricing
  • Download
  • Templates

Solutions

  • AI Website Builder
  • Vibe Coding
  • Personal Software

Resources

  • Documentation
  • Changelog
  • Blog
  • Vibe Coding Glossary
  • llms.txt
  • llms-full.txt

Company

  • About
  • Contact

Legal

  • Privacy
  • Analytics Privacy
  • Terms
  • Security
  • Abuse

© 2026 Layerwise. All rights reserved.

Entrances & exits

  • Fade in
  • Slide in
  • Scale in
  • Pop in
  • Blur in
  • Reveal animation
  • Enter and exit animations

Timing & sequencing

  • Duration
  • Delay
  • Keyframes
  • Tweening
  • Stagger
  • Orchestration
  • Fill mode
  • Stepped animation
  • Looping animation
  • Yoyo animation

Easing

  • Easing
  • Linear easing
  • Ease-in
  • Ease-out
  • Ease-in-out
  • Cubic-bezier
  • Asymmetric easing
  • Overshoot easing

Springs & physics

  • Spring animation
  • Stiffness
  • Damping
  • Mass
  • Bounce
  • Velocity
  • Momentum
  • Interruptible animation
  • Rubber-banding

Transforms

  • Translate
  • Scale
  • Rotate
  • Skew
  • 3D flip
  • Perspective
  • Transform origin
  • Origin-aware animation

State transitions

  • Crossfade
  • Morph
  • Shared element transition
  • Layout animation
  • Height auto animation
  • Direction-aware transition
  • Continuity transition
  • Page transition
  • View Transitions API

Scroll effects

  • Scroll reveal
  • Scroll-driven animation
  • Parallax scrolling
  • Scrollytelling
  • Scroll pinning
  • Horizontal scroll section
  • Scroll progress bar
  • Scroll snap
  • Smooth scrolling

Interaction feedback

  • Hover effect
  • Press feedback
  • Ripple effect
  • Shake animation
  • Hold to confirm
  • Drag gesture
  • Drag to reorder
  • Swipe to dismiss
  • Pull to refresh
  • Magnetic button
  • Custom cursor
  • 3D tilt card
  • Spotlight card

Text effects

  • Typewriter effect
  • Text scramble
  • Split text animation
  • Text morph
  • Rotating words
  • Gradient text
  • Shimmer text
  • Number ticker
  • Tabular numbers
  • Underline animation

Loops & ambient motion

  • Marquee
  • Pulse animation
  • Float animation
  • Orbit animation
  • Idle animation
  • Particle background
  • Border beam
  • Confetti
  • Animated gradient

Visual effects

  • Blur
  • Clip-path
  • Mask
  • Before/after slider
  • SVG line drawing
  • Lottie animation

Motion principles

  • Purposeful animation
  • Anticipation
  • Follow-through
  • Squash and stretch
  • Perceived performance
  • Frequency of use
  • Spatial consistency
  • Reduced motion

Animation performance

  • Frame rate (FPS)
  • Jank
  • GPU acceleration
  • will-change
  • Layout thrashing

Layout

  • Hero section
  • Above the fold
  • Sticky header
  • Sidebar
  • Bento grid
  • Card
  • Flexbox
  • CSS Grid
  • Padding vs margin
  • Responsive design
  • Container
  • Masonry layout
  • Split screen
  • Z-index
  • Overflow

Components

  • Button variants
  • Modal
  • Drawer
  • Popover
  • Tooltip
  • Dropdown menu
  • Context menu
  • Toast notification
  • Tabs
  • Segmented control
  • Accordion
  • Carousel
  • Command palette
  • Combobox
  • Toggle switch
  • Checkbox
  • Radio button
  • Date picker
  • Breadcrumb
  • Pagination
  • Infinite scroll
  • Badge
  • Avatar stack
  • Empty state
  • Skeleton screen
  • Spinner
  • Progress bar
  • Data table
  • Stepper
  • Floating label
  • Inline validation
  • Alert banner
  • Tag input

States & patterns

  • Interaction states
  • Focus ring
  • Loading state
  • Optimistic UI
  • Debounce
  • Lazy loading
  • Dark mode
  • Micro-interaction
  • Affordance
  • Undo
  • Drag and drop
  • Keyboard shortcut

Visual styles

  • Glassmorphism
  • Liquid glass
  • Neumorphism
  • Claymorphism
  • Neo-brutalism
  • Skeuomorphism
  • Flat design
  • Mesh gradient
  • Aurora background
  • Grain texture
  • Glow effect
  • Drop shadow
  • Border radius
  • Grid background
  • Typographic hierarchy
  • Accent color
  • Color contrast

Vibe coding & AI

  • Vibe coding
  • Prompt
  • Context window
  • Token
  • AI agent
  • Tool call
  • Hallucination
  • Diff
  • Live preview
  • Checkpoint
  • Git commit
  • Deploy
  • Frontend and backend
  • API
  • Database
  • Rules file
  • MCP
  • Plan mode
  • Visual edit
1440pxDesktop · 3 columnslg ≥ 1024px
acme.com

New arrivals

A maroon canvas sneaker on a yellow background
Pink over-ear headphones on a pink background
Monstera leaves against a white wall
A sunny living room with plants and an orange armchair
A latte with leaf art in a white cup
Bold strokes of red, yellow, pink, and teal paint