Styling SVGs
Change SVG colors the easy way with currentColor
currentColor svg.icon {
color: var(--color-whisper);
}
svg {
color: var(--color-east-side);
}
a svg {
color: var(--color-purple-mountains-majesty);
}Gutenberg block SVGs (i.e., the icons in the WordPress dashboard)
.gutenberg-icon {
color: var(--color-white);
}Styling commonly used SVGs
The plus-sign inside of the circle used in sub-menu toggles. Specifically, the SVG containing the line path that disappears on toggle/click.
Last updated