Sizing

Use responsive sizing utility classes to quickly apply widths and heights on elements.

Notation #

Sizing utility classes can be defined using the format -w-{breakpoint}--{value} for widths and -h-{breakpoint}--{value} for heights. Breakpoints supported are sm, md, lg, and xl.

Width #

Target all breakpoints #

Sizing utility classes with no breakpoint defined apply to all screen sizes.

Sizing ClassValue
-w--autowidth: auto;
-w--*can be incremented by 5%

Target specific breakpoints #

To target a specific breakpoint, add the breakpoint abbreviation to the class.

Sizing ClassValue
-w-sm--autoVisible only from sm
-w-sm--*Visible only from sm, can be incremented by 5%
-w-md--autoVisible only from md
-w-md--*Visible only from md, can be incremented by 5%
-w-lg--autoVisible only from lg
-w-lg--*Visible only from lg, can be incremented by 5%
-w-xl--autoVisible only from xl
-w-xl--*Visible only from xl, can be incremented by 5%

Examples #

-w--auto
-w--25
-w--50
-w-md--75
-w-xl--50

Height #

Target all breakpoints #

Sizing utility classes with no breakpoint defined apply to all screen sizes.

Sizing ClassValue
-h--autoheight: auto;
-h--25height: 25%;
-h--50height: 50%;
-h--75height: 75%;
-h--100height: 100%;

Target specific breakpoints #

To target a specific breakpoint, add the breakpoint abbreviation to the class.

Sizing ClassValue
-h-sm--autoVisible only from sm
-h-sm--25Visible only from sm
-h-sm--50Visible only from sm
-h-sm--75Visible only from sm
-h-sm--100Visible only from sm
-h-md--autoVisible only from md
-h-md--25Visible only from md
-h-md--50Visible only from md
-h-md--75Visible only from md
-h-md--100Visible only from md
-h-lg--autoVisible only from lg
-h-lg--25Visible only from lg
-h-lg--50Visible only from lg
-h-lg--75Visible only from lg
-h-lg--100Visible only from lg
-h-xl--autoVisible only from xl
-h-xl--25Visible only from xl
-h-xl--50Visible only from xl
-h-xl--75Visible only from xl
-h-xl--100Visible only from xl

Examples #

-h--auto
-h--25
-h--50
-h-md--75
-h-xl--50
-h-lg--25

Maximum width/height #

Using the format -mw--{value} for max-width and -mh--{value} for max-height

Sizing ClassValue
-mw--100max-width: 100%;
-mw--480max-width: 480px;
-mw--640max-width: 640px;
-mw--720max-width: 720px;
-mw--960max-width: 960px;
-mw--980max-width: 980px;
-mw--1200max-width: 1200px;
-mh--100max-height: 100%;
-mh--400max-height: 400px;
-mh--480max-height: 480px;