25 CSS Hacks Every Developer Should Know

SVG icon color control

Problem: changing the color of inline SVGs with CSS.

Solution: use `currentColor`.

.icon {
  fill: currentColor;
}
.icon-container {
  color: #ff6347;
}