How to use variables for shadows?

That is great Ryan! :tada:

For context, the existing method works if you don’t have a multi-layer token system. Such as one layer for your primary color Palette and one layer for your Semantic colors. When you use multiple layers, you never want to ‘hard code’ values like this on a semantic or theme token, but instead reference another more primitive token. Multi-layer systems are very popular, and (more or less) crucial if you have design systems with multiple themes, modes or brands.

But you are right that this ticket is pretty much done. What we are waiting for is variables with alpha included :slight_smile: Go and vote on it if you haven’t already:

1 Like