Sets background-image via --bg-image. Accepts url() or a gradient string.
CSS Rules
.bg-image { background-image: var(--bg-image);}
Usage
The .bg-image
class is flagged as a value-driven selector.
The variable --bg-image is required.
<element class="bg-image" style="--bg-image: /* value */;" />
Responsive
Prefix
.bg-image
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-image" style="--md-bg-image: /* 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 bg-image::before" style="--bg-image-before: /* value */;" /><element class="content-after bg-image::after" style="--bg-image-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.
.bg-image
Sets background-image via --bg-image. Accepts url() or a gradient string.
bg-image-none
Removes the background image.
CSS Rules
.bg-image-none { background-image: none;}
Usage
<element class="bg-image-none" />
Responsive
Prefix
.bg-image-none
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-image-none" />
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 a linear gradient background direction towards the top.
CSS Rules
.bg-gradient-to-t { --tw-gradient-position: to top in oklab; background-image: to top in oklab;}
Usage
<element class="bg-gradient-to-t" />
Responsive
Prefix
.bg-gradient-to-t
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-gradient-to-t" />
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 a linear gradient background direction towards the top.
bg-gradient-to-tr
Sets a linear gradient background direction towards the top right.
CSS Rules
.bg-gradient-to-tr { --tw-gradient-position: to top right in oklab; background-image: to top right in oklab;}
Usage
<element class="bg-gradient-to-tr" />
Responsive
Prefix
.bg-gradient-to-tr
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-gradient-to-tr" />
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 a linear gradient background direction towards the top right.
bg-gradient-to-r
Sets a linear gradient background direction towards the right.
CSS Rules
.bg-gradient-to-r { --tw-gradient-position: to right in oklab; background-image: to right in oklab;}
Usage
<element class="bg-gradient-to-r" />
Responsive
Prefix
.bg-gradient-to-r
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-gradient-to-r" />
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 a linear gradient background direction towards the right.
bg-gradient-to-br
Sets a linear gradient background direction towards the bottom right.
CSS Rules
.bg-gradient-to-br { --tw-gradient-position: to bottom right in oklab; background-image: to bottom right in oklab;}
Usage
<element class="bg-gradient-to-br" />
Responsive
Prefix
.bg-gradient-to-br
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-gradient-to-br" />
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 a linear gradient background direction towards the bottom right.
bg-gradient-to-b
Sets a linear gradient background direction towards the bottom.
CSS Rules
.bg-gradient-to-b { --tw-gradient-position: to bottom in oklab; background-image: to bottom in oklab;}
Usage
<element class="bg-gradient-to-b" />
Responsive
Prefix
.bg-gradient-to-b
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-gradient-to-b" />
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 a linear gradient background direction towards the bottom.
bg-gradient-to-bl
Sets a linear gradient background direction towards the bottom left.
CSS Rules
.bg-gradient-to-bl { --tw-gradient-position: to bottom left in oklab; background-image: to bottom left in oklab;}
Usage
<element class="bg-gradient-to-bl" />
Responsive
Prefix
.bg-gradient-to-bl
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-gradient-to-bl" />
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 a linear gradient background direction towards the bottom left.
bg-gradient-to-l
Sets a linear gradient background direction towards the left.
CSS Rules
.bg-gradient-to-l { --tw-gradient-position: to left in oklab; background-image: to left in oklab;}
Usage
<element class="bg-gradient-to-l" />
Responsive
Prefix
.bg-gradient-to-l
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-gradient-to-l" />
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 a linear gradient background direction towards the left.
bg-gradient-to-tl
Sets a linear gradient background direction towards the top left.
CSS Rules
.bg-gradient-to-tl { --tw-gradient-position: to top left in oklab; background-image: to top left in oklab;}
Usage
<element class="bg-gradient-to-tl" />
Responsive
Prefix
.bg-gradient-to-tl
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:bg-gradient-to-tl" />
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
.radial
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:radial" />
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
.conic
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:conic" />
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.
The .from
class is flagged as a value-driven selector.
The variable --from is required.
<element class="from" style="--from: /* value */;" />
Responsive & Dark Mode
Prefix
.from
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
If dark mode is applied, the dark: prefix always
comes first.
<element class="md:from" style="--md-from: /* value */;" /><element class="dark:sm:from" style="--dark-sm-from: /* 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
and dark mode.
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 from::before" style="--from-before: /* value */;" /><element class="content-after from::after" style="--from-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.
The .from/o
class is flagged as a value-driven selector.
The variables --from and --from-o are required.
<element class="from/o" style=" --from: /* value */; --from-o: /* value */; "></element>
Responsive & Dark Mode
Prefix
.from/o
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
If dark mode is applied, the dark: prefix always
comes first.
<element class="md:from/o" style=" --md-from: /* value */; --md-from-o: /* value */; "></element><element class="dark:sm:from/o" style=" --dark-sm-from: /* value */; --dark-sm-from-o: /* 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
and dark mode.
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 from/o::before" style=" --from-before: /* value */; --from-o-before: /* value */; "></element><element class="content-after from/o::after" style=" --from-after: /* value */; --from-o-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 .from-position
class is flagged as a value-driven selector.
The variable --from-position is required.
<element class="from-position" style="--from-position: /* value */;" />
Responsive
Prefix
.from-position
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:from-position" style="--md-from-position: /* 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 from-position::before" style="--from-position-before: /* value */;" /><element class="content-after from-position::after" style="--from-position-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.
The .via
class is flagged as a value-driven selector.
The variables --via and --via-o are required.
<element class="via" style=" --via: /* value */; --via-o: /* value */; "></element>
Responsive & Dark Mode
Prefix
.via
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
If dark mode is applied, the dark: prefix always
comes first.
<element class="md:via" style=" --md-via: /* value */; --md-via-o: /* value */; "></element><element class="dark:sm:via" style=" --dark-sm-via: /* value */; --dark-sm-via-o: /* 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
and dark mode.
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 via::before" style=" --via-before: /* value */; --via-o-before: /* value */; "></element><element class="content-after via::after" style=" --via-after: /* value */; --via-o-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 .via/o
class is flagged as a value-driven selector.
The variables --via and --via-o are required.
<element class="via/o" style=" --via: /* value */; --via-o: /* value */; "></element>
Responsive & Dark Mode
Prefix
.via/o
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
If dark mode is applied, the dark: prefix always
comes first.
<element class="md:via/o" style=" --md-via: /* value */; --md-via-o: /* value */; "></element><element class="dark:sm:via/o" style=" --dark-sm-via: /* value */; --dark-sm-via-o: /* 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
and dark mode.
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 via/o::before" style=" --via-before: /* value */; --via-o-before: /* value */; "></element><element class="content-after via/o::after" style=" --via-after: /* value */; --via-o-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 .via-position
class is flagged as a value-driven selector.
The variable --via-position is required.
<element class="via-position" style="--via-position: /* value */;" />
Responsive
Prefix
.via-position
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:via-position" style="--md-via-position: /* 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 via-position::before" style="--via-position-before: /* value */;" /><element class="content-after via-position::after" style="--via-position-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.
The .to
class is flagged as a value-driven selector.
The variable --to is required.
<element class="to" style="--to: /* value */;" />
Responsive & Dark Mode
Prefix
.to
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
If dark mode is applied, the dark: prefix always
comes first.
<element class="md:to" style="--md-to: /* value */;" /><element class="dark:sm:to" style="--dark-sm-to: /* 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
and dark mode.
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 to::before" style="--to-before: /* value */;" /><element class="content-after to::after" style="--to-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.
The .to/o
class is flagged as a value-driven selector.
The variables --to and --to-o are required.
<element class="to/o" style=" --to: /* value */; --to-o: /* value */; "></element>
Responsive & Dark Mode
Prefix
.to/o
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
If dark mode is applied, the dark: prefix always
comes first.
<element class="md:to/o" style=" --md-to: /* value */; --md-to-o: /* value */; "></element><element class="dark:sm:to/o" style=" --dark-sm-to: /* value */; --dark-sm-to-o: /* 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
and dark mode.
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 to/o::before" style=" --to-before: /* value */; --to-o-before: /* value */; "></element><element class="content-after to/o::after" style=" --to-after: /* value */; --to-o-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 .to-position
class is flagged as a value-driven selector.
The variable --to-position is required.
<element class="to-position" style="--to-position: /* value */;" />
Responsive
Prefix
.to-position
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:to-position" style="--md-to-position: /* 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 to-position::before" style="--to-position-before: /* value */;" /><element class="content-after to-position::after" style="--to-position-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.
.to-position
Sets the gradient to-stop position via --to-position. E.g. 90%.
gradient-position
Sets gradient position/interpolation via --gradient-position, falling back to oklab.
CSS Rules
.gradient-position { --tw-gradient-position: var(--gradient-position, in oklab);}
Usage
The .gradient-position
class is flagged as a value-driven selector.
The variable --gradient-position is required.
<element class="gradient-position" style="--gradient-position: /* value */;" />
Responsive
Prefix
.gradient-position
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:gradient-position" style="--md-gradient-position: /* 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 gradient-position::before" style="--gradient-position-before: /* value */;" /><element class="content-after gradient-position::after" style="--gradient-position-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.
Prefix
.linear
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:linear" />
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.
Creates a linear gradient background using configured gradient stops.
linear-to-b
Sets gradient direction to the bottom. Combine with from, via, and to.
CSS Rules
.linear-to-b { --tw-gradient-position: to bottom in oklab;}
Usage
<element class="linear-to-b" />
Responsive
Prefix
.linear-to-b
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:linear-to-b" />
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 gradient direction to the bottom. Combine with from, via, and to.
linear-to-bl
Points a linear gradient toward the bottom left and uses oklab interpolation.
CSS Rules
.linear-to-bl { --tw-gradient-position: to bottom left in oklab;}
Usage
<element class="linear-to-bl" />
Responsive
Prefix
.linear-to-bl
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:linear-to-bl" />
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.
Points a linear gradient toward the bottom left and uses oklab interpolation.
linear-to-br
Sets gradient direction to bottom-right. Combine with from, via, and to.
CSS Rules
.linear-to-br { --tw-gradient-position: to bottom right in oklab;}
Usage
<element class="linear-to-br" />
Responsive
Prefix
.linear-to-br
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:linear-to-br" />
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 gradient direction to bottom-right. Combine with from, via, and to.
linear-to-l
Points a linear gradient toward the left and uses oklab interpolation.
CSS Rules
.linear-to-l { --tw-gradient-position: to left in oklab;}
Usage
<element class="linear-to-l" />
Responsive
Prefix
.linear-to-l
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:linear-to-l" />
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.
Points a linear gradient toward the left and uses oklab interpolation.
linear-to-r
Sets gradient direction to the right. Combine with from, via, and to.
CSS Rules
.linear-to-r { --tw-gradient-position: to right in oklab;}
Usage
<element class="linear-to-r" />
Responsive
Prefix
.linear-to-r
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:linear-to-r" />
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 gradient direction to the right. Combine with from, via, and to.
linear-to-t
Points a linear gradient toward the top and uses oklab interpolation.
CSS Rules
.linear-to-t { --tw-gradient-position: to top in oklab;}
Usage
<element class="linear-to-t" />
Responsive
Prefix
.linear-to-t
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:linear-to-t" />
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.
Points a linear gradient toward the top and uses oklab interpolation.
linear-to-tl
Points a linear gradient toward the top left and uses oklab interpolation.
CSS Rules
.linear-to-tl { --tw-gradient-position: to top left in oklab;}
Usage
<element class="linear-to-tl" />
Responsive
Prefix
.linear-to-tl
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:linear-to-tl" />
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.
Points a linear gradient toward the top left and uses oklab interpolation.
linear-to-tr
Points a linear gradient toward the top right and uses oklab interpolation.
CSS Rules
.linear-to-tr { --tw-gradient-position: to top right in oklab;}
Usage
<element class="linear-to-tr" />
Responsive
Prefix
.linear-to-tr
utility with a breakpoint variant (e.g., md:) to apply styles at
specific screen sizes (Supported breakpoints are
xm through 2xl).
<element class="md:linear-to-tr" />
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.