3 ms·
> but understanding it again after half a year of not editing the page took super long. Longer than converting the entire website to Tailwind?
by amjnsx 3y ago
> but understanding it again after half a year of not editing the page took super long.
Longer than converting the entire website to Tailwind?
- earthnail 3y agoI wrote a new part of the website in tailwind to see what all the fuzz is about. Then I decided to rewrite the rest of it. It's a small website, but it's complex with desktop and mobile layouts, audio players etc etc. There's a design system behind it, but many small exceptions to it to make it look really nice. Writing the new part of the website was so fast with Tailwind that I just thought I'd give the rewrite a go. It wasn't that painful, and while it definitely took longer than understanding the existing bits just to edit sth, it also allowed me to clean up the CSS mess that had accumulated over two years. If I had just sat down and tried to clean up the CSS mess, it probably would've taken longer if I hadn't converted it to Tailwind at the same time. And I needed to do some cleanup as we were trying to tie different sub pages into a coherent experience. Just to clarify: please don't take this as advice of "go and rewrite your code". Rewrites are almost always bad. But in my case here, it was a good decision. My personal learning is that a startup landing page just changes too much to be able to fit into semantic classes nicely.