Hey if you wanted to use the brand new TailwindCSS color palette :
How to add the brand new palettes
Step 1/2
Add the full-palette
dependencies
yarn add full-palette --dev
Step 2/2
Open the tailwind.config.js
module.exports = {
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false,
theme: {
extend: {},
},
variants: {
extend: {},
},
presets: [require('full-palette')], // The line to add :D
plugins: [],
}
And add the require('full-palette')
to the presets
properties in the tailwind config.
And that's it, thanks for reading this post :D
Discussion (0)