Skip to content

How to apply background image with linear gradient using Tailwind CSS ? #207

Answered by fcasamento
montasim asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @montasim.
It would be something like you wanted

module.exports = {
  theme: {
    extend: {
      backgroundImage: {
        'hero-pattern': "url('/img/hero-pattern.svg')",
        'footer-texture': "url('/img/footer-texture.png')",
      }
    }
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by montasim
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