Problem Statement
How do you add a new color to your Tailwind theme?
Explanation
Custom colors are added inside the theme.extend section of tailwind.config.js. This keeps existing Tailwind colors and adds your custom palette.
You can then use these colors directly as class names like text-brand or bg-brand.
Code Solution
SolutionRead Only
theme: { extend: { colors: { brand: '#0EA5E9' } } }