How i can Use Color in TailWind CSS?.

Answer

Firstly we need to define colors object array in your custom theme
Define your custom color name into theme.colors
I am also explaining in a code,

const colors = require("tailwindcss/colors");

module.exports = {
purge: ["./src/**/*.{js,jsx,ts,tsx}", "./public/index.html"],
...
theme: {
...
colors: {
cadetblue: "#5f9ea0",
},
...

All tailwind Questions

Ask your interview questions on tailwind

Write Your comment or Questions if you want the answers on tailwind from tailwind Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---