How I started using utility-first CSS

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.