Skip to main content

Background Clip

Utilities for controlling the bounding box of an element's background.

CSS Property:background-clip
Classes:4

Background Clip Classes

ClassCSS
bg-clip-borderbackground-clip: border-box;
bg-clip-paddingbackground-clip: padding-box;
bg-clip-contentbackground-clip: content-box;
bg-clip-textbackground-clip: text;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[background-clip:value]

Responsive Variants

Apply background clip utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:bg-clip-border
768px+md:md:bg-clip-border
1024px+lg:lg:bg-clip-border
1280px+xl:xl:bg-clip-border
1536px+2xl:2xl:bg-clip-border