![]() ![]() This can be a very useful helper and simplifying code. However, if you are using SASS you can declare a variable $blue and assign a value to it of #336699, when you feel like changing it, you just need update that variable definition, and anywhere the $blue value was used, it will be updated.įunctions and mix-ins: In programming languages you can define code to take one value and manipulate it somehow to achieve some other value – whether it be calculations, string concatenation, or any other manipulation. ![]() If you then wanted to change that blue to another color to revise the design to a hex value of #4f92a3, you would need to replace that first hex value anywhere you used it in your CSS. Changes applied to those variables will globally effect your SASS.įor example if you want to use a color in your projects, let’s say blue, with a hex value of #336699 and you used it through out your stylesheet. Use of variables: Because SASS is processed and then rendered into a simple CSS file you can declare variables that are easier to remember than other values. Below are a couple reasons I recommend you also take some time to work it into your process. It has been a significant tool in helping us speed up development time and keep our style sheets clean and more easy to maintain. At Mindutopia we’ve been using Sass as our preprocessor of choice for quite a while now, originally with the Compass Framework and more recently with lib sass and CodeKit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |