JSFiddle - React, Tailwind, and code Playground
HTML
<p>
The quick brown fox jumps over the lazy dog.<br>
いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす<br>
</p>
CSS
body {
max-width: 24em;
}
p {
--outer-block-angle: 6deg;
--outer-inline-angle: 22deg;
--cone-angle: calc(90deg - var(--outer-block-angle) - var(--outer-inline-angle));
--cone-top-left-color: #bde;
--cone-top-right-color: #cae;
--cone-bottom-right-color: #ecc;
--cone-bottom-left-color: #ffb;
margin: 0;
padding: 2em 3em;
background:
conic-gradient(from calc(90deg + var(--outer-block-angle)) at 0 0, var(--cone-top-left-color) var(--cone-angle), transparent var(--cone-angle)) no-repeat 0 0 / 50% 50%,
conic-gradient(from calc(180deg + var(--outer-inline-angle)) at 100% 0, var(--cone-top-right-color) var(--cone-angle), transparent var(--cone-angle)) no-repeat 100% 0 / 50% 50%,
conic-gradient(from calc(270deg + var(--outer-block-angle)) at 100% 100%, var(--cone-bottom-right-color) var(--cone-angle), transparent var(--cone-angle)) no-repeat 100% 100% / 50% 50%,
conic-gradient(from var(--outer-inline-angle) at 0 100%, var(--cone-bottom-left-color) var(--cone-angle), transparent var(--cone-angle)) no-repeat 0 100% / 50% 50%;
}