JSFiddle - React, Tailwind, and code Playground

by IPWright83

HTML

<div class="legend-entry">
        <div class="key">
            <div class="indicator circle"></div>
        </div>
        <div class="label">Key</div>
</div>
<div class="legend-entry">
    <span>
        <div class="key">
            <div class="indicator line"></div>
        </div>
        <div class="label">Key</div>
    </span>
</div>
<div class="legend-entry">
    <span>
        <div class="key">
            <div class="indicator area"></div>
        </div>
        <div class="label">Key</div>
    </span>
</div>

<div class="arrow-down">
</div>

CSS

.key {
    width: 10px;
    min-width: 10px;
    margin-right: 20px;
    float: left;
}

.circle {
    background: red;
    border: thin solid red;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 3px;
    margin-left: 3px;
}

.area {
    background: red;
    border: thin solid red;
    width: 10px;
    height: 10px;
    border-top-left-radius: 50%;
    border-top-right-radius: 70%;
    margin-top: 3px;
    margin-left: 3px;
}

.line {
    background: red;
    border: 2px solid red;
    width: 10px;
    height: 1px;
    min-width: 10px;
    min-height: 1px;
    margin-top: 7px;
    margin-left: 3px;
}

.arrow-down {
  background: orange;
  width: 0; 
  height: 0; 
  border-left: 5px solid white;
  border-right: 5px solid white;
  border-top: 10px solid orange;
  transform: rotate(45deg);
  margin-left: 2px;
}