50#ffffff
100#ffefff
200#ffdfff
300#ffcfff
400#ffbfff
500#ffaeff
600#ff9cff
700#ff89ff
800#ff75ff
900#ff5eff
950#ff41ff
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: '#ffefff',
200: '#ffdfff',
300: '#ffcfff',
400: '#ffbfff',
500: '#ffaeff',
600: '#ff9cff',
700: '#ff89ff',
800: '#ff75ff',
900: '#ff5eff',
950: '#ff41ff',
},
},
},
},
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: #ffefff;
--color-custom-200: #ffdfff;
--color-custom-300: #ffcfff;
--color-custom-400: #ffbfff;
--color-custom-500: #ffaeff;
--color-custom-600: #ff9cff;
--color-custom-700: #ff89ff;
--color-custom-800: #ff75ff;
--color-custom-900: #ff5eff;
--color-custom-950: #ff41ff;
}Individual Color Values
custom-50
#ffffff
custom-100
#ffefff
custom-200
#ffdfff
custom-300
#ffcfff
custom-400
#ffbfff
custom-500
#ffaeff
custom-600
#ff9cff
custom-700
#ff89ff
custom-800
#ff75ff
custom-900
#ff5eff
custom-950
#ff41ff
Learn more about customizing colors in Tailwind CSS