Atomic Layout
  • Introduction
  • Motivation
  • Resources
  • FAQ
    • Comparison with styled-system
  • Getting started
    • Installation
    • First composition
    • Responsive composition
    • Nested composition
  • Fundamentals
    • Breakpoints
    • Prop aliases
    • Responsive props
  • API
    • Layout
      • configure()
    • Components
      • Box
      • Composition
      • Only
      • Visible
    • Hooks
      • useMediaQuery
      • useResponsiveQuery
      • useViewportChange
      • useBreakpointChange
      • useResponsiveValue
      • useResponsiveProps
    • Utilities
      • query
      • makeResponsive
  • Recipes
    • Semantics
    • Namespaces
    • Iterative areas
    • Responsive layout
    • Explicit media query
Powered by GitBook
On this page
  • What is a "breakpoint"?
  • Properties
  • Default breakpoint name
  • Default breakpoints
  • Configuration
  1. Fundamentals

Breakpoints

What is a "breakpoint"?

Breakpoint is a condition upon which layout acquires a new state. Such condition is often based on a device's characteristics like screen size, resolution, orientation, and others.

Atomic Layout operates with the same breakpoints you would use in plain CSS media queries.

Properties

The following properties can be used to describe a breakpoint:

Property name

Value type

Description

minWidth

Numeric

Minimum device width.

maxWidth

Numeric

Maximum device width.

minHeight

Numeric

Minimum device height.

maxHeight

Numeric

Maximum device height.

minResolution

String

Minimum screen resolution of the device.

maxResolution

String

Maximum screen resolution of the device.

aspectRatio

String

Device screen aspect ratio.

minAspectRatio

String

Minimum aspect ratio of the device.

maxAspectRatio

String

Maximum aspect ratio of the device.

scan

interlace | progressive

Scanning process of the device.

orientation

portrait | landscape

Device viewport orientation.

displayMode

enum: fullscreen | standalone | minimal-ui | browser

Display mode of the application specified in the manifest.json

Default breakpoint name

Whenever a component's prop is not suffixed by a breakpoint name, a default breakpoint name is used.

The default breakpoint name is xs, making mobile-first the default responsive behavior.

Default breakpoints

Breakpoint name

xs (default)

sm

md

lg

xl

Screen width

<576px

≥576px

≥768px

≥992px

≥1200px

Configuration

PreviousNested compositionNextProp aliases

Last updated 5 years ago

Atomic Layout uses and mobile-first behavior by default.

Bootstrap 4 Grid breakpoints
Default breakpoint name
Custom breakpoints