JSFiddle - React, Tailwind, and code Playground
by mgiuffrida
HTML
<script>Polymer = {dom: 'shadow'};</script>
<base href="https://polygit.org/polymer+:v1.6.1/*+:master/components/">
<link rel="import" href="polymer/polymer.html">
<dom-module id="x-foo">
<template>
<style>
:host * {
--some-color: red;
color: var(--some-color);
}
</style>
<div>red</div>
</template>
</dom-module>
<x-foo></x-foo>
JavaScript
Polymer({is: 'x-foo'});