A build-time CSS library for styling React components with CSS Modules extensions and auto-generated TypeScript types.
Stylin is a build-time CSS library for styling React components that extends CSS Modules with additional features like dynamic variables and auto-generated TypeScript types. It allows developers to import styled components directly from CSS/SCSS files using annotations, providing a performant and type-safe styling solution.
React developers who want a performant, type-safe styling solution that integrates with CSS Modules and works with Webpack or Vite. It's ideal for teams prioritizing build-time optimization and TypeScript support.
Stylin offers a faster alternative to runtime CSS-in-JS libraries by processing styles at build time, eliminating runtime overhead while providing auto-generated TypeScript types and seamless integration with existing CSS Modules workflows.
A built-time CSS library for styling React components.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Styles are processed at build time, eliminating performance penalties during runtime, as highlighted in benchmarks comparing it to Styled Components.
TypeScript types are automatically generated from style annotations, ensuring full type safety without manual definitions, as shown in the typing support GIF.
Supports both Webpack and Vite through dedicated loaders and plugins, making it adaptable to common React project setups, as detailed in the installation guides.
Extends CSS Modules with comment-based annotations for mapping styles to component properties, enabling dynamic variables and seamless component integration, as demonstrated in the MSA demo.
Requires installing and configuring specific loaders for Webpack or plugins for Vite, which adds setup complexity compared to drop-in CSS-in-JS libraries.
Currently only supports React, with Next.js and other frameworks listed as future plans, restricting its use in broader ecosystems.
The custom annotation syntax in CSS comments requires learning and can be less intuitive than standard CSS-in-JS approaches, potentially slowing initial adoption.
Stylin is an open-source alternative to the following products: