Text stroke for Sass
Text stroke polyfill for Sass. You can see why it's better than solutions presented earlier.
CodePen with explanation how it work. Instead of text-shadow for all pixels, function returns only needed text-shadows.
This polyfill applies the stroke to the outside of the text compared to native
-webkit-text-stroke which applies it to the inside,
so this polyfill may still be interesting for you even after
-webkit-text-stroke has become supported by all browsers.
$ yarn add --dev sass-text-stroke # or for npm $ npm install --save-dev sass-text-stroke
// For eyeglass import:;// ...or for webpack import:;;;;h1pspan
Size in pixels (without units).
Any CSS color.
Corrects rounding and reduces text-shadows. For better understanding see this CodePen.