JSFiddle - React, Tailwind, and code Playground

by Mohit Vashishtha

HTML

<ul class="tags">
  <li>CSS</li>
  <li>HTML</li>
  <li>Mohit</li>
  <li>Vashishtha</li>
  <li>SharePoint</li>
 </ul>

CSS

.tags {
    margin: 0;
    padding: 0;
    right: 24px;
    bottom: -12px;
    list-style: none;
}

.tags li, .tags li {
    float: left;
    height: 24px;
    line-height: 24px;
    position: relative;
    font-size: 11px;
}

.tags li {
    margin: 2px 5px 2px 12px;
    padding: 0 10px 0 12px;
    background: #0078d7;
    color: #fff;
    text-decoration: none;
    -moz-border-radius-bottomright: 4px;
    -webkit-border-bottom-right-radius: 4px;
    border-bottom-right-radius: 4px;
    -moz-border-radius-topright: 4px;
    -webkit-border-top-right-radius: 4px;
    border-top-right-radius: 4px;
}

.tags li:before {
    content: "";
    float: left;
    position: absolute;
    top: 0;
    left: -12px;
    width: 0;
    height: 0;
    border-color: transparent #0078d7 transparent transparent;
    border-style: solid;
    border-width: 12px 12px 12px 0;
}

.tags li:after {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    float: left;
    width: 4px;
    height: 4px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    background: #fff;
    -moz-box-shadow: -1px -1px 2px #004977;
    -webkit-box-shadow: -1px -1px 2px #004977;
    box-shadow: -1px -1px 2px #004977;
}
.tags.ic li{
    background: #003399;
   
}
.tags.ic li:before{
    border-color: transparent #003399 transparent transparent;
}