JSFiddle - React, Tailwind, and code Playground

by tomaskafka

HTML

<p>
    This is how one of our trickier testing files look in photoshop:
</p>
<p>
    (we don't read gradient's scale and position so far, so it looks a bit different)
</p>

<p><img src="http://content.screencast.com/users/keff85/folders/Jing/media/bbd59d8a-38a4-4464-8d2c-4f3504546d5d/2012-05-17_1602.png" /></p>

<p>
    and this is how it was exported by CSS Hat:</p>

<p>
    <a class="button" href=""http://news.ycombinator.com/item?id=3986595>Hello to Hacker News!</a>
</p>

CSS

body {
    padding: 2em;
    font-family: sans-serif;
    text-align: center;
}

.button { 
    /* this was added manually */
    color: white;
    text-decoration: none;
    display: inline-block;
    padding: 1em;
    margin-top: 2em;
    
    /* this was generated by CSS Hat from shape's fill and layer styles */
    border-radius: 5px; /* from shape */
    -o-box-shadow:
        0px 2px 2px rgba(0,0,0,0.37) /* drop shadow */,
        inset 1px 1px 0px 0px rgba(255,255,255,0.5) /* inner shadow */,
        0px 0px 1px 0px rgba(22,113,177,0.86) /* outer glow */,
        inset 0px 0px 2px rgba(255,255,255,0.22) /* inner glow */;
    -moz-box-shadow:
        0px 2px 2px rgba(0,0,0,0.37) /* drop shadow */,
        inset 1px 1px 0px 0px rgba(255,255,255,0.5) /* inner shadow */,
        0px 0px 1px 0px rgba(22,113,177,0.86) /* outer glow */,
        inset 0px 0px 2px rgba(255,255,255,0.22) /* inner glow */;
    -webkit-box-shadow:
        0px 2px 2px rgba(0,0,0,0.37) /* drop shadow */,
        inset 1px 1px 0px 0px rgba(255,255,255,0.5) /* inner shadow */,
        0px 0px 1px 0px rgba(22,113,177,0.86) /* outer glow */,
        inset 0px 0px 2px rgba(255,255,255,0.22) /* inner glow */;
    box-shadow:
        0px 2px 2px rgba(0,0,0,0.37) /* drop shadow */,
        inset 1px 1px 0px 0px rgba(255,255,255,0.5) /* inner shadow */,
        0px 0px 1px 0px rgba(22,113,177,0.86) /* outer glow */,
        inset 0px 0px 2px rgba(255,255,255,0.22) /* inner glow */;
    border: 1px solid #136197 /* stroke */;
    background-color: #43a1df /* layer fill content */;
    background-image: -webkit-linear-gradient(90deg, #3b8bd3 0%, #79c1e9 100%) /* gradient fill */;
    background-image: -o-linear-gradient(90deg, #3b8bd3 0%, #79c1e9 100%) /* gradient fill */;
    background-image: -moz-linear-gradient(90deg, #3b8bd3 0%, #79c1e9 100%) /* gradient fill */;
    background-image: /* IE9 gradient support will be released soon */ /* gradient fill */;
    background-image:...