Utilities for background properties.
Using bg-s-[*]
, you can control the background size of an element's background image.
Using bg-p-[*]
, you can control the position of an element’s background image.
Using bg-o-[*]
, you can control the bounding box for an elements's background.
Using bg-clip-[*]
, you can control the bounding box for an elements's background.
By using bg-clip-text
, you can crop an element’s background to match the shape of the text.
<div class="-- bg-clip-text ** text-w-black text-250 text-c-transparent bg-gradient start-c-primary end-c-blue gd-dir-left">
Magic
</div>
Using bg-r-[*]
, you can control repetition of an element's background image.
Using bg-a-[*]
, you can control the way a background image responds to scrolling.
In order to add a background URL as a utility, you can make use of bg-img-[*]
. It is a convenient way to quickly set a background image without having to write additional CSS code.
<div class="-- bg-img-images/docs/landscape.jpg ** ...">
<!-- ... -->
</div>