What's SASS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What's SASS?

Has anyone heard of the new SASS technology? What is your real gain for web projects?

11th Jun 2017, 9:24 PM
Rodrigo Temóteo
Rodrigo Temóteo - avatar
4 Answers
+ 7
Sass is a scripting language that is interpreted into Cascading Style Sheets (CSS). That means at it's a CSS Preprocessors like a library you used to make you write less code (A preprocessor is a program that takes one type of data and converts it to another type of data), you can do exactly the same if you write in css or write in sass , beacuse at end sass just css script , but in sass you have the advantage of :1 Cleaner code with reusable pieces and variables 2 Saves you time 3 Easier to maintain code with snippets and libraries 4 Calculations and logic 5 More organized and easy to setup. but you need to know css before you know sass :) no the other way around for exemple : here is a code in css ~~~~~~~~~~~ #header { margin: 0; border: 1px solid red; } #header p { font-size: 12px; font-weight: bold; color: red; } #header a { text-decoration: none; } ~~~~~ and here is in sass ~~~~~~~~~~~ $colorRed: red #header margin: 0 border: 1px solid $colorRed p color: $colorRed font: size: 12px weight: bold a text-decoration: none ~~~~~~~~~~~ as you can see in sass you can declare variable $colorRed: but in css was just introduce in 2015 , this a one exemple of difference and benefit
11th Jun 2017, 9:46 PM
soulbog
soulbog - avatar
+ 3
you learn css . than you learn sass ( you cant learn sass if you dont know css) https://www.sololearn.com/Course/CSS/
11th Jun 2017, 11:17 PM
soulbog
soulbog - avatar
+ 2
so I know in CSS not a lot so should I learn sass or CSS or both?
11th Jun 2017, 10:59 PM
OriolesBaseball
OriolesBaseball - avatar
+ 2
Thank you soulbog! Your explanation was be awesome!
12th Jun 2017, 1:18 AM
Rodrigo Temóteo
Rodrigo Temóteo - avatar