
The Bryant Blog · The new CSS attr() functionI'm a web developer by trade and I'm extremely passionate about CSS. The last few years have been truly exciting and I can't wait to share the new attr() function syntax with you!
Because someone just hearted a 5 year old @codepen demo https://codepen.io/thebabydino/pen/GRooBJm?editors=0100 I made using a #Sass function + looping to generate a #CSS : we don't need *any* Sass for this anymore!
We can now do it with
background:
linear-gradient(in hsl longer hue 90deg,
hsl(0, 95%, 65%) 0 0)