React Components and How To Style Them
summary
Compares four concrete methods: inline styling for high-specificity overrides and passing background images as props, traditional CSS files and modules for collocation and global rules, Tailwind as a utility-first system that required two days to set up but can centralize a design system, and CSS-in-JS (Styled-Components, Emotion) which the presenter prefers because it supports pseudo-selectors, theming and Styled-Components polymorphism (render a styled div as a button) and scales for larger projects.
AI-written summary · about
chapters (4)
related talks
27mStyles & SASSy: Choosing the Right React Styling Solution
25mStyled and SASSy: Choosing the Right React Styling Solution
22mStyled Components
29mThe Lonely and Dark Road to Styling in React
34mCSS in React
23mThe road to styled components: CSS in component-based systems
30mDynamic Styling Systems with React
44mWriting styles for React components
