currentColor in SVG

HTML

<div class="icon-wrapper">
  Let the bird be the same color as me
  <svg width="22px" height="22px" viewBox="0 0 1024 1024">
    <path class="icon" d=""></path>
  </svg>
</div>

CSS

.icon-wrapper {
  color: #1da102;
}

.icon-wrapper .icon {
  fill: currentColor;
}