Skip to content

Instantly share code, notes, and snippets.

@arulprabakaran
Created June 2, 2022 13:25
Show Gist options
  • Save arulprabakaran/17406be15d34a4eb0f02ae2b6c6e7862 to your computer and use it in GitHub Desktop.
Save arulprabakaran/17406be15d34a4eb0f02ae2b6c6e7862 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@mixin stroke($width, $color) {
$shadow: ();
@for $i from -$width through $width {
$shadow: append($shadow,#{$width}px #{$i}px $color, comma);
$shadow: append($shadow,#{-$width}px #{$i}px $color, comma);
$shadow: append($shadow,#{$i}px #{$width}px $color, comma);
$shadow: append($shadow,#{$i}px #{-$width}px $color, comma);
}
text-shadow: $shadow;
}
.stroke {
@include stroke(3, var(--brand-black));
}
.stroke {
text-shadow: 3px -3px var(--brand-black), -3px -3px var(--brand-black), -3px 3px var(--brand-black), -3px -3px var(--brand-black), 3px -2px var(--brand-black), -3px -2px var(--brand-black), -2px 3px var(--brand-black), -2px -3px var(--brand-black), 3px -1px var(--brand-black), -3px -1px var(--brand-black), -1px 3px var(--brand-black), -1px -3px var(--brand-black), 3px 0px var(--brand-black), -3px 0px var(--brand-black), 0px 3px var(--brand-black), 0px -3px var(--brand-black), 3px 1px var(--brand-black), -3px 1px var(--brand-black), 1px 3px var(--brand-black), 1px -3px var(--brand-black), 3px 2px var(--brand-black), -3px 2px var(--brand-black), 2px 3px var(--brand-black), 2px -3px var(--brand-black), 3px 3px var(--brand-black), -3px 3px var(--brand-black), 3px 3px var(--brand-black), 3px -3px var(--brand-black);
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment