Skip to content

Files

Latest commit

 

History

History

material

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Material

To upgrade the material-components resources, run the init script:

./initialize.sh

To build the bundle:

npm install
npm run build

Using custom theme

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.

Major version upgrades

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.