Replies: 2 comments 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
-
|
Update: the new color object format lets you share alphas across new colors! And with some upcoming improvements (#530), it’ll get even more powerful |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
culorijslibrary can easily handle alpha values, wondering if there's a way we can attach an alpha percentage to a color and let theculorijslibrary handle itsomething like this:
and then let the
normalizeColorValuemethod that usesculorijsattach this for you?Beta Was this translation helpful? Give feedback.
All reactions