|
|
|
|
|
by nailer
1214 days ago
|
|
> The reality is that if the codebase and style code is in flux, that idealized CSS stylesheet will churn towards a being a mess of tech debt. Interesting. That’s not been my experience. People tend to clean up as they go, eg if the design says we now need a thinner padding / gaps or a different colour blue, we change the variable, and if we spot cut and pastes we fix them. It’s certainly much easier to refactor than visual classes mixed into HTML. |
|
https://tailwindcss.com/docs/customizing-spacing
Better yet, it also forces people to use theme spacing sizes or making the use of custom unit very explicit (a [] in your class name)