[feature-request]: Add rounded-device or similar where device resolves to device corner radius
#262
Closed
IAlphaOmegaI
started this conversation in
Ideas
Replies: 1 comment
-
|
Hi, I'm not really sure if we want to put it into the uniwind core right now. But since our API is really flexible you can add it by yourself! @utility rounded-device {
border-radius: var(--device-radius);
}Uniwind.updateCSSVariables({
"--device-radius": ScreenCornerRadius
})Let me know if this worked for you |
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.
-
Similar to
pb-safeand other device dependent apis, arounded-devicewould apply a corner-radius of the givens device screen radius.A library that does this is: https://github.com/mrousavy/react-native-screen-corner-radius but this should be built into the styling system.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions