equal-hue-tailwind-colors
v1.0.3
Published
The tailwind color palette modified to have equal hue as determined by the oklab color space
Downloads
2
Readme
equal-hue-tailwind-colors
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.
Install
npm install equal-hue-tailwind-colors
Use
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,
},
},
},
};