One thing you can do when there is no documentation is to search for other projects that use the code you would like to use. paper-tabs , for example, uses paper-styles . You can see an example of importing paper-styles/color.html in paper-tabs.html . The value --paper-yellow-a100 used in paper-tabs.html . The following is an example of using various CSS ( var ) and mixins ( @apply ) @apply defined in paper-styles to apply style to the main document.
<!DOCTYPE html> <html> <head> <title>paper-styles Example</title> <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script> <link rel="import" href="bower_components/polymer/polymer.html" /> <link rel="import" href="bower_components/paper-styles/paper-styles.html" /> <style is="custom-style"> .shadow { @apply(--shadow-elevation-16dp); } section { background-color: var(--google-blue-700); } p { @apply(--paper-font-display3); } </style> </head> <body> <section class="shadow"> <h1>Example</h1> <p> This is an example using <em>paper-styles</em>. </p> </section> </body> </html>
Click here to learn more about styling in Polymer 1.0.
Regarding your question about paper style experiments, the home page in the catalog section says:
Custom elements created by the Polymer team are ready to use in your applications.
However, in various places on the site, including styling , experimental features are mentioned.
custom properties included with Polymer include experimental extension
Using @apply will be considered experimental at this time.
The Polymer website has an Experimental Features and Elements page that you can look at for more information.
source share