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.
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.
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.
The Hexlet support team or other students will answer you.
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.
Programming courses for beginners and experienced developers. Start training for free
Our graduates work in companies:
Sign up or sign in
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.