6.3 - Breakpoints
Source: variables/_breakpoints.scss, line 48
Breakpoints are in the map $breakpoints
xs
: 320px, // Smartphonesm
: 600px, // Tabletsmd
: 900px, // Tablets Landscape and small desktopslg
: 1200px, // Desktopsxl
: 1800px, // Large Desktop
Breakpoints can be called in the sass project using the functions:
bp($bp)
which will output a value in em
bp-var($bp, $true-val:false)
which will output the CSS variable
Usage of bp():
bp(sm);
=>36em
Usage of bp-var():
bp-var(sm);
=>var(--bp-sm);
If $use-css-var = truebp-var(sm);
=>576px;
If $use-css-var = falsebp-var(sm, true)
=>576px;