Tailwind v3 and v4 output
Tailwind v4 output uses theme variables, while Tailwind v3 output uses a configuration object. CSS variables and JSON are also available for non-Tailwind workflows.
Build a Tailwind-style color scale from one base color. Preview shades 50 through 950, inspect contrast indicators and UI examples, then export code for Tailwind CSS v4, Tailwind v3, CSS variables, or JSON.
Tailwind v4 output uses theme variables, while Tailwind v3 output uses a configuration object. CSS variables and JSON are also available for non-Tailwind workflows.
The palette includes 50, every hundred from 100 through 900, and 950.
It provides contrast indicators as guidance. Verify final foreground and background pairs in the full interface before publishing.
Yes. Copy or download a Tailwind v4 theme block.
/* Add to your app.css or main CSS file */
@import "tailwindcss";
@theme {
--color-custom-50: #f5f7f9;
--color-custom-100: #e8ecf2;
--color-custom-200: #b6d1fc;
--color-custom-300: #7bacf9;
--color-custom-400: #2474f5;
--color-custom-500: #0a54cd;
--color-custom-600: #0842a1;
--color-custom-700: #06347f;
--color-custom-800: #052861;
--color-custom-900: #0e213f;
--color-custom-950: #071121;
}// Add to your tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
"custom": {
"50": "#f5f7f9",
"100": "#e8ecf2",
"200": "#b6d1fc",
"300": "#7bacf9",
"400": "#2474f5",
"500": "#0a54cd",
"600": "#0842a1",
"700": "#06347f",
"800": "#052861",
"900": "#0e213f",
"950": "#071121"
}
}
}
}
}/* CSS custom properties for use in any project */
:root {
--color-custom-50: #f5f7f9;
--color-custom-100: #e8ecf2;
--color-custom-200: #b6d1fc;
--color-custom-300: #7bacf9;
--color-custom-400: #2474f5;
--color-custom-500: #0a54cd;
--color-custom-600: #0842a1;
--color-custom-700: #06347f;
--color-custom-800: #052861;
--color-custom-900: #0e213f;
--color-custom-950: #071121;
}