My CSS is an absolute mess
My CSS
Is a mess
Half atomic (millions of classes), half “going with the grain, work with the cascade”.
I should go with one or the other. The atomic stuff is easier, but I feel it’s an admission of defeat now we can do so much with CSS as it’s “meant” to be used.
Liked this?
Consider subscribing to the RSS feed. That way, you’ll get notified whenever I post anything new. If you’re not sure about RSS feeds, I wrote a guide to RSS.
Previous note Fall Friday 2023-02-03
Next note Going with the grain
Comments
Add a comment
Webmentions
Comments and replies to this post from other sites and services, such as micro.blog and Mastodon.
Likes (1)
Replies (6)
colinwalker
@leonp I can relate. Mine has grown organically — add a feature, "ooh, it needs styling". I really should sort it out but ...
leonp
@colinwalker Exactly. I'm the only person who could possibly make sense of it (not that anybody else will ever need to, but still...) When I get the time I'll start from scratch...
leonpaternoster
@shauny oh yeah, definitely; it's my own site so no-one else will ever need to understand it. I'm not a professional developer, either. But... there's still that itch to get it “right”.
shauny :heart_progress:
@leonp I always start a project with the intention of having the cleanest and most well organised CSS ever, and it always ends up just a bit of a mess. Doesn’t really matter, if it’s just something you’re working on your own.
colinwalker
@leonp Ha! At least you can makes sense of yours. I'm not sure I can of mine. 😆
leonp
@colinwalker There is one advantage to constantly tweaking, I guess. Pretty simple design, lots of custom properties all help. I still find I annoy myself when I try and implement new stuff.