4 posts tagged with “css”

Tailwind not at odds with semantic class naming

6 Nov 2024

i find that many devs feel they need to align absolutely with Tailwind, or BEM, or [insert design system here] ideologies. i really think this is a misundestanding of how to use all the tools in a frontend dev's toolbox. this leads me to this thesis: Tailwind is not at odds with semantic class naming. Read more

z-index rule for UnoCSS

30 May 2024

i've developed an [unocss rule](https://unocss.dev/config/rules) for managing the z-index rules in a scalable way. unfortunately i feel like its still too early to introduce so i wanted to record it somewhere. Read more

Styled components and props - a rule of thumb

18 May 2020

A while ago, I wrote about an [improvement to using props in styled-components](/improve-your-styled-component-props-usage/). The TLDR; is "Avoid overusing props in styles and instead use proper DOM and ARIA states". I think this advice extends to all CSS-in-JS solutions. Read more

Improve your styled-component props usage

30 Nov 2019

I hadn't used styled-components until about a year ago when I started at my current job. I can't say its my favorite CSS-in-JS option for various reasons. One of those reasons is the pitfall of relying on props for styling, which can do a lot more damage than devs may realize. Read more