lundi 17 septembre 2018

How to set primary and secondary colors in Material Design for Web?

Details

I went looking into Material Design for Web and landed to using CDN (hosted CSS and JavaScript libraries):

  • https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css
  • https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js

This is by virtue from their getting started docs page in [1]. Similarly, Material Design has this lighter library which you could easily customize the theme colors. It can be done through a custom CSS theme builder [2].

So again back to my question, how is it possible to set primary and secondary colors in Material Design for Web using the CDN?

References

  1. Getting started, Material Design for Web - material.io/...
  2. Custom CSS theme builder, Material Design Lite - getmdl.io/...



Aucun commentaire:

Enregistrer un commentaire