JSFiddle - React, Tailwind, and code Playground

by firegroove

HTML

<div class="stripes_1">
  <h2>Colored Stripes</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic sapiente asperiores minus animi nam temporibus cumque.</p>
</div>

CSS

.stripes_1 {
	margin-top:20px;
	margin-left:20px;
  height: 250px;
  width: 250px;
  background: linear-gradient(white,white), 
	repeating-linear-gradient(45deg, orange 0%, orange 10%, black 0%, black 20%);
  /* background-attachment: padding-box, border-box; */
  padding: 10px 10px;
  border-radius: 20px;
  background-origin: content-box, padding-box;
  background-clip: content-box, padding-box;
}

/* just for demo */

/* div {
  transition: all 1s;
} */
/* div:hover {
  height: 300px;
  width: 500px;
} */
p,h2{
	padding:20px;
}