Text stroke works with .text-stroke-{color}
class. .text-stroke-{width}
is optional and default text-stroke-width is 2px with .text-stroke-{color}
.
Note:
To make hollow text use .text-fill-transparent
class
Set the border of text using shorthand class .text-stroke-{width}
.
Property | Class |
-webkit-text-stroke-width: 4px
|
.text-stroke-4 |
-webkit-text-stroke-width: 3px
|
.text-stroke-3 |
-webkit-text-stroke-width: 2px
|
.text-stroke-2 |
-webkit-text-stroke-width: 1px
|
.text-stroke-1 |
-webkit-text-stroke-width: 0px
|
.text-stroke-0 |
Set the stroke color of text using shorthand class .text-stroke-{color}
.
Set the stroke color of text using shorthand class .text-stroke-{color}
.