What's up with CSS-in-JS styling? 🎨
I've been working with styled components for a long time, but with the advent of RSC, I started to lean towards CSS-modules (hello, performance boost and proper use of RCS)
CSS-modules are a fantastic solution, but the lack of quality "typing" for classes, CSS variables, etc., requires writing a substantial amount of infrastructure code, especially when building a design system
Recently, I stumbled upon Panda CSS & StyleX. These tools seem like an excellent blend of CSS-in-JS and CSS-modules. You harness the full power of JS/TS, and the result? Clean atomic CSS. Of course, dynamic styles raise some questions, but it's not a major issue
Have you given these tools a try? 🚀✨
#FrontendBeer #stylex #pandacss #cssmodules #cssinjs #styled (c) Frontend Beerg
I've been working with styled components for a long time, but with the advent of RSC, I started to lean towards CSS-modules (hello, performance boost and proper use of RCS)
CSS-modules are a fantastic solution, but the lack of quality "typing" for classes, CSS variables, etc., requires writing a substantial amount of infrastructure code, especially when building a design system
Recently, I stumbled upon Panda CSS & StyleX. These tools seem like an excellent blend of CSS-in-JS and CSS-modules. You harness the full power of JS/TS, and the result? Clean atomic CSS. Of course, dynamic styles raise some questions, but it's not a major issue
Have you given these tools a try? 🚀✨
#FrontendBeer #stylex #pandacss #cssmodules #cssinjs #styled (c) Frontend Beerg
👍1