How much is too much css? (cube css)

Hey guys, I built this webpage, i used cube CSS, came up with some composition classes, utitlity classes and some button and card classes. My total lines of code came to about 300. It does have animations on hover for the nav bar(dropdown menu with border color lighting up) I'm worried it seems like a lot, however the cube method has allowed my code to be easily modified, is understandable and editable (more than my bem), it's also lead to nice efficient lines of code in certain places. I want to know what you guys think? too much? or does the amount not matter
No description
2 Replies
13eck
13eck5mo ago
While this is more a #discussions topic than a #front-end one (since it's not about specific code but a general question) I'll say this each and every day of the week: If you can understand it, it's the right amount It's better to be more verbose and have more code if next-month you can still understand it. There's zero reason to be terse and fancy with your code if you won't be able to understand it when you come back to work on it next week, month, or year.
clevermissfox
clevermissfox5mo ago
I don’t think 300 lines sounds like too much for one dashboard like page , I’m sure a lot of it would be global styles too that would apply to the same classes on other pages /body /html /headings/reset etc
Want results from more Discord servers?
Add your server