adopted-style-sheets
TypeScript icon, indicating that this package has built-in type declarations

1.1.8 • Public • Published

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.

Package Sidebar

Install

npm i adopted-style-sheets

Weekly Downloads

2,914

Version

1.1.8

License

EUPL-1.2

Unpacked Size

76 kB

Total Files

8

Last publish

Collaborators

  • m.oppitz