@vdegenne/material-color-helpers
TypeScript icon, indicating that this package has built-in type declarations

1.9.0 • Public • Published

@vdegenne/material-color-helpers

  • Provides applyThemeString and applyTheme.
  • Provides themeFromSourceColor(through @vdegenne/material-color-helpers/material.js) which can be used to supply a theme object to applyTheme.

(You can also find themeFromSourceColor in official @material/material-color-utilities package which is installed and available as a peer dependency.)

The reason for providing themeFromSourceColor as an external object is because it doesn't work well with tree shaking for some reasons. This ensures minimal code when using applyThemeString or applyTheme alone.

Readme

Keywords

none

Package Sidebar

Install

npm i @vdegenne/material-color-helpers

Weekly Downloads

14

Version

1.9.0

License

MIT

Unpacked Size

50.7 kB

Total Files

35

Last publish

Collaborators

  • vdegenne