<div style="--conic-gradient: conic-gradient(#f06, gold)"></div>
<div style="--conic-gradient:conic-gradient(at 50% 50%, #f06, gold)"></div>
<div style="--conic-gradient:conic-gradient(from 0deg, #f06, gold)"></div>
<div style="--conic-gradient:conic-gradient(from 0deg at center, #f06, gold)"></div>
<div style="--conic-gradient:conic-gradient(#f06 0%, gold 100%)"></div>
<div style="--conic-gradient:conic-gradient(#f06 0deg, gold 1turn)"></div>
<div style="--conic-gradient:conic-gradient(#f06 -50%, gold 150%)"></div>
<div style="--conic-gradient:conic-gradient(#f06 -180deg, gold 540deg)"></div>
<div style="--conic-gradient:conic-gradient(from 45deg, #f06, gold, #f06)"></div>
<div style="--conic-gradient: conic-gradient(hsl(0,0%,87.5%), white 45deg, black 225deg, hsl(0,0%,87.5%))"></div>
<div style="--conic-gradient: conic-gradient(#f06 45deg, gold 225deg, #f06 405deg)"></div>
<div style="--conic-gradient: conic-gradient(from 45deg,
#561a16 25%, #6a201b 0% 50%, #a7332b 0% 75%, #d45d55 0%)"></div>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
min-height: 100vh;
font-family: "Exo", Arial, sans-serif;
background-color: #222;
color: #fff;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 36px 10px;
padding: 10px 10px 36px;
font-size: 1.5rem;
}
:root {
--conic-gradient: conic-gradient(#f06, gold);
}
div {
min-height: 30vh;
border-radius: 5px;
box-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
background-image: var(--conic-gradient);
position: relative;
}
div::after {
content: attr(style);
position: absolute;
top: calc(100% + 5px);
left: 5px;
right: 5px;
font-size: 12px;
text-align: center;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.