From the course: CSS Shorts

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Setting colors with Less and Sass

Setting colors with Less and Sass - CSS Tutorial

From the course: CSS Shorts

Setting colors with Less and Sass

- [Instructor] Hi, this is Chris Converse and in this episode, we'll be looking at using SASS and LESS to more efficiently apply colors to our CSS properties. Now we'll start with a project from an earlier episode, where we created a neon text effect in CSS. This technique required compounding multiple properties, meaning we had to repeat some property values a number of different times. In this episode, we'll define those values or colors as variables, once in a SASS file and another time in a LESS file. And then, we'll apply those variables within our CSS properties, giving us the ability to change the colors of the effect from one place. Now if you'd like to follow along, you can download the exercise files. However, you will need to be familiar with CSS Pre-Processing workflow, which includes using software to convert or process your files into CSS. Otherwise, you can simply watch the short tutorial and decide if this is a workflow that you'd like to explore later, by watching a…

Contents