Content
@
0 reply
0 recast
0 reaction
Darryl Yeo 🛠️
@darrylyeo
Increasingly convinced `data-*` attributes (and nested `~=` rules for variants) are the best way to define style primitives in CSS.
5 replies
0 recast
18 reactions
Squirtle0x
@squirtle0x.eth
I did this for a grid system back in the day, it for sure has it's perks and keeps things organized. Biggest win back then as consolidating responsive design and the gid layout. As the system was used in a project it became real simple and fast to apply layouts all with pure CSS and data attributes. Plus in larger systems it minimized the amount of CSS shipped.
1 reply
1 recast
1 reaction
Darryl Yeo 🛠️
@darrylyeo
That’s awesome, glad to hear I’m not the only one going down this road!
0 reply
0 recast
1 reaction