CSS svg 색상 지정

by JM note

HTML

<style>
svg {
  width:50px;
  background-color: yellow;
}
path { stroke: red; }
</style>

<svg viewBox="0 -0.5 5 5">
  <path stroke="blue" d="M0 0h5M0 2h5M0 4h5" />
</svg>