Register to get access to free programming courses with interactive exercises

Introduction SASS: Programming

This course on SASS programming is a direct continuation of the CSS: SASS. The course may seem quite complicated for those who are just starting their way in the world of development, because in this course we will first encounter the concept of functions, arguments, loops, conditional constructions. We will learn how to work with numbers and strings. We will learn about the existence of specific data types, such as boolean values.

Programming in SASS not only allows us to avoid code repetition or make it more structured. It opens up new possibilities for us to generate classes, to create styles depending on the settings.

A good example is having two color schemes on a project. With SASS, we can freely separate the styles for the light and dark theme, and plug/compile them as needed.

By the end of the course, you will have learned how to work with functions and that mixins are also functions. You will be able to generate similar classes with a single function. Agree that it's much nicer to generate classes like mt-5, mt-10 and so on with a few lines of code, without having to constantly copy and include the right styles with mixins, as we did in the previous course.

If any topics seem difficult to you, don't worry. You can always return to this course. The following course can also help you Introduction to Programming where you can find related topics.

Practice

Many of the lessons in this course will have practice. Try not to just do the assignment, but after you successfully pass, also experiment with the code and features you've learned.

CodePen

Another way to apply the skills you learned from the course is to use the CodePen service. You can create your own pen and in the CSS settings specify the use of the SASS preprocessor.


Hexlet Experts

Are there any more questions? Ask them in the Discussion section.

The Hexlet support team or other students will answer you.

About Hexlet learning process

For full access to the course you need a professional subscription.

A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.

Get access
130
courses
1000
exercises
2000+
hours of theory
3200
tests

Sign up

Programming courses for beginners and experienced developers. Start training for free

  • 130 courses, 2000+ hours of theory
  • 1000 practical tasks in a browser
  • 360 000 students
By sending this form, you agree to our Personal Policy and Service Conditions

Our graduates work in companies:

<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.bookmate">Bookmate</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.healthsamurai">Healthsamurai</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.dualboot">Dualboot</span>
<span class="translation_missing" title="translation missing: en.web.courses.lessons.registration.abbyy">Abbyy</span>
Suggested learning programs

From a novice to a developer. Get a job or your money back!

Layout Designer icon
Profession
New Under development beginner
Layout with the latest CSS standards
start anytime 5 months

Use Hexlet to the fullest extent!

  • Ask questions about the lesson
  • Test your knowledge in quizzes
  • Practice in your browser
  • Track your progress

Sign up or sign in

By sending this form, you agree to our Personal Policy and Service Conditions
Toto Image

Ask questions if you want to discuss a theory or an exercise. Hexlet Support Team and experienced community members can help find answers and solve a problem.