Skip to content

add postcss rule to transform px to rem

Administrator requested to merge font-size-settings into main

Created by: 5h1rU

Overview

Currently, 94 .scss files on our codebase are using px as the unit of measurement. The px units do not scale according to the width of the browser window. Our focus is to convert all those px to their rem equivalent.

This approach uses a postCSS plugin that replaces those px to the equivalent rem value on compile time.

Example Before

Screen Shot 2021-02-02 at 1 39 12 PM

Example After

Screen Shot 2021-02-02 at 1 41 17 PM

Progress

  • Approved by a frontend engineer
  • Approved by a designer

Closes https://github.com/sourcegraph/sourcegraph/issues/16602

Merge request reports

Loading