Skip to content

Wanna customize Gradient and add in tailwind config js file #8684

Answered by crswll
h0lme3 asked this question in Help
Discussion options

You must be logged in to vote

You can extend backgroundImage in your tailwind.config.js.

module.exports = {
  theme: {
    extend: {
      backgroundImage: (theme) => ({
        'gradient-primary': `linear-gradient(to right, ${theme('colors.pink')}, ${theme('colors.orange')})`,
      }),
    },
  },
  plugins: [],
}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@h0lme3
Comment options

@crswll
Comment options

@h0lme3
Comment options

@h0lme3
Comment options

Answer selected by h0lme3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants