JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q44456F
  • License MIT

Web Apps theme parameters specialized repository. Contains ready to use JS scripts and set of TS utils which are commonly used in projects.

Package Exports

  • twa-theme-params
  • twa-theme-params/dist/cjs.js
  • twa-theme-params/dist/esm.js
  • twa-theme-params/dist/umd.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (twa-theme-params) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Theme Params drawing

NPM Size License

Web Apps theme parameters contain rather important information to follow visual consistency of client application with native one. It provides developer information about which colors are currently used by native application and expects developer to use them.

Motivation

As long as it is important to create applications which look native, developers have to watch for current theme parameters and their changes.

Moreover, user will have better experience in case, when application is loading without "flashes", which usually occur due to on-flight color changes. That's why this library should provide theme information even when application script is still not loaded.

Installation

npm i twa-theme-params

or

yarn add twa-theme-params