RTL support #776
-
Is there any solution for adding RTL support? |
Beta Was this translation helpful? Give feedback.
Answered by
jonathantneal
Sep 14, 2021
Replies: 2 comments
-
You can use the standard CSS direction property in the globalCss, example: const globalStyles = globalCss({
body: {
direction: rtl;
// other css
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Stitches supports CSS Logical Properties, which work with LTR and RTL out of the box. const globalStyles = globalCss({
p: {
marginInlineStart: '1em', // padding-left when LTR, padding-right when RTL
},
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sinchang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stitches supports CSS Logical Properties, which work with LTR and RTL out of the box.
Further reading