Add daily email for 2024-07-11
How I started using utility-first CSS
This commit is contained in:
parent
4b4604ca13
commit
a35d64a84a
26
source/_daily_emails/2024-07-11.md
Normal file
26
source/_daily_emails/2024-07-11.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: How I started using utility-first CSS
|
||||
date: 2024-07-11
|
||||
permalink: daily/2024/07/11/how-i-started-using-utility-first-css
|
||||
tags:
|
||||
- software-development
|
||||
- css
|
||||
- tailwind-css
|
||||
cta: ~
|
||||
snippet: |
|
||||
How did I start using atomic classes and 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.
|
Loading…
Reference in a new issue