50#ffffff
100#feffff
200#fcffff
300#fbffff
400#faffff
500#f8ffff
600#f7ffff
700#f6ffff
800#f4ffff
900#f3ffff
950#f1ffff
How to Install
1
Open your tailwind.config.js file
Locate the configuration file in your project's root directory.
2
Add the color palette to your theme
Copy the following configuration into your theme's colors section:
module.exports = {
theme: {
extend: {
colors: {
custom: {
50: '#ffffff',
100: '#feffff',
200: '#fcffff',
300: '#fbffff',
400: '#faffff',
500: '#f8ffff',
600: '#f7ffff',
700: '#f6ffff',
800: '#f4ffff',
900: '#f3ffff',
950: '#f1ffff',
},
},
},
},
plugins: [],
}3
Use the colors in your HTML/JSX
You can now use your custom colors with Tailwind utility classes:
<!-- Background color -->
<div class="bg-custom-500">...</div>
<!-- Text color -->
<p class="text-custom-700">...</p>
<!-- Border color -->
<div class="border-custom-300">...</div>
<!-- Hover states -->
<button class="bg-custom-500 hover:bg-custom-600">...</button>Alternative: CSS Variables
If you prefer using CSS custom properties, here are the variables:
:root {
--color-custom-50: #ffffff;
--color-custom-100: #feffff;
--color-custom-200: #fcffff;
--color-custom-300: #fbffff;
--color-custom-400: #faffff;
--color-custom-500: #f8ffff;
--color-custom-600: #f7ffff;
--color-custom-700: #f6ffff;
--color-custom-800: #f4ffff;
--color-custom-900: #f3ffff;
--color-custom-950: #f1ffff;
}Individual Color Values
custom-50
#ffffff
custom-100
#feffff
custom-200
#fcffff
custom-300
#fbffff
custom-400
#faffff
custom-500
#f8ffff
custom-600
#f7ffff
custom-700
#f6ffff
custom-800
#f4ffff
custom-900
#f3ffff
custom-950
#f1ffff
Learn more about customizing colors in Tailwind CSS