-
Hi, #tailwind.config.js
module.exports = {
theme: {
screens: {
sm: '480px',
md: '768px',
lg: '976px',
xl: '1440px',
},
colors: {
'blue': '#1fb6ff',
'purple': '#7e5bef',
'pink': '#ff49db',
'orange': '#ff7849',
'green': '#13ce66',
'yellow': '#ffc82c',
'gray-dark': '#273444',
'gray': '#8492a6',
'gray-light': '#d3dce6',
},
fontFamily: {
sans: ['Graphik', 'sans-serif'],
serif: ['Merriweather', 'serif'],
},
extend: {
spacing: {
'128': '32rem',
'144': '36rem',
},
borderRadius: {
'4xl': '2rem',
}
}
}
} Any solution?? Thanks in advance!! |
Beta Was this translation helpful? Give feedback.
Answered by
crswll
Jun 19, 2022
Replies: 1 comment 4 replies
-
You can extend module.exports = {
theme: {
extend: {
backgroundImage: (theme) => ({
'gradient-primary': `linear-gradient(to right, ${theme('colors.pink')}, ${theme('colors.orange')})`,
}),
},
},
plugins: [],
} |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
h0lme3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can extend
backgroundImage
in yourtailwind.config.js
.