Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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')",
        })
      }
    }
  }
Source by tailwindcss.com #
 
PREVIOUS NEXT
Tagged: #add #background #image #tailwind #css
ADD COMMENT
Topic
Name
1+2 =