You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wondered if there are plans to include font/space variants of the utopia.clamp() function?
Unless you are familiar with the system (or consult the website), there is no easy way to tell whether a space scale with 4 positive steps will generate a --space-3xl property or not. It's not terrible, but it's a mental overhead over copying the values from the website and seeing what tokens are available at one glance.
What I would hope to do is declare variables on the plugin level (similar to min/max width) and then tell the function which step in the scale I want to output. E.g.
It may be a bit repetitive over having the plugin generate all the tokens, but it is also more declarative/less magic-y and makes it easier to reason about the tokens you have available.
The text was updated successfully, but these errors were encountered:
I wondered if there are plans to include font/space variants of the utopia.clamp() function?
Unless you are familiar with the system (or consult the website), there is no easy way to tell whether a space scale with 4 positive steps will generate a --space-3xl property or not. It's not terrible, but it's a mental overhead over copying the values from the website and seeing what tokens are available at one glance.
What I would hope to do is declare variables on the plugin level (similar to min/max width) and then tell the function which step in the scale I want to output. E.g.
It may be a bit repetitive over having the plugin generate all the tokens, but it is also more declarative/less magic-y and makes it easier to reason about the tokens you have available.
The text was updated successfully, but these errors were encountered: