.rs-svg-container {
border-radius: 100%;
/* by default conic gradient was start from 90 deg */
/* so based on the roundSlider startAngle, modify this value */
background: conic-gradient(
from -90deg,
yellow 0%, yellow 20%,
blue 20%, blue 40%,
red 40%, red 60%,
green 60%, green 80%,
brown 80%, brown 100%
);
}
.rs-svg-container:after {
content: " ";
display: block;
background: white;
position: absolute;
top: 0;
border-radius: 100%;
height: calc(100% - 20px); /* here 20 is the slider's (width * 2) */
width: calc(100% - 20px);
transform: translate(10px, 10px); /* here 10 is the slider's (width) */
}