DEV Community

pishev
pishev

Posted on

Retina background images with Tailwindcss

How do you use and test retina background images in tailwindcss?
I am writing: bg-[image-set(url(/assets/Home.jpg)_1x,url(/assets/Home@2x.jpg)_2x,url(/assets/Home@3x.jpg)_3x)], for example, but the images are ignored during the build (using vite.js).

Top comments (0)