6 ms·
Has anyone considered using utility-style CSS combined with semantic class naming? Example: <div class="profile-card"></div> .profile-card { @include
by hmexx 6y ago
Has anyone considered using utility-style CSS combined with semantic class naming?
Example:
<div class="profile-card"></div>
.profile-card {
@include tailwind-css-1
@include tailwind-css-2
...etc...
}
This way your html has semantic classes but the definition of the classes uses something like tailwind instead of raw CSS. One level of abstraction. Seems the best of both worlds?
- zeusly 6y agoYou mean this? https://tailwindcss.com/docs/extracting-components/ https://tailwindcss.com/docs/extracting-components/
- wishinghand 6y agoI mean, isn’t that just writing CSS classes at that point?