A way of storing an array of values in a variable and accessing them through the `$var[2]` syntax. e.g. ``` sass $colors: red, blue, green; // or (red, blue, green) .red { color: $colors[2]; } ``` to output: ``` css .red { color: green; } ```
Activity
marcustisater commentedon Jul 16, 2016
I like the idea but what would be a good use case scenario for this? Why would you prefer creating an array over multipel variables.
thomasdigby commentedon Jul 16, 2016
Mainly for groups of related styles e.g. type setting. Perhaps a poor example, but something similar to this?
font-large()is a useful mixin as it collates each necessary part of the type style without having to declare each value individually.