Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for What is SASS?
Bhavesh Kasturi
Bhavesh Kasturi

Posted on

     

What is SASS?

Once you’re comfortable with CSS, the next natural step is to use a preprocessor. The biggest advantage is not having to repeat yourself. “Don’t Repeat Yourself” or "DRY" is a principle in software development aimed at reducing repetition of code, and using SASS we can have the advantage of keeping our CSS Dry.

What is CSS preprocessor?

"A CSS preprocessor is a program that lets you generate CSS from the preprocessor's own unique syntax." -MDN

Why use preprocessors?

  • Cleaner code using variables and nesting.
  • Ease of organizing and maintaining the code as we can separate files into modules.
  • Ability to implement logic and calculations in stylesheets.
  • Overall improvement in workflow which can save hours of development time!

What is SASS?

SASS (or Syntactically Awesome Style Sheets) is a tool known as a CSS preprocessor. SASS is a scripting language that provides us the capabilities which regular CSS doesn't have. Using SASS we can write more maintainable, readable and reusable code.

It gives us various capabilities such as:

  • Variables
  • Partials & Imports
  • Nesting
  • Functions
  • Mixins
  • Control directives
  • Inheritance

In other words SASS helps us write CSS and organize large stylesheets in more maintainable way.

Thanks for reading!

Top comments(6)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
devcoder profile image
devcoder
Front-End Web Developer
  • Location
    Connecticut
  • Joined

I love using SASS! Helps me keep more organized

CollapseExpand
 
duhbhavesh profile image
Bhavesh Kasturi
Frontend @ProfitWheel
  • Location
    Mumbai
  • Joined

Yess!

CollapseExpand
 
coswise profile image
Cos
I design stuff and I love solve problems // Making the web more interactive
  • Location
    London, UK
  • Work
    Manager of Design, Customer Experience
  • Joined

I like Sass, even if I prefer the SCSS syntax, it sucks that people stated to snub it a bit. Hoping to see more Sass around or at least more Sass features in CSS.

CollapseExpand
 
duhbhavesh profile image
Bhavesh Kasturi
Frontend @ProfitWheel
  • Location
    Mumbai
  • Joined

Hopefully 😅

CollapseExpand
 
louislow profile image
Louis Low
UI / Web / Graphic Designer & Frontend Developer

Mine! My precious... I love Sassy lady...

CollapseExpand
 
duhbhavesh profile image
Bhavesh Kasturi
Frontend @ProfitWheel
  • Location
    Mumbai
  • Joined

Hehe❤️

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Frontend @ProfitWheel
  • Location
    Mumbai
  • Joined

More fromBhavesh Kasturi

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp