Skip to content

Is RTL Supported? #121

Answered by mearashadowfax
omarhamid89 asked this question in Q&A
Jun 29, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hello @omarhamid89! Tailwind does provide RTL support. If your site has a single direction, you just need to add dir="rtl" to the <html> tag in the MainLayout.astro component: <html dir="rtl" lang={lang} class="scrollbar-hide lenis lenis-smooth scroll-pt-16">.

This will enable RTL support across your site. However, you might want to make some adjustments too, like swapping the border radius from the left to the right for certain sections, such as the pricing section, etc.


Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@omarhamid89
Comment options

@mearashadowfax
Comment options

Answer selected by mearashadowfax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants