Class | Properties |
---|---|
.fill-current | fill: currentColor; |
Usage
Use .fill-current
to set the fill color of an SVG to the current text color.
Variants
By default, no responsive or hover-state variants are generated for fill utilities.
Responsive
To include responsive variants like .md:fill-current
, add "fill"
to the $responsive-variants
variable in your theme’s _variables.scss
file when recompiling your CSS:
$responsive-variants: (
// ...
"fill",
);
Hover-state
To include hover-state variants like .hover:fill-current
, add "fill"
to the $hover-variants
variable:
$hover-variants: (
// ...
"fill",
);