Aggarly Platform supports right-to-left (RTL) languages such as Arabic through semantic HTML attributes, logical CSS projects, and dedicated SCSS mixins. RTL behavior is handled at the system level.
dir="rtl" on the document root or a workspace member container.All layouts in the design system use logical projects instead of physical directions. This allows layouts to flip automatically between LTR and RTL.
.card {
padding-inline: 16px;
margin-inline-start: 8px;
inset-inline-end: 0;
}When conditional styling is unavoidable, the design system provides an explicit RTL mixin. This keeps RTL logic localized and readable.
@use "@/design-system/scss/mixins/rtl" as rtl;
.element {
margin-inline-start: 8px;
@include rtl.rtl {
margin-inline-start: 0;
margin-inline-end: 8px;
}
}Typography automatically switches to the Arabic font when dir="rtl" is present. This behavior is defined in global styles and does not require component-level overrides.
body {
font-family: tokens.$font-family-sans;
}
[dir="rtl"] body {
font-family: tokens.$font-family-arabic;
} left / right.