Get the latest tech news
Rolling the dice with CSS random()
Random functions in programming languages are amazing.
It’s important to realize that setting a custom property to a CSS function isn’t like other programming languages where a variable stores a result. The first drop shadow also uses random() to select a hue with oklch() to add vibrant colors that are composited over a soft white glow with a hard-light blend mode. However, it’s important to note that there are ongoing discussions in the CSS Working Group about the specification, and several open issues remain about whether this approach best serves developers’ needs.
Or read this on Hacker News