-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opacities Scale #863
Comments
I certainly have never really used opacity in this sort of way, and tend to avoid it due to z-index issues, but this makes sense to me. For context, the fallback to picking up |
Gotcha. You cool with me explicitly adding an |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
In Modulz, we're exposing Opacity Tokens, however:
theme-ui/css
andstyled-system/css
functions don't include anopacities
scale in its scales mappingDescribe the solution you'd like
I'd like to be able to use the CSS function with an
opacities
scale:Describe alternatives you've considered
The CSS function defaults to mapping to a scale named after the property. It's probably not intentional, @jxnblk would appreciate some context here.
Because of that, if we have a scale called
opacity
, it works:Additional context
Here's a Codesandbox Demo with my expectation and workaround mentioned above
The text was updated successfully, but these errors were encountered: