GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - npolar/mdc: Material Design Components

BranchesTags
Open more actions menu

Latest commit

 

History

120 Commits
120 Commits

Folders and files

NameName
Last commit message
Last commit date
asset
asset
 
 
bin
bin
 
 
src
src
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
license
license
 
 
now.json
now.json
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 
rollup.config.js
rollup.config.js
 
 
tpl-export-scss
tpl-export-scss
 
 

Repository files navigation

@npolar/mdc – material design components

@npolar/mdc is a collection ECMAScript2019 custom elements, built with LitElement and lit-html on top of:

  • Material Components for the web
  • Material Web Components

Develop

$ git clone [email protected]:npolar/mdc.git && cd mdc
$ yarn
$ yarn dev

Live-server: http://localhost:7777

Quality assurrance

ES2019-compliance is enforced using ESLint. See .eslintrc

Build Status

yarn eslint

Build

yarn build

Install

$ cd ~/my-project
$ yarn add https://github.com/npolar/mdc
$ cd node_modules/@npolar/mdc && yarn && cd -

Use

Colors

<style>
  :root {
    --mdc-theme-primary: #000;
    --mdc-theme-secondary: rgb(18, 79, 120);
    --mdc-theme-on-primary: #fff;
    --mdc-theme-on-secondary: #66bb6a;
    --mdc-theme-error: #b00020;
  }
</style>

See mdc-theme documentation for further customisations.

Fonts

Having 0 run-time dependencies means: bring your own@npolar/mdc's fonts.

Two fonts are included in the asset/font folder:

  • Inter
  • Material Icons

To self-host these fonts, first copy the css files and the font definitions into your project's build / web root (here dist in ~/my-project):

$ cd ~/my-project
$ mkdir -p dist/@npolar/mdc
$ cp -r node_modules/@npolar/mdc/asset/* dist/@npolar/mdc/

Then, add links to the font stylesheets in your <head> element:

<link rel="stylesheet" href="/@npolar/mdc/css/style/material-icons.css" />
<link rel="stylesheet" href="/@npolar/mdc/css/style/typography.css" />

About

Material Design Components

mdc.npolar.now.sh/

Topics

ecmascriptecmascript-2019lit-elementlit-htmlmaterial-designweb-components

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

4 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.