Skip to content

Instantly share code, notes, and snippets.

@johnmccole
Last active October 5, 2021 10:56
Show Gist options
  • Save johnmccole/89ad4defe24ccc72aee3746587f32ab2 to your computer and use it in GitHub Desktop.
Save johnmccole/89ad4defe24ccc72aee3746587f32ab2 to your computer and use it in GitHub Desktop.
Target all header tags with a for loop in SASS
@for $index from 1 through 6 {
h#{$index} {
// style code
}
}
@for $index from 1 through 100 {
.vw-#{$index} {
width: #{$index}vw;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment