> Markdown version of [/videos/100677-designing-for-every-direction-logical-css-for-global-adaptive-and-effortlessly-reversible-uis?t=954](https://www.wearedevelopers.com/videos/100677-designing-for-every-direction-logical-css-for-global-adaptive-and-effortlessly-reversible-uis?t=954). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Designing for Every Direction: Logical CSS for Global, Adaptive, and Effortlessly Reversible UIs Over 75% of physical CSS properties are used purely out of habit, breaking layouts for global scripts. Learn to migrate to flow-based logical CSS without breaking JavaScript or animations. - **Speakers:** [Vidhya Krishnamoorthy](https://www.wearedevelopers.com/@vidhya-krishnamoorthy) - **Event:** Conference India 2026 - **Published:** November 26, 2026 - **Duration:** 30:16 - **URL:** https://www.wearedevelopers.com/videos/100677-designing-for-every-direction-logical-css-for-global-adaptive-and-effortlessly-reversible-uis - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/887854e808422edfa6158de4f40f705a/thumbnails/thumbnail.jpg?time=30000ms ## Summary Traditional physical CSS assumes left-to-right text and fixed screen dimensions, forcing teams to write fragile overrides and complex testing matrices for right-to-left (RTL) languages like Arabic or vertical scripts like Japanese. Vidhya Krishnamoorthy demonstrates how logical CSS solves this by shifting the developer's mental model from physical viewport edges (`top`, `right`, `bottom`, `left`) to content flow (`block` and `inline`). Using properties like `padding-inline`, `margin-block`, `max-inline-size`, and `inset`, components automatically adapt to HTML `dir` and `writing-mode` attributes without duplicating styles. This flow-based architecture also streamlines design systems and responsive layouts; for example, a single stepper component can seamlessly flip between horizontal and vertical variants just by toggling its writing mode, which dramatically simplifies local testing in browser DevTools. When migrating existing codebases—where over 75% of physical properties are used purely out of habit—Krishnamoorthy advises against blind find-and-replace. Engineers should use `grep` patterns to audit their styles and evaluate three criteria: reference point, external coupling, and design intent. While pure reading-flow styles can be migrated immediately (and enjoy 97% browser support), fixed viewport positioning, CSS keyframe animations, and coordinates coupled to JavaScript, Canvas, or SVG libraries should be explicitly documented and left as physical properties. **Keywords:** logical CSS properties, physical CSS migration, RTL language support, vertical writing modes, responsive UI architecture, design system components, flow-based layout design, inline and block dimensions, internationalization in CSS, CSS inset property, multi-directional web interfaces, cross-device adaptive layouts, browser DevTools local testing, HTML dir attribute ## Chapters 1. **Evolution of web interfaces and multi-directional layout needs** (00:02) — Web interfaces historically assumed left-to-right English layouts, requiring excessive CSS overrides to support modern devices and diverse global writing modes. 1. **Why physical CSS properties break across writing systems** (05:05) — Relying on physical CSS properties like left and right causes broken layouts in right-to-left and vertical languages unless replaced by a content-flow mental model. 1. **Comparing physical and logical CSS implementations in CodePen** (08:53) — Physical CSS requires repetitive directional rules and manual pixel math for different orientations, whereas logical properties adapt automatically from a single stylesheet. 1. **Shifting mental models to inline and block dimensions** (12:19) — Replacing physical screen dimensions with inline and block flow concepts allows browsers to automatically calculate start and end positions across any writing mode. 1. **Building adaptive design system components and local testing** (15:54) — Using logical CSS in design systems enables single-component variants for horizontal and vertical layouts while simplifying local testing via root HTML attributes. 1. **Evaluating codebases for safe logical CSS migration** (21:59) — Blindly replacing physical properties can break UIs, so engineers must audit whether positioning is tied to reading flow, fixed viewport designs, or third-party JavaScript libraries. 1. **Auditing patterns, browser support, and rollout strategies** (26:40) — With 97% browser support, teams can safely adopt logical CSS by using grep patterns to isolate exceptions, running regression tests, and incrementally updating properties. ## Related Moments - [Adopting logical properties for flexible layouts](https://www.wearedevelopers.com/videos/835-what-s-new-in-css-for-designers) (from "What's new in CSS for Designers?") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/42d7b191407a97170b9d975007c90bbd/thumbnails/thumbnail.jpg?time=130245ms - [Unifying design system components with logical CSS](https://www.wearedevelopers.com/videos/2026-designing-for-every-direction-logical-css-for-global-adaptive-and-effortlessly-reversible-uis) (from "Designing for Every Direction: Logical CSS for Global, Adaptive, and Effortlessly Reversible UIs") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/96f93a269566f69241d1787f397ff27c/thumbnails/thumbnail.jpg?time=159480ms - [Introduction to modern CSS capabilities for designers](https://www.wearedevelopers.com/videos/835-what-s-new-in-css-for-designers) (from "What's new in CSS for Designers?") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/42d7b191407a97170b9d975007c90bbd/thumbnails/thumbnail.jpg?time=130245ms - [Evaluating physical properties for safe logical CSS migration](https://www.wearedevelopers.com/videos/2026-designing-for-every-direction-logical-css-for-global-adaptive-and-effortlessly-reversible-uis) (from "Designing for Every Direction: Logical CSS for Global, Adaptive, and Effortlessly Reversible UIs") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/96f93a269566f69241d1787f397ff27c/thumbnails/thumbnail.jpg?time=159480ms - [Limitations of physical CSS in global interfaces](https://www.wearedevelopers.com/videos/2026-designing-for-every-direction-logical-css-for-global-adaptive-and-effortlessly-reversible-uis) (from "Designing for Every Direction: Logical CSS for Global, Adaptive, and Effortlessly Reversible UIs") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/96f93a269566f69241d1787f397ff27c/thumbnails/thumbnail.jpg?time=159480ms - [Responsive layout challenges and user customization](https://www.wearedevelopers.com/videos/2144-developers-communities-in-san-francisco-wearedevelopers-live-from-corgi-cafe) (from "Developers Communities in San Francisco - WeAreDevelopers LIVE from Corgi Cafe") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/93ad7c226ac352800568891ed3be3408/thumbnails/thumbnail.jpg?time=260031ms ## Related Articles - [Declarative Design and a fresh take on collaboration with developers](https://www.wearedevelopers.com/magazine/595-declarative-design-and-a-fresh-take-on-collaboration-with-developers) - [Dev Digest 133 - Back to Front](https://www.wearedevelopers.com/magazine/474-dev-digest-133-back-to-front) - [3 JavaScript-Free Techniques for Accordions, Dialogs, and Table of Contents](https://www.wearedevelopers.com/magazine/684-3-javascript-free-techniques-for-accordions-dialogs-and-table-of-contents) - [Tweak CSS Properties Live with slideVars](https://www.wearedevelopers.com/magazine/733-tweak-css-properties-live-with-slidevars) ## Related Jobs - [Principal Software Engineer, Front End Web UI Platform](https://www.wearedevelopers.com/jobs/ext/4835126-principal-software-engineer-front-end-web-ui-platform) at **GitHub** - [Senior Design Engineer](https://www.wearedevelopers.com/jobs/ext/4834331-senior-design-engineer) at **GitHub** - [Staff Frontend Design Engineer - AI & Systems Leader](https://www.wearedevelopers.com/jobs/ext/4629402-staff-frontend-design-engineer-ai-systems-leader) at **GitHub** - [Senior Web Software Architect, AI Experiences](https://www.wearedevelopers.com/jobs/ext/4523834-senior-web-software-architect-ai-experiences) at **TeamViewer Germany GmbH** - [Senior Software Engineer](https://www.wearedevelopers.com/jobs/ext/4786821-senior-software-engineer) at **GitHub** - [Software Development Engineer 1](https://www.wearedevelopers.com/jobs/48592-software-development-engineer-1) at **WEX**