Skip to content

Background Clip

Set background clipping area

Syntax

visual="bg-clip:[value]"

Values

ValueCSS OutputDescription
borderbackground-clip: border-boxClip to border
paddingbackground-clip: padding-boxClip to padding
contentbackground-clip: content-boxClip to content
textbackground-clip: text; -webkit-background-clip: textClip to text

Examples

html
<div visual="bg-clip:text text:transparent bg:gradient">Gradient text</div>

Preview

Background Clip

visual="bg-clip:text" - Clip background to text for gradient text effect

Gradient Text
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <span text="size:large weight:bold" visual="bg-image:gradient-to-r from:blue-500 to:violet-500 bg-clip:text text:transparent">Gradient Text</span>
</div>