Tailwind CSS, Default color palate not accessible

I'm setting up tailwind for the first time I have set up custom colors in tailwind.config.js
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
module.exports = {
content: ["./index.html"],
theme: {
extend: {
colors: {
'black': '2B2B2B',
'white': 'FFFFFF',
'green': '8EBB33',
'orange': 'FD7E4E',
'grey': '3C5C6A',
'darkGrey': '325462',
},
},
},
}
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
module.exports = {
content: ["./index.html"],
theme: {
extend: {
colors: {
'black': '2B2B2B',
'white': 'FFFFFF',
'green': '8EBB33',
'orange': 'FD7E4E',
'grey': '3C5C6A',
'darkGrey': '325462',
},
},
},
}
when I use them in index.html, they are not showing up. What am I doing wrong?
1 Reply
Abdul Ahad⚡
Abdul Ahad⚡OP3y ago
anyone here? 🥺
Want results from more Discord servers?
Add your server