50#ffffff
100#f2ffff
200#e5ffff
300#d7ffff
400#c8ffff
500#b9ffff
600#a9ffff
700#97ffff
800#83ffff
900#6bffff
950#4cffff
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: '#f2ffff',
200: '#e5ffff',
300: '#d7ffff',
400: '#c8ffff',
500: '#b9ffff',
600: '#a9ffff',
700: '#97ffff',
800: '#83ffff',
900: '#6bffff',
950: '#4cffff',
},
},
},
},
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: #f2ffff;
--color-custom-200: #e5ffff;
--color-custom-300: #d7ffff;
--color-custom-400: #c8ffff;
--color-custom-500: #b9ffff;
--color-custom-600: #a9ffff;
--color-custom-700: #97ffff;
--color-custom-800: #83ffff;
--color-custom-900: #6bffff;
--color-custom-950: #4cffff;
}Individual Color Values
custom-50
#ffffff
custom-100
#f2ffff
custom-200
#e5ffff
custom-300
#d7ffff
custom-400
#c8ffff
custom-500
#b9ffff
custom-600
#a9ffff
custom-700
#97ffff
custom-800
#83ffff
custom-900
#6bffff
custom-950
#4cffff
Learn more about customizing colors in Tailwind CSS