Breakpoints are customizable widths that determine how your responsive layout and components behave across device screens or viewport sizes in Phenix Design System.
min-width
in our media queries.Phenix includes ten default breakpoints, for building responsive layouts and components. two breakpoints for each set of screen size’s start point of the set and the end point of set and These breakpoints can be customized from Sass files
Breakpoint | Class infix | Start point | Endpoint |
---|---|---|---|
xSmall | xs |
0px | 480px |
Small | sm |
576px | 700px |
Medium | md |
768px | 1100px |
Large | lg |
1200px | 1366px |
xLarge | xl |
1400px | 2560px |
sass breakpoints are a collection of mixin to create media query breakpoints for multiple screen sizes that match phenix responsive layout and utilities, components, etc.
and each screen size has a start point as the minimum width and an endpoint as the maximum width and you can toggle between the flow of the query up/down by adding the parameter "down"
to the mixin function, you learn more from the examples below,
For each mixin of the responsive breakpoints mixin you can either, set custom css from the start point of the screen size to the infinity size of the screen, or you can reverse and start from the endpoint of the screen size to 0px size,
/*====> Extra Small [0 => infinite] Screens Media Query <====*/
@include xSmall() {
/*===> Set CSS for Extra Small Screens and Up //*/
};
/*====> Extra Small [480 => 0]px Screens Media Query <====*/
@include xSmall('down') {
/*===> Set CSS for Extra Small Screens and Down //*/
};
/*====> Small [576 => infinite] Screens Media Query <====*/
@include small() {
/*===> Set CSS for small screens and Up //*/
};
/*====> Small [700 => 0]px Screens Media Query <====*/
@include small('down') {
/*===> Set CSS for small screens and Down //*/
};