Answers for "tailwind bg image"

7

how to add background image in tailwind css

module.exports = {
    theme: {
      extend: {
        backgroundImage: theme => ({
         'hero-pattern': "url('/img/hero-pattern.svg')",
         'footer-texture': "url('/img/footer-texture.png')",
        })
      }
    }
  }
Posted by: Guest on August-30-2021
0

tailwind bg image

// tailwind.config.js
  module.exports = {
    theme: {
      extend: {
        backgroundImage: theme => ({
+         'hero-pattern': "url('/img/hero-pattern.svg')",
+         'footer-texture': "url('/img/footer-texture.png')",
        })
      }
    }
  }
Posted by: Guest on August-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language