Skip to content

RTL support #776

Answered by jonathantneal
sinchang asked this question in Ideas
Discussion options

You must be logged in to vote

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
  },
})

Further reading

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sinchang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants