JSFiddle - React, Tailwind, and code Playground
by mgiuffrida
HTML
<script>Polymer = {dom: 'shadow', lazyRegister: true, useNativeCSSProperties: true}</script>
<base href="https://polygit.org/polymer+:v1.6.1/*+:master/components/">
<link rel="import" href="polymer/polymer.html">
<link rel="import" href="paper-checkbox/paper-checkbox.html">
<dom-module id="x-foo">
<template>
<style>
paper-checkbox {
--primary-text-color: red;
display: block;
}
</style>
<paper-checkbox>falls back to red</paper-checkbox>
<paper-checkbox checked>should also be red, but syntax is incorrect</paper-checkbox>
</template>
</dom-module>
<x-foo></x-foo>
JavaScript
Polymer({
is: 'x-foo'
});