This is tailwind's default colors but with all the hues within a series modified to be equal as determined by the oklab color space. This is done with the @texel/color library, converting the srgb values to okhsl, setting the hue to the 500-shade hue value and then converting back to srgb. For most colors this is a negligible difference, yellows being the main exception.
See this page to compare the difference.
npm install equal-hue-tailwind-colors
or just copy the object out of index.mjs
.
There's also a swatch palette available for your design tools - the equal-hue-tailwind-colors.ase
file.
Use like you would any custom colors in your tailwind.config.cjs
file.
import colors from "equal-hue-tailwind-colors";
module.exports = {
content: ["./src/**/*.{js,jsx,tsx,ts}"],
plugins: [],
theme: {
extend: {
colors: {
...colors,
},
},
},
};