adopted-style-sheets
v1.1.6
Published
This library implements functions to use the adopted style of web components for multiple themes.
Downloads
6,135
Maintainers
Readme
Adopted Style Sheets
Overview
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).
Features
- 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.
Installation
To install the library, you can use npm or yarn:
npm install adopted-style-sheets
or
yarn add adopted-style-sheets
Usage
Here is a basic example of how to use the library: https://stackblitz.com/edit/vitejs-vite-podyif?file=src%2Fmain.ts,index.html
API
register, setTheme, setThemeStyle, setThemeTag,
Contributing
We welcome contributions! Please read our CONTRIBUTING.md for guidelines on how to contribute to this project.
License
This project is licensed under the EUPL-v1.2-License. See the LICENSE file for details.
Acknowledgements
Special thanks to all the contributors who have helped improve this project.