To upgrade the material-components resources, run the init script:
./initialize.sh
To build the bundle:
npm install
npm run build
Material components's theme can be styles using the :root
selector:
:root {
--mdc-theme-primary: #0175C2;
}
Further style names can be found in the theming guide.
The components and their required HTML DOM structure in material-components-web
may change between major versions. When upgrading, we need to check and
potentially change the layout of the components.