Memphis Button
Fun colorful retro design with geometric shapes, bright colors, dots, and playful patterns
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/memphis-button.
<iframe src="/embed/memphis-button" sandbox="allow-scripts" loading="lazy" title="Memphis Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Memphis Button, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<button class="memphis-button"><span>Memphis</span></button>CSS
.memphis-button {
position: relative;
padding: 1rem 2rem;
border-radius: 0.5rem;
background: linear-gradient(135deg, #facc15, #ec4899, #22d3ee);
color: #000;
font-weight: 700;
border: 2px solid rgba(0,0,0,0.2);
cursor: pointer;
box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
transition: all 0.2s ease;
overflow: hidden;
}
.memphis-button::before {
content: '';
position: absolute;
inset: 0;
background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
background-size: 8px 8px;
pointer-events: none;
}
.memphis-button:hover { transform: scale(1.03) rotate(-1deg); box-shadow: 6px 6px 0 rgba(0,0,0,0.25); }
.memphis-button:active { transform: scale(0.98) rotate(0deg); box-shadow: 2px 2px 0 rgba(0,0,0,0.2); }Tailwind CSS
<button class="px-8 py-4 rounded-lg font-bold bg-gradient-to-br from-yellow-400 via-pink-500 to-cyan-400 text-black border-2 border-black/20 shadow-[4px_4px_0_rgba(0,0,0,0.2)] hover:scale-103 hover:-rotate-1 hover:shadow-[6px_6px_0_rgba(0,0,0,0.25)] active:scale-98 active:rotate-0 active:shadow-[2px_2px_0_rgba(0,0,0,0.2)] transition-all overflow-hidden relative before:absolute before:inset-0 before:bg-[radial-gradient(circle,rgba(255,255,255,0.15)_1px,transparent_1px)] before:bg-[length:8px_8px] before:pointer-events-none">
<span class="relative z-10">Memphis</span>
</button>React
function MemphisButton() {
return (
<motion.button
className="px-8 py-4 rounded-lg font-bold border-2 border-black/20 relative overflow-hidden"
style={{ background: 'linear-gradient(135deg, #facc15, #ec4899, #22d3ee)', color: '#000', boxShadow: '4px 4px 0 rgba(0,0,0,0.2)' }}
whileHover={{ scale: 1.03, rotate: -1, boxShadow: '6px 6px 0 rgba(0,0,0,0.25)' }}
whileTap={{ scale: 0.98, rotate: 0, boxShadow: '2px 2px 0 rgba(0,0,0,0.2)' }}
>
<span>Memphis</span>
<div style={{ position: 'absolute', inset: 0, backgroundImage: 'radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px)', backgroundSize: '8px 8px', pointerEvents: 'none' }} />
</motion.button>
);
}LWC — HTML template
<template><button class="memphis-button" onclick={handleClick}><span><slot>Memphis</slot></span></button></template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class MemphisButton extends LightningElement {
@api label = 'Memphis';
handleClick() { this.dispatchEvent(new CustomEvent('buttonclick', { bubbles: true, composed: true })); }
}LWC — CSS
.memphis-button { position: relative; padding: 1rem 2rem; border-radius: 0.5rem; background: linear-gradient(135deg, #facc15, #ec4899, #22d3ee); color: #000; font-weight: 700; border: 2px solid rgba(0,0,0,0.2); cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,0.2); transition: all 0.2s ease; overflow: hidden; }
.memphis-button::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px); background-size: 8px 8px; pointer-events: none; }
.memphis-button:hover { transform: scale(1.03) rotate(-1deg); box-shadow: 6px 6px 0 rgba(0,0,0,0.25); }
.memphis-button:active { transform: scale(0.98) rotate(0deg); box-shadow: 2px 2px 0 rgba(0,0,0,0.2); }LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<isExposed>true</isExposed>
<targets><target>lightning__AppPage</target><target>lightning__RecordPage</target><target>lightning__HomePage</target></targets>
</LightningComponentBundle>Where Memphis Button fits
- Marketing
- Events
- Creative Products
- Landing Pages
Interaction states & animations
- Hover
- Wiggle
- Pop
- Bounce
Topics
- #memphis
- #retro
- #colorful
- #geometric
- #playful
- #pattern
Accessibility notes
Ensure text contrast on bright gradient backgrounds meets WCAG AA standards.
Browser support
- All modern browsers