The .size
class is flagged as a value-driven selector.
The variables --size and --size are required.
<element class="size" style=" --size: /* value */; --size: /* value */; "></element>
Responsive
Prefix
.size
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:size" style=" --md-size: /* value */; --md-size: /* value */; "></element>
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 size::before" style=" --size-before: /* value */; --size-before: /* value */; "></element><element class="content-after size::after" style=" --size-after: /* value */; --size-after: /* value */; "></element>
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.
The .[size]
class is flagged as a value-driven selector.
The variables --size and --size are required.
<element class="[size]" style=" --size: /* value */; --size: /* value */; "></element>
Responsive
Prefix
.[size]
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:[size]" style=" --md-size: /* value */; --md-size: /* value */; "></element>
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 [size]::before" style=" --size-before: /* value */; --size-before: /* value */; "></element><element class="content-after [size]::after" style=" --size-after: /* value */; --size-after: /* value */; "></element>
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.
.[size]
Applies raw --size directly to width and height. Use size for spacing-scaled dimensions.
size-auto
Sets both width and height to auto.
CSS Rules
.size-auto { width: auto; height: auto;}
Usage
<element class="size-auto" />
Responsive
Prefix
.size-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:size-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
.size-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:size-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.
Sets both width and height to 100 dynamic viewport widths.
CSS Rules
.size-dvw { width: 100dvw; height: 100dvw;}
Usage
<element class="size-dvw" />
Responsive
Prefix
.size-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:size-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 both width and height to 100 dynamic viewport widths.
size-dvh
Sets both width and height to 100% of the dynamic viewport height (100dvh).
CSS Rules
.size-dvh { width: 100dvh; height: 100dvh;}
Usage
<element class="size-dvh" />
Responsive
Prefix
.size-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:size-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 both width and height to 100% of the dynamic viewport height (100dvh).
size-lvw
Sets both width and height to 100% of the large viewport width (100lvw).
CSS Rules
.size-lvw { width: 100lvw; height: 100lvw;}
Usage
<element class="size-lvw" />
Responsive
Prefix
.size-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:size-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 both width and height to 100% of the large viewport width (100lvw).
size-lvh
Sets both width and height to 100% of the large viewport height (100lvh).
CSS Rules
.size-lvh { width: 100lvh; height: 100lvh;}
Usage
<element class="size-lvh" />
Responsive
Prefix
.size-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:size-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 both width and height to 100% of the large viewport height (100lvh).
size-svw
Sets both width and height to 100% of the small viewport width (100svw).
CSS Rules
.size-svw { width: 100svw; height: 100svw;}
Usage
<element class="size-svw" />
Responsive
Prefix
.size-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:size-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 both width and height to 100% of the small viewport width (100svw).
size-svh
Sets both width and height to 100% of the small viewport height (100svh).
CSS Rules
.size-svh { width: 100svh; height: 100svh;}
Usage
<element class="size-svh" />
Responsive
Prefix
.size-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:size-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.
Prefix
.size-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:size-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.
Prefix
.size-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:size-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.
Prefix
.size-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:size-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.