# Migrating Right-to-Left CSS Generation from Sass to RTLCSS

DevFeed: [Migrating Right-to-Left CSS Generation from Sass to RTLCSS](<https://devfeed.tech/articles/css-done-right-post-rtlcss-28070.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/css-done-right-post-rtlcss/>)

Author: Christoph Reinartz Follow

Published: 2017-07-07T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [migration](<https://devfeed.tech/topics/migration.md>), [PostCSS](<https://devfeed.tech/topics/postcss.md>), [Sass](<https://devfeed.tech/topics/sass.md>), [Automation](<https://devfeed.tech/topics/automation.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [css](<https://devfeed.tech/tags/css.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [migration](<https://devfeed.tech/tags/migration.md>), [sass](<https://devfeed.tech/tags/sass.md>)

## AI overview

The article explains trivago's migration of right-to-left CSS generation from Sass mixins and variables to RTLCSS post-processing. It describes the motivations, including reducing source complexity, avoiding manual authoring errors, and removing shared RTL configuration requirements, along with the move to a Node-based PostCSS build stack.

## Source excerpt

Our first [right-to-left platform](https://www.trivago.co.il/) was released in 2014. We had developed a solution to generate right-to-left CSS with Sass mixins and variables as we have [described](https://tech.trivago.com/2015/04/27/right-to-left/) in a blog article. We used this approach for nearly 3 years but recently migrated the right-to-left CSS generation from pre-processing to post-processing with [RTLCSS](http://rtlcss.com/). With this article I would like to share the reasons for the migration as well as our experiences and lessons learned.