JSFiddle - React, Tailwind, and code Playground

by Bhesh Gurung

HTML

<span class="post-category">category1</span>
<span class="post-category">category2</span>
<span class="post-category">category3</span>
<span class="post-category">category4</span>
<span class="post-category">category5</span>

CSS

.html {
    color: #444;
    font-family: 'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size: 13px;
    line-height: 1.3em;
}

.post-category {
    background: #0067B0;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    color: #eeeeee;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 2px 2px 2px 0;
    min-width: 36px;
    padding: 4px 8px !important;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease 0s;
    white-space: nowrap;
}