JSFiddle - React, Tailwind, and code Playground

by kordarei

HTML

<div class="marker">
  <div class="marker-content">
    asd
  </div>
</div>

SCSS

.marker {
  background: blue;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 200;
  .marker-content {
    border-radius: 50%;
    background: white;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  &::before {
    z-index: -1;
    content: "";
    position: absolute;
    top: 25px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 35px solid blue;
  }
}