JSFiddle - React, Tailwind, and code Playground

HTML

<div class="b-example__outer">
    <div class="b-example"></div>
</div>

CSS

.b-example__outer {
    margin: 10px;
    background: -webkit-linear-gradient(-90deg, #666 0%, #444 10%, #333 20%, #444 60%, #666 100%);
    background: -moz-linear-gradient(-90deg, #666 0%, #444 10%, #333 20%, #444 60%, #666 100%);
    background: -ms-linear-gradient(-90deg, #666 0%, #444 10%, #333 20%, #444 60%, #666 100%);
    background: -o-linear-gradient(-90deg, #666 0%, #444 10%, #333 20%, #444 60%, #666 100%);
    background: linear-gradient(-90deg, #666 0%, #444 10%, #333 20%, #444 60%, #666 100%);
    
    }
.b-example {
    height: 200px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 0 0 2px #eee;
    -webkit-background-size: 10px 10px;
    -moz-background-size: 10px 10px;
    -ms-background-size: 40px 40px;
    -o-background-size: 40px 40px;
    background-size: 40px 40px;
    background: -webkit-repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.1) 25%, transparent 25%, transparent 50%);
    background: -moz-repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.1) 25%, transparent 25%, transparent 50%);
    background: -ms-repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.1) 25%, transparent 25%, transparent 50%);
    background: -o-repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.1) 25%, transparent 25%, transparent 50%);
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.1) 25%, transparent 25%, transparent 50%);
    }

JavaScript

0