#vanilla react
Type-safe Styling for React Component Packages: Vanilla Extract CSSWatch video: Type-safe Styling for React Component Packages: Vanilla Extract CSS
React Advanced 2023
19 min
Type-safe Styling for React Component Packages: Vanilla Extract CSS
Today's Talk introduces Vanilla Extract CSS, a type-safe styling method for React applications. It combines the benefits of scoped styling, zero runtime overhead, and a great developer experience. Vanilla Extract generates a static CSS file at build time, resulting in better performance. It is framework agnostic and offers a powerful toolkit, including Sprinkles for utility classes and CSS utils for calculations. With type safety and the ability to define themes and variants, Vanilla Extract makes it easy to create efficient, scalable, and maintainable design system component packages.
A thorough analysis of CSS-in-JS
React Finland 2021
24 min
A thorough analysis of CSS-in-JS
There are two mutually exclusive methods that CSS-in-JS libraries use to generate and ship styles to the browser. Both methods have benefits and downsides, so let’s analyze them in detail from the loading performance perspective.