August 12th, 2024 × #css#components#styling
CSS Components: Tailwind, Panda, Scoped, Modules, Classes, Variables, CSS-in-JS and Sprinkles!
Scott and Wes discuss different approaches to authoring component-scoped CSS, including class-based systems, BEM, CSS modules, utility classes, CSS-in-JS, and more.
![Wes Bos](https://github.com/wesbos.png)
Wes Bos Host
![Scott Tolinski](https://github.com/stolinski.png)
Scott Tolinski Host
In this episode of Syntax, Wes and Scott talk about CSS components, including class-based components, CSS modules, scoped CSS, utility CSS, and CSS-in-JS strategies. They share their thoughts, what differentiates these approaches, and why you may (or may not) want to use them.
Show Notes
- 00:00 - Welcome to Syntax!
- 01:30 - Brought to you by Sentry.io.
- 02:11 - What makes a good CSS component system?
- 07:54 - Component vs part of a component
- 13:26 - CSS Modules
- 15:56 - Scoped CSS
- @scope - (82% support!) ff behind flag
- 21:07 - How is Panda different from styled components?
- 00:00 - Utility CSS
- 31:08 - Utility Sprinkles
- 34:13 - CSS variables
Hit us up on Socials!
Syntax: X Instagram Tiktok LinkedIn Threads
Wes: X Instagram Tiktok LinkedIn Threads