Skip to content

Instantly share code, notes, and snippets.

@chasewoodford
Last active December 26, 2015 00:09
Show Gist options
  • Save chasewoodford/7062103 to your computer and use it in GitHub Desktop.
Save chasewoodford/7062103 to your computer and use it in GitHub Desktop.
Simple Sass @for loop to build color classes for gradient text. Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// ----
@for $i from 1 through 5 {
.color-#{($i)} {
color: (adjust-hue(#ff0000,($i*10)));
}
}
.color-1 {
color: #ff2b00;
}
.color-2 {
color: #ff5500;
}
.color-3 {
color: #ff8000;
}
.color-4 {
color: #ffaa00;
}
.color-5 {
color: #ffd500;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment