If you know me, you definitely know that I can't resist playing with CSS pens. An hour ago, I saw this post by @nazaneyn where she attempts to create a button with a rainbow border. Here is my take on that π
Although I like @t_afif's first solution, I would prefer a solution where we don't need any extra elements. Fortunately, conic-gradients and CSS masks can help.
I ended up using hue-rotate() to rotate the gradient π₯