10 MODERN BUTTONS: CSS & COPY-PASTE

Alex Kiritschenko
Alex Kiritschenko
JAN 03, 2026 // 8 MIN READ
FIG 1.0: The evolution of UI interaction.
Contents

A button is never just a rectangle with some text in it. It's the main point of interaction, the call to action, the moment someone makes a decision.

Here are 10 modern (and retro-modern) button styles you can copy straight into your project.

01. THE STYLES

1. FLAT BUTTON (ARCHITECTURAL)

No rounded corners, no gradients. Pure, structural minimalism.

.btn-flat {
    background: #222;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0px; /* Sharp Edges */
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-flat:hover {
    background: #000;
    letter-spacing: 1px; /* Subtle Expansion */
}

2. GLASSMORPHISM (FROSTED)

Works best on rich, layered backgrounds. Shown here on a mesh gradient.

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

3. SOFT SHADOW (LEVITATING)

Soft UI taken to the extreme. The button seems to float. Refined and clean.

.btn-soft {
    background: #fff;
    color: #555;
    border: none;
    padding: 16px 36px;
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.5px;
}
.btn-soft:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    color: #000;
}

4. GHOST BUTTON (LUXE LINE)

Thin lines, a serif font and a touch of gold for maximum elegance.

.btn-ghost {
    background: transparent;
    color: #C5A059; /* Muted Gold */
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 14px 32px;
    cursor: pointer;
    transition: all 0.5s ease;
    font-size: 15px;
    border-radius: 0;
    font-family: serif; /* Elegant Touch */
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}
.btn-ghost::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #C5A059;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.8, 0, 0.2, 1);
}
.btn-ghost:hover {
    color: #fff;
    border-color: #C5A059;
}
.btn-ghost:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

5. GRADIENT GLOW (AI AURA)

A constantly pulsing, almost magical glow. High-end tech vibes.

.btn-glow {
    background: #000;
    color: #fff;
    border: 1px solid transparent;
    padding: 14px 34px;
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.5s ease;
    /* Gradient Border Trick */
    background-image: linear-gradient(#000, #000), 
                      linear-gradient(90deg, #333, #666, #333);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
}
.btn-glow::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    z-index: -1;
    background: linear-gradient(45deg, #FF0080, #7928CA, #FF0080);
    border-radius: 100px;
    background-size: 200%;
    filter: blur(12px);
    opacity: 0.4;
    transition: opacity 0.5s ease;
    animation: aura 3s linear infinite;
}
.btn-glow:hover::before {
    opacity: 0.8;
    filter: blur(16px);
}
.btn-glow:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(121, 40, 202, 0.4);
    border-color: transparent;
}
@keyframes aura {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

6. RETRO BRUTALIST

Loud, edgy, pure nostalgia.

READY TO GROW?

Let's review your setup and uncover untapped potential.

START YOUR PROJECT
.btn-retro {
    background: #f1c40f;
    color: black;
    border: 3px solid black;
    padding: 12px 24px;
    font-weight: bold;
    box-shadow: 5px 5px 0px black;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 16px;
    transition: all 0.1s;
}
.btn-retro:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px black;
}

7. FLOATING ACTION BUTTON (MODERN)

Not just a red circle anymore. Modern, with a squircle shape and a subtle animation.

.btn-fab {
    background: #fff;
    color: #000;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid #eee;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-fab:hover {
    transform: rotate(90deg);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #000;
}

8. MICRO-INTERACTION

Only reveals more detail when you interact with it. Elegant and space-saving.

.btn-micro {
    background: #000;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-micro::after {
    content: "→";
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    width: 0;
}
.btn-micro:hover {
    padding-right: 20px;
}
.btn-micro:hover::after {
    opacity: 1;
    transform: translateX(0);
    width: auto;
    margin-left: 5px;
}

9. PILL-SHAPED (COSMIC)

Vibrant and energetic. A gradient that moves.

.btn-pill {
    background: linear-gradient(90deg, #ec008c, #fc6767, #ec008c);
    background-size: 200% auto;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(236, 0, 140, 0.4);
}
.btn-pill:hover {
    background-position: right center;
    transform: scale(1.05);
}

10. NEU-BRUTALIST GLOSSY

A mix of retro brutalism and modern gloss.

.btn-glossy {
    background: linear-gradient(to bottom, #777, #333);
    color: white;
    border: 2px solid #000;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), 4px 4px 0 #000;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
}
.btn-glossy:active {
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.3), 2px 2px 0 #000;
    transform: translate(2px, 2px);
}

02. CONCLUSION

Pick the style that fits your brand. A glowing neon-style button looks out of place on a law firm's website, while a minimal outline button might get lost on a gaming site.

Alex Kiritschenko
ABOUT THE AUTHOR

I'm Alex Kiritschenko, a Senior SEO Consultant. I combine solid B2B experience with AI-driven strategies to maximize digital visibility. My focus is on using creativity and generative AI to deliver effective, scalable results.


HANDS-ON INSIGHTS ON SEO & AI

Strategies on AI tools and SEO. Straight from practice to your inbox.

Your subscription could not be saved. Please try again.
Almost there – please confirm the link in your email now.
STATUS: ACTIVE FOCUS: SEO & AI