Breakpoints

Breakpoints are customizable widths that determine how your responsive layout behaves across all
devices in Astral.

In the world of web development, responsive design is crucial for delivering an optimal user experience across various devices. Astral CSS Framework makes it easy to create responsive websites by utilizing breakpoints. Breakpoints are specific points in the CSS where the layout of a webpage changes to adapt to different screen sizes and resolutions.

Why Use Breakpoints?

Breakpoints allow you to design websites that look great on any device, from smartphones to desktops. By defining breakpoints, you can ensure that your content is accessible and visually appealing, regardless of the screen size.

Core Concepts

  • Breakpoints are the building blocks of responsive design : Use them to control when your layout can be adapted at a particular viewport or device size.

  • Use media queries to architect your CSS by breakpoint : Media queries are a feature of CSS that allow you to conditionally apply styles based on a set of browser and operating system parameters. We most commonly use min-width in our media queries.

Available Breakpoints

Astral provides a set of predefined breakpoints that cover the most common device sizes. These breakpoints help you create a seamless and responsive design:

Breakpoint Class infix Dimensions
Small (Smartphones) sm <767px
Medium (Tablets) md ≥768px
Large (Desktops) lg ≥992px
Extra large (Large Desktops) xl ≥1200px

Breakpoints are an essential part of creating responsive designs. With the Astral CSS Framework, you can easily implement breakpoints to ensure your website looks great on any device. Start using Astral today and take your web design to the next level!