Vidhya Krishnamoorthy

Designing for Every Direction: Logical CSS for Global, Adaptive, and Effortlessly Reversible UIs

Your `margin-left` is a bug waiting to happen. Learn how a mental model shift to logical CSS creates truly global and adaptive user interfaces.

Designing for Every Direction: Logical CSS for Global, Adaptive, and Effortlessly Reversible UIs
#1about 2 minutes

Why physical CSS properties fail in global UIs

Physical properties like 'left' and 'border-right' break layouts in right-to-left languages, requiring brittle overrides.

#2about 4 minutes

Understanding the inline and block axis model

Logical properties replace physical directions with flow-relative 'inline' and 'block' axes that adapt automatically to any writing mode.

#3about 3 minutes

Building reusable components for any orientation

Design system components written with logical properties work in both horizontal and vertical layouts without duplicated CSS or overrides.

#4about 5 minutes

Writing cleaner, self-documenting, and future-proof CSS

Logical properties improve code clarity with semantic intent, offer shorthands like 'inset', and align with modern web platform features.

#5about 7 minutes

How to safely audit and migrate to logical properties

A systematic process for migration involves asking key questions, identifying exceptions like viewport-based positioning, and documenting decisions.

#6about 3 minutes

Locally testing for different writing modes and directions

Verify your implementation without special devices by using browser dev tools to toggle 'dir=rtl' or apply 'writing-mode' properties.

#7about 3 minutes

Reference guide for logical properties and UI patterns

A cheat sheet of common physical-to-logical property mappings and examples of how they apply to UI components like sidebars, cards, and icons.

#8about 4 minutes

Understanding browser support and creating an adoption plan

Logical properties have excellent modern browser support, and a phased adoption plan ensures a smooth transition without breaking existing layouts.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles

From learning to earning

Jobs that call for the skills explored in this talk.