Before I started using atomic CSS classes, I used to use a popular component-based CSS framework.
You'd include the styles as well as the HTML markup you needed.
Whilst using the other framework, I started to sprinkle CSS classes on top of my existing styles, to make it easy to set values such as text sizes, colours, margin and padding without repeating myself and duplicating styles.
Later, I realised I didn't need the original framework and I could do it myself with atomic classes.
Page by page and component by component, I refactored everything to use atomic classes.
Once everything was refactored, I removed the original framework.
I haven't looked back.
- Oliver
Was this interesting?
About me
I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.