An easy way to theme your components using css modules and js css objects thanks to aphrodite. Also works with asynchronously loaded styles!
themeit is a tool that makes it easy to create and use different themes for react components while using CSS Modules or JS style objects. It is built with code splitting in mind, allowing you to load only the themes you need at a time. It also supports the use of JS style objects for themes, which are automatically processed with aphrodite.
To install themeit, follow these steps:
npm install themeit or yarn add themeitimport themeit from 'themeit'themeit({...})themeit is a powerful tool for creating and using themes for react components. It supports both CSS Modules and JS style objects for defining themes, and provides features like code splitting and base styles. It also allows for easy styling of nested components and provides options for customizing the theming process. With the additional features like automatic storybook stories generation, themeit simplifies the process of theming react components and enhances code organization and reusability.