50
100
200
300
400
500
600
700
800
900
950
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: '#ffefee',
200: '#ffdedd',
300: '#ffcecc',
400: '#ffbdbc',
500: '#fdacac',
600: '#fa9b9c',
700: '#f78a8c',
800: '#f4787d',
900: '#ef656e',
950: '#ea5160',
},
},
},
},
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 (or Tailwind v4 `@theme`), here are the variables:
:root {
--color-custom-50: #ffffff;
--color-custom-100: #ffefee;
--color-custom-200: #ffdedd;
--color-custom-300: #ffcecc;
--color-custom-400: #ffbdbc;
--color-custom-500: #fdacac;
--color-custom-600: #fa9b9c;
--color-custom-700: #f78a8c;
--color-custom-800: #f4787d;
--color-custom-900: #ef656e;
--color-custom-950: #ea5160;
}Individual Color Values
custom-50
#ffffff
custom-100
#ffefee
custom-200
#ffdedd
custom-300
#ffcecc
custom-400
#ffbdbc
custom-500
#fdacac
custom-600
#fa9b9c
custom-700
#f78a8c
custom-800
#f4787d
custom-900
#ef656e
custom-950
#ea5160
Learn more about customizing colors in Tailwind CSS