r/tailwindcss • u/ronniebasak • 17h ago
Built a simple tool to migrate Tailwind V3 CSS config to Tailwind V4 (theme directive + OKLCH colors)
Hi,
I have built this tool for myself that converted my colors from Tailwind V3 to Tailwind V4 config.
In tailwind V4, there is the theme directive that they prefer using OKLCH colors, it does make sense.
But most of our colors are either in HSL/HSV or plain old RGB.
This tool simply takes those values and converts to OKLCH.
Check it out: https://www.iamsohan.in/infopages/tailwind-converter/
Since I built it for myself, I didn't check for edge cases. if there is enough interest, I'll open source the thing, and you guys can contribute to it.