Outbound Link Summary:
1 year ago
p3k dots

TAC: A CSS methodology for the Web Components era.

All our favorite CSS methodologies were created more than 10 years ago in the pre-Web Components era. (…) I've found all that in a new methodology I've been following for the past 5 years. I call it Tag, Attributes, then Classes or TAC (…):

  1. Style a custom HTML tag x-badge { ... }
  2. Define and style custom attributes x-badge[count] { ... }
  3. Customize with utility classes, like .mar-r-sm