SCSS(Sass) variable vs CSS function

Amrish Kushwaha
2 min readJun 21, 2021

CSS provides some functions such as calc , var etc. If you are using these functions in SCSS and if you are passing the SCSS variable, you will have to be a bit careful because how you use an SCSS variable in the SCSS function is a bit different than how you will use the SCSS variable in the CSS function.

SCSS variable in scss function

--

--

Amrish Kushwaha

Engineer & Writer | Writes about Tech, Productivity, Building Product and Success