Skip to content
Discussion options

You must be logged in to vote

Undocumented, but custom gradients are accepted in the --background-image-* namespace, which can then only be used with the bg-* utility.

@theme {
  --background-image-custom: linear-gradient(101.98deg,oklch(0.53 0.25 259) 41.25%,oklch(0.75 0.19 194) 130.18%);
}
<div class="bg-custom size-32 border-2"><!-- ... --></div>

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@mzulfanw
Comment options

Comment options

You must be logged in to vote
3 replies
@mzulfanw
Comment options

@rozsazoltan
Comment options

@mzulfanw
Comment options

Answer selected by mzulfanw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants