Common (global) styles for Material Design elements.
npm install @polymer/paper-styles


1. shadow.js: Material Design
elevation and shadow styles
1. typography.js:
Material Design font styles and sizes
1. demo-pages.js: generic styles
used in the PolymerElements demo pages
1. color.js:
a complete list of the colors defined in the Material Design palette
We recommend importing each of these individual files, and using the style mixins
available in each ones, rather than the aggregated paper-styles.html as a whole.
See: Documentation,
Demo.
npm install --save @polymer/paper-styles
`$3
`html
Headline
This is a lifted paper
`
$3
`js
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-styles/typography.js';
import {html} from '@polymer/polymer/lib/utils/html-tag.js';class SampleElement extends PolymerElement {
static get template() {
return html
;
}
}
customElements.define('sample-element', SampleElement);
`Contributing
If you want to send a PR to this element, here are
the instructions for running the tests and demo locally:$3
`sh
git clone https://github.com/PolymerElements/paper-styles
cd paper-styles
npm install
npm install -g polymer-cli
`$3
`sh
polymer serve --npm
open http://127.0.0.1:/demo/
`$3
`sh
polymer test --npm
``