@liquefy/cascade.ui.material
v2.0.0
Published
A Material Design theme for Cascade's themed widgets, built on mdui 2 web components - its colors made from any one you pick.
Maintainers
Readme
cascade.ui.material
A Material Design theme for Cascade's themed widgets (see @liquefy/cascade.ui), built on mdui 2 web components.
npm install @liquefy/cascade.ui.material @liquefy/cascade.ui @liquefy/cascade.dom @liquefy/cascade.component @liquefy/cascade.reactiveimport { CompoundServiceLocator } from "@liquefy/cascade.component";
import { DOMServiceLocator } from "@liquefy/cascade.dom";
import { materialTheme } from "@liquefy/cascade.ui.material";
const services = new CompoundServiceLocator(new DOMServiceLocator(), materialTheme);Importing the package registers the mdui components it uses, and imports mdui's stylesheet - so it needs a bundler that handles CSS imports (Vite and webpack both do). Link the Material Icons font in your page:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">Its colors are made from one you pick: Material's tonal palettes, computed
from the theme's base color (mdui's own variables, --mdui-color-*), so
changing it recolors every mdui component - see cascade.ui's color schemes.
The default is Material's baseline purple.
