@vdegenne/material-color-helpers
v1.11.0
Published
- Provides `applyThemeString` and `applyTheme`. - Provides `themeFromSourceColor`(through `@vdegenne/material-color-helpers/material.js`) which can be used to supply a theme object to `applyTheme`.
Downloads
124
Readme
@vdegenne/material-color-helpers
- Provides
applyThemeString
andapplyTheme
. - Provides
themeFromSourceColor
(through@vdegenne/material-color-helpers/material.js
) which can be used to supply a theme object toapplyTheme
.
(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.