Replies: 1 comment 4 replies
-
As a workaround, I had to write a script that generates a bazillion opacities for my entire color palette, essentially rendering something like this
But does seem to clutter up my tokens a bunch. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have an entire color palette, and want to somehow take a color at 80% transparency, I was hoping to be able to do something like this:
but sadly this didn't work. the thought was that I could take a list of alpha values and attach them to the end of my hex values:
any thoughts on the best way to do this ... aside from duplicating my entire color palette 9 times?
I also recognized that the
culorijs
library can easily handle alpha values, wondering if there's a way we can attach an alpha percentage to a color and let theculorijs
library handle itsomething like this:
and then let the
normalizeColorValue
method that usesculorijs
attach this for you?Beta Was this translation helpful? Give feedback.
All reactions