npm install --save-dev culurs
import culurs from 'culurs';
body {
background-color: var(--primary);
color: var(--secondary);
}
const paint = culurs(0.5, 0.7, 'primary', 'secondary');
setInterval(paint, 1000);
const colors = culurs(0.5, 0.3);
function paint() {
const [primary, secondary] = colors();
document.body.style.backgroundColor = primary;
document.body.style.color = secondary;
}
setInterval(paint, 1000);