Sets height via --h. Scaled by spacing unit. Use [h] for raw values.
CSS Rules
.h { height: calc(var(--spacing) * var(--h));}
Usage
The .h
class is flagged as a value-driven selector.
The variable --h is required.
<element class="h" style="--h: /* value */;" />
Responsive
Prefix
.h
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h" style="--md-h: /* value */;" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
<element class="content-before h::before" style="--h-before: /* value */;" /><element class="content-after h::after" style="--h-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
z-not-ready
class in your <head>
tag.
.h
Sets height via --h. Scaled by spacing unit. Use [h] for raw values.
[h]
Applies raw --h directly to height. Use for custom, unscaled sizing.
CSS Rules
.\[h\] { height: var(--h);}
Usage
The .[h]
class is flagged as a value-driven selector.
The variable --h is required.
<element class="[h]" style="--h: /* value */;" />
Responsive
Prefix
.[h]
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:[h]" style="--md-h: /* value */;" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
<element class="content-before [h]::before" style="--h-before: /* value */;" /><element class="content-after [h]::after" style="--h-after: /* value */;" />
Shorthand
Value-driven classes support a shorthand syntax like bg=pink or p=4. The runtime
processes this for you. Unlike :hover that is
generating CSS on the fly, shorthand only splits it
and appends the corresponding style.
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
z-not-ready
class in your <head>
tag.
.[h]
Applies raw --h directly to height. Use for custom, unscaled sizing.
h-auto
Sets height: auto.
CSS Rules
.h-auto { height: auto;}
Usage
<element class="h-auto" />
Responsive
Prefix
.h-auto
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-auto" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Prefix
.h-full
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-full" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Prefix
.h-screen
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-screen" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height: 100dvh (dynamic viewport height, accounts for mobile chrome).
CSS Rules
.h-dvh { height: 100dvh;}
Usage
<element class="h-dvh" />
Responsive
Prefix
.h-dvh
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-dvh" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height: 100dvh (dynamic viewport height, accounts for mobile chrome).
h-dvw
Sets height to 100% of the dynamic viewport width (100dvw).
CSS Rules
.h-dvw { height: 100dvw;}
Usage
<element class="h-dvw" />
Responsive
Prefix
.h-dvw
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-dvw" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height to 100% of the dynamic viewport width (100dvw).
h-lvh
Sets height to 100% of the large viewport height (100lvh).
CSS Rules
.h-lvh { height: 100lvh;}
Usage
<element class="h-lvh" />
Responsive
Prefix
.h-lvh
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-lvh" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height to 100% of the large viewport height (100lvh).
h-lvw
Sets height to 100% of the large viewport width (100lvw).
CSS Rules
.h-lvw { height: 100lvw;}
Usage
<element class="h-lvw" />
Responsive
Prefix
.h-lvw
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-lvw" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height to 100% of the large viewport width (100lvw).
h-svh
Sets height to 100% of the small viewport height (100svh).
CSS Rules
.h-svh { height: 100svh;}
Usage
<element class="h-svh" />
Responsive
Prefix
.h-svh
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-svh" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height to 100% of the small viewport height (100svh).
h-svw
Sets height to 100% of the small viewport width (100svw).
CSS Rules
.h-svw { height: 100svw;}
Usage
<element class="h-svw" />
Responsive
Prefix
.h-svw
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-svw" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height to 100% of the small viewport width (100svw).
h-min
Sets height to the intrinsic min-content size of the element.
CSS Rules
.h-min { height: min-content;}
Usage
<element class="h-min" />
Responsive
Prefix
.h-min
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-min" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height to the intrinsic min-content size of the element.
h-max
Sets height to the intrinsic max-content size of the element.
CSS Rules
.h-max { height: max-content;}
Usage
<element class="h-max" />
Responsive
Prefix
.h-max
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-max" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height to the intrinsic max-content size of the element.
h-fit
Sets height to fit-content, sizing based on the element's content within constraints.
CSS Rules
.h-fit { height: fit-content;}
Usage
<element class="h-fit" />
Responsive
Prefix
.h-fit
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-fit" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.
Sets height to fit-content, sizing based on the element's content within constraints.
h-lh
Sets height to one line-height unit (1lh).
CSS Rules
.h-lh { height: 1lh;}
Usage
<element class="h-lh" />
Responsive
Prefix
.h-lh
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:h-lh" />
States
States are generated dynamically at runtime and always
come last. Append a state like :hover or
:focus to the end of the
class. This works in conjunction with breakpoints
.
The ::before and ::after utility classes
are supported too. Granted that you add the mandatory content-before or content-after class in
order for them to work.