CSS Random Values API
Hello everyone, since random values cannot be generated in Pure CSS, I developed an API that allows you to generate and use random values in CSS without using JavaScript.
If you are interested and would like to further develop and customize this project, you can access it on GitHub.
Github Page;
https://github.com/mrna0/nextjs-random-css
API Page;
https://nextjs-random-css.vercel.app/api/number?range=1,255&count=3&name=color
Usage;
@import url(‘https://nextjs-random-css.vercel.app/api/number?range=1,255&count=3&name=color‘);
body {
background-color: rgba(var(–color-0), var(–color-1), var(–color-2));
}