How to Refactor SCSS Variables for Styled Components
Example syntax for variables, formulas, fonts and images
Published in
3 min readApr 20, 2020
In SCSS, you can use variables and formulas for expressing colors, font sizes, widths and spacing variants. However, when you switch from SCSS to styled components, the syntax isn’t valid anymore.