atm

Atomix

v0.4.6

    1. Home
    2. Layouts
    3. Responsive Patterns

Getting Started
  • Introduction
  • Installation
  • Quick Start
  • Migration Guide
  • CLI Reference
Design Tokens
  • Overview
  • All Tokens
  • Colors
  • Spacing
  • Typography
  • Grid
  • Elevation
Styles System
  • Architecture
  • Customization
  • Utilities
  • API Reference
Layouts
  • Grid System
  • Masonry Grid
  • Responsive Patterns
  • Customization
  • Performance
Components
  • Overview
  • Guidelines
  • Accordion
  • AtomixGlass
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • ButtonGroup
  • Card
  • Checkbox
  • Date Picker
  • Dropdown
  • Form
  • Input
  • Modal
  • Progress
  • Radio
  • Rating
  • Select
  • Slider
  • Spinner
  • Tab
  • Textarea
  • Toggle
  • Tooltip
  • Upload
  • Block
  • Callout
  • Countdown
  • Hero
  • Icon
  • List
  • Messages
  • Navbar
  • Pagination
  • Popover
  • Steps
  • SectionIntro
  • Container
  • Grid
  • GridCol
  • Row
  • River
  • MasonryGrid
  • DataTable
  • EdgePanel
  • SideMenu
  • Nav
  • NavItem
  • NavDropdown
  • VirtualizedGrid
Guides
  • Theming Guide
  • AtomixGlass Performance
  • AtomixGlass Theming
  • Theme Studio
  • Devtools
  • Theme Inspector
  • Theme Preview
  • Theme Comparator
  • Live Editor
  • CLI Tool
  • Try Live Editor
  • Try Inspector
  • Try Preview
  • Try Comparator
  • AtomixGlass Playground
Examples
  • Common Patterns
  • Landing Page
API Reference
  • React API
  • JavaScript API
  • CSS API
CLI
  • Overview
  • User Guide
  • API Reference
  • Migration Guide
  • Security Guide
Resources
  • Roadmap
  • Changelog
  • Contributing

Atomix Design System

A comprehensive design system for building modern, accessible, and performant web applications with React and vanilla JavaScript.
GitHubTwitterDiscordNPM

Getting Started

IntroductionInstallationQuick StartTheming Guide

Documentation

ComponentsDesign TokensStyles SystemLayouts

Resources

GitHub Repository↗NPM Package↗Storybook↗API Reference

Community

ContributingRoadmapChangelogReport Issue↗

© 2026 Atomix Design System. Built with ❤️ by the Shohojdhara.

Adaptive Design Solutions

Layouts Responsive Patterns

Learn common responsive design patterns and best practices using the Atomix Layout system. Create flexible, accessible layouts that work beautifully across all devices and screen sizes.

Grid SystemMasonry Grid

Responsive Design Principles

Responsive design patterns are reusable solutions for common layout challenges. These patterns have been tested across devices and proven to provide excellent user experiences while maintaining accessibility and performance.

Mobile-First

Start with mobile and enhance for larger screens

Progressive Enhancement

Layer features based on device capabilities

Flexible Grids

Use relative units and flexible layouts

Responsive Media

Images and media that adapt to containers

Consistent Spacing

Maintain visual hierarchy across breakpoints

Common Layout Patterns

Reusable layout patterns that work across all devices and screen sizes

Sidebar Layout

Perfect for blogs, documentation, and admin dashboards

Card Grid Layout

Ideal for dashboards, galleries, and product listings

Masonry Layout

Pinterest-style layouts for varying content heights

Full-Width Hero

Large hero sections with responsive content below

Sidebar Layout Pattern

Perfect for blogs, documentation, and admin dashboards. The sidebar is hidden on mobile and visible on desktop.

Sidebar Layout ExampleTSX
1import { Container, Row, GridCol } from '@shohojdhara/atomix'; 2 3function SidebarLayout({ children, sidebar }) { 4 return ( 5 <Container> 6 <Row> 7 {/* Sidebar - Hidden on mobile, visible on desktop */} 8 <GridCol xs={12} lg={3} className="d-none d-lg-block"> 9 <aside className="sidebar"> 10 {sidebar} 11 </aside> 12 </GridCol> 13 14 {/* Main content */} 15 <GridCol xs={12} lg={9}> 16 <main className="main-content"> 17 {children} 18 </main> 19 </GridCol> 20 </Row> 21 </Container> 22 ); 23}
23 lines584 characters

Card Grid Layout Pattern

Ideal for dashboards, galleries, and product listings. Cards automatically adjust based on screen size.

Card Grid Layout ExampleTSX
1import { Container, Row, GridCol, Card } from '@shohojdhara/atomix'; 2 3function CardGridLayout({ cards }) { 4 return ( 5 <Container> 6 <Row> 7 {cards.map((card, index) => ( 8 <GridCol xs={12} sm={6} md={4} key={index}> 9 <Card> 10 {card.content} 11 </Card> 12 </GridCol> 13 ))} 14 </Row> 15 </Container> 16 ); 17}
17 lines375 characters

Breakpoints & Media

Understanding breakpoints and responsive media handling

Breakpoint Strategy

Atomix uses a mobile-first approach with 6 breakpoints:

xs
Extra small (0px and up)
sm
Small (576px and up)
md
Medium (768px and up)
lg
Large (992px and up)
xl
Extra large (1200px and up)
xxl
Extra extra large (1400px and up)

Usage Example

Responsive ColumnTSX
1<GridCol xs={12} sm={6} md={4} lg={3}> 2 Responsive column 3</GridCol>
3 lines69 characters

Responsive Media

Ensure images and media adapt to their containers:

Images

Responsive ImageTSX
1<img 2 src="image.jpg" 3 alt="Description" 4 className="u-w-100 u-h-auto" 5 loading="lazy" 6/>
6 lines95 characters

Videos

Responsive VideoTSX
1<div className="u-ratio u-ratio-16x9"> 2 <iframe 3 src="video.mp4" 4 className="u-ratio-item" 5 title="Video" 6 /> 7</div>
7 lines128 characters

Typography

Use responsive font sizes:

Responsive TypographyCSS
1.u-font-size-responsive { 2 font-size: clamp(1rem, 2.5vw, 1.5rem); 3}
3 lines68 characters

Best Practices

Follow these guidelines for creating effective responsive layouts

Start Mobile-First

Design for mobile devices first, then enhance for larger screens. This ensures a solid foundation.

Use Relative Units

Prefer rem, em, and percentages over fixed pixel values for better scalability.

Test All Breakpoints

Test your layouts at all breakpoints to ensure consistent behavior across devices.

Optimize Images

Use appropriate image formats, lazy loading, and proper sizing for performance.