JSFiddle - React, Tailwind, and code Playground

by Tony Realovich

HTML

<div class="price">
    Купить <span>90р.</span>
</div>

CSS

.price {
    position: relative;
    background: #3C3C3C;
    display: inline-block;
    line-height: 28px;
    padding-left: 10px;
    color: white;
    margin: 0 15px;
}

.price::before,
.price::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    top: 0;
}

.price::before {
    border-width: 14px 10px 14px 0;
    border-color: transparent #3c3c3c transparent transparent;
    left: -10px;
}

.price::after {
    border-width: 14px 0 14px 10px;
    border-color: transparent transparent transparent #000;
    right: -10px;
}

.price span {
    display: inline-block;
    background: #000;
    padding: 0 5px;
}