npm.io
0.0.23 • Published 5 years ago

preferences-web-extension

Licence
MIT
Version
0.0.23
Deps
1
Size
524 kB
Vulns
0
Weekly
0

Preference Web Component

This is a preferences web component which can be integrated into any website.

Installation

npm i preferences-web-extension

Use the package manager npm to install web component.

Getting Started

Usage

<preference-view env-config='{"apiHost":"http://localhost:4000","apiKey":"apikey"}' 
    access-token="token" hr-id="389755"></preference-view>

To customize colors, define the following CSS variables in your application:

  • --pref-app-color-darkBlueGreen
  • --pref-app-color-darkGreen
  • --pref-app-color-midGreen
  • --pref-app-color-blackGrey
  • --pref-app-color-lightGrey
  • --pref-app-color-iOsSystemTintsSystemGreenLight