i found this neat way to style components using semantic names instead of generic classes like "container" or "button". check out how it works in a simple example:
<section class="profile-form"> <form>. </fieldset.
this approach makes your html more meaningful and easier for others (or future you) to understand. what do u think abt using semantic names over generic ones? have y'all tried this method b4, or is it still a bit too experimental in 2026?
➡️ want to see an actual component i made recently?
profile-form {display: flex;flex-direction: column;input[type="text"] {. }textarea {}button. save-profile {}}i'm curious how others are structuring their css for components. any tips or tricks?
more here:
https://dev.to/moopet/component-based-css-4ic4