JSFiddle - React, Tailwind, and code Playground
by Tenderfeel
HTML
<div class="content"></div>
<ul>
<li>List</li>
</ul>
<div class="border">
Border
</div>
<div class="mask">Mask</div>
CSS
div{
width:100px;
height:100px;
font-weight:bold;
font-size:30px;
}
.content {
background:red;
}
.content::before {
display:block;
width:50px;
height:50px;
content: -moz-linear-gradient(top, rgba(76,191,252,1) 0%, rgba(7,47,143,1) 100%);
content: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(76,191,252,1)), color-stop(100%,rgba(7,47,143,1)));
content: -webkit-linear-gradient(top, rgba(76,191,252,1) 0%,rgba(7,47,143,1) 100%);
content: -o-linear-gradient(top, rgba(76,191,252,1) 0%,rgba(7,47,143,1) 100%);
content: -ms-linear-gradient(top, rgba(76,191,252,1) 0%,rgba(7,47,143,1) 100%);
content: linear-gradient(to bottom, rgba(76,191,252,1) 0%,rgba(7,47,143,1) 100%);
}
li {
list-style:inside;
/*1em square*/
list-style-image:-webkit-radial-gradient(center, ellipse cover, rgba(30,87,153,1) 0%,rgba(89,148,202,1) 62%,rgba(95,154,207,0.7) 68%,rgba(125,185,232,0) 100%);
}
.border {
-webkit-border-image: -webkit-linear-gradient(left, rgba(157,213,58,1) 0%,rgba(161,213,79,1) 50%,rgba(128,194,23,1) 51%,rgba(124,188,10,1) 100%) 20 repeat;
}
.mask {
width:auto;
font-size:80px;
-webkit-mask-image: -webkit-radial-gradient(center, circle cover, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 100%);
-webkit-mask-position: center center;
-webkit-mask-size:10px 10px;
}