Border Curved Button #167

CSS border curved button

Adding these style CSS buttons to your website is easier than you think. Simply copy and paste the CSS code provided with each button design into your stylesheet

Preview Button Style

You can view the default style of buttons, the disabled state mode style of buttons, and the full-width block style of the button here. Some buttons style may not display in full width format

Button style

Disabled style

Full width block style

Button Source Code HTML and CSS

Click the button below to download the source code or edit it live.
To copy this click on the icon at the top right of the code box
Button HTML
<button class="btn-167">
    <span>Button 167</span>
</button>
Button CSS
.btn-167 {
    --curve_size: 10px;
    color: #030303;
    position: relative;
    isolation: isolate;
    place-content: center;
    padding: 10px 22px;
    font-size: 17px;
    border: 0;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    clip-path: polygon(
            /* Top-left */ 0% var(--curve_size), var(--curve_size) 0,
            /* top-right */ 100% 0, 100% calc(100% - var(--curve_size)),
            /* bottom-right 1 */ calc(100% - var(--curve_size)) 100%,
            /* bottom-right 2 */ 0 100%);
    transition: color 250ms;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-167::before {
    content: "";
    position: absolute;
    inset: 0;
}

.btn-167::before {
    background: radial-gradient(circle at center center, #56c571, #4db55f, #43a54d, #3a953b, #308529);
    z-index: -2;
}

.btn-167:hover::before {
    background-size: 100% 400%;
}

.btn-167:hover {
    color: #ffffff;
}

/*** disabled style ***/
.btn-167:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: #dcdcdc;
    box-shadow: none;
    text-shadow: none;
}

.btn-167:disabled::before {
    background: #dcdcdc;
}