This library implements functions to use the adopted style of web components for multiple themes. It makes it possible to reuse a web component with multiple style guides (themes).
- Theme Management: Easily switch between different themes for your web components.
- Reusable Components: Create web components that can adapt to various style guides without modification.
- Dynamic Styling: Apply styles dynamically based on user preferences or application state.
To install the library, you can use npm or yarn:
npm install adopted-style-sheets
or
yarn add adopted-style-sheets
Here is a basic example of how to use the library: https://stackblitz.com/edit/vitejs-vite-podyif?file=src%2Fmain.ts,index.html
register, setTheme, setThemeStyle, setThemeTag,
We welcome contributions! Please read our CONTRIBUTING.md for guidelines on how to contribute to this project.
This project is licensed under the EUPL-v1.2-License. See the LICENSE file for details.
Special thanks to all the contributors who have helped improve this project.