top | item 24035137

(no title)

hmexx | 5 years 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?

discuss

order

wishinghand|5 years ago

I mean, isn’t that just writing CSS classes at that point?