Skip to content

[image-background problem] #605

Discussion options

You must be logged in to vote

Hey there

Try one of these options:

import tw from "twin.macro";

// Arbitrary value with lookup (tailwind feature)
tw`bg-[lookup:url('/src/images/pattern-bg.png')]`.backgroundImage

// Short css (twin feature)
tw`background-image[url('/src/images/pattern-bg.png')]`

Replies: 1 comment 3 replies

Comment options

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

@ben-rogerson
Comment options

@GabrielFMPinheiro
Comment options

Answer selected by ben-rogerson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants