Styling React For Reuse
summary
Argues that reusable React UI means accessible semantics (use button and anchor, not div onclick), documents theme and style APIs, and balances isolation: too coupled forced every page to carry unused modal, menu and icon-font dependencies while too pristine components failed with real site data. Describes a living style guide, moving from SVG icon fonts to SVG icon sprites, splitting components into component-per-repo npm packages, and supporting styling via a theme prop (glamorous/aphrodite examples). Lessons: document accepted props and isolate packaging, not internals.
AI-written summary · about
chapters (5)
- 0:00Introduction and goals
- 1:53Accessibility as a priority
- 7:46Lessons in isolation
- 16:19Theming and documentation
- 22:19Q&A and closing
related talks
16mStyling your React js components for reuse
29mHow to style in React and not lose friends
29mStyling Components for React UI Kits
25mBuilding Loveable UIs
44mWriting styles for React components
32mDesigning React Interfaces: A Journey Through Modern Styling Techniques
44mA Practical Guide for Crafting Resilient UI Components
38mWriting highly reusable React components
