Memphis

孟菲斯风格

C
72/100Fair
Rate this style

An 80s Italian design movement featuring bold geometric shapes, vivid contrasting colors, irregular forms, and playful patterns that break traditional design rules.

Memphis designMemphis Group80s designpostmodern designgeometric shapessquiggle patternsclashing colorsplayful uiEttore Sottsassretro popbold patterns
View Full Showcase →
Templates

Best For

Memphis design / Memphis Group / 80s design

Primary Move

Use vivid contrasting color combinations

Watch Out

Do NOT use monotone, low-saturation color schemes

AI Implementation

Copy the Hard Prompt first, then use the spec when needed

Use the Hard Prompt by default to generate UI. Use the Design Spec to understand, modify, and review the style. Use the Creative Brief for early exploration.

Hard Prompt

Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.

When to use

  • When AI should generate UI directly
  • When repeated outputs must stay consistent
  • When style drift is the main risk

How to use

  • Copy the full prompt
  • Append the concrete requirement
  • Review against forbidden rules and UI states
STYLEKIT_STYLE_REFERENCE
style_name: Memphis
style_slug: memphis
style_source: /styles/memphis

# Hard Prompt

## When To Use
Use this when you want AI to generate code with strict style consistency. It is the safest default for production UI.

## How To Use
- Copy the full prompt into ChatGPT, Claude, Cursor, or another coding assistant.
- Append the concrete product/page requirement after the prompt.
- After generation, check the forbidden rules and interaction states before accepting the output.

Strictly follow the style rules below and maintain consistency. No style drift allowed.

## Requirements

- Prioritize style consistency first, then creative extension.
- When conflicts arise, treat prohibitions as the highest priority.
- Self-check before output: verify colors, typography, spacing, and interactions still match this style.

## Style Rules

You are a Memphis design style frontend development expert. All generated code must strictly follow these constraints:

## Absolute Prohibitions

- Using monotone, low-saturation color schemes
- Using overly symmetrical and orderly layouts
- Using thin borders border
- Omitting geometric decorative elements

## Must Follow

- Vivid contrasting colors bg-yellow-400, bg-pink-300, bg-cyan-400
- Thick borders border-4 border-black
- Hard-edge shadows shadow-[6px_6px_0px_#000]
- Geometric decorations (circles, triangles, squares)
- Bold fonts font-black, font-bold

## Color Palette

Primary:
- Red: #ff6b6b, bg-red-500
- Yellow: #feca57, bg-yellow-400
- Cyan: #48dbfb, bg-cyan-400
- Pink: #ff9ff3, bg-pink-300
- Green: #1dd1a1, bg-green-400

## Decorative Elements

- Circles rounded-full
- Triangles (using border)
- Squares rotate-45
- Wave, dot, and stripe patterns

## Animation & Interaction Rules

- Playful Chaos: Card inner decorative geometries use group class, each moving independently in different directions (circle: group-hover:translate-x-4 group-hover:-translate-y-2; triangle: group-hover:-translate-x-2 group-hover:rotate-12), uniform direction is forbidden.
- Toy Button Physics: Button active state active:translate-x-[6px] active:translate-y-[6px] active:shadow-none, simulating toy key fully flattening.
- Pop Swap: Hover instantly switches to high-saturation contrasting color (hover:bg-pink-400), transition-colors duration-150, gradient transitions are forbidden.
- Snappy Motion: All animations duration-150 ease-out, maintaining pop toy crispness.

---

# Memphis Design System

> An 80s Italian design movement featuring bold geometric shapes, vivid contrasting colors, irregular forms, and playful patterns that break traditional design rules.

## Design Philosophy

Memphis is a design movement founded in the 1980s by Italian designer Ettore Sottsass, known for breaking traditions and embracing chaos and playfulness.

Core principles:
- Rebellion against tradition: Breaking the seriousness of functionalist design
- Bold contrasting colors: Vivid, high-contrast color combinations
- Geometric shapes: Free combinations of circles, triangles, and wavy lines
- Playfulness: Design should be fun and delightful

---

## Token Dictionary (exact class mapping)

### Border
```
Width: border-4
Color: border-black
Radius: rounded-none
```

### Shadow
```
sm: shadow-[3px_3px_0px_0px_rgba(0,0,0,1)] md:shadow-[5px_5px_0px_0px_rgba(0,0,0,1)]
md: shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] md:shadow-[8px_8px_0px_0px_rgba(0,0,0,1)]
lg: shadow-[8px_8px_0px_0px_rgba(0,0,0,1)] md:shadow-[12px_12px_0px_0px_rgba(0,0,0,1)]
hover: hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)]
focus: focus:shadow-[5px_5px_0px_0px_rgba(0,0,0,1)]
```

### Interaction
```
Hover translate: hover:translate-x-[3px] hover:translate-y-[3px]
Hover scale: (none)
Hover opacity: (none)
Transition: transition-all duration-200
Active: active:translate-x-[5px] active:translate-y-[5px]
```

### Typefaces
```
Heading: font-black tracking-tight
Body: font-sans
Mono: font-mono
```

### Type scale
```
Hero: text-5xl md:text-7xl lg:text-9xl
H1: text-4xl md:text-6xl
H2: text-3xl md:text-4xl
H3: text-xl md:text-2xl
Body: text-sm md:text-base
Small: text-xs md:text-sm
```

### Spacing
```
Section: py-12 md:py-24 lg:py-32
Container: px-4 md:px-8 lg:px-16
Card: p-5 md:p-8
Gap sm: gap-3 md:gap-4
Gap md: gap-4 md:gap-6
Gap lg: gap-6 md:gap-10
```

### Color roles
```
Background primary: bg-[#fef9ef]
Background secondary: bg-black
Background accent: bg-[#ff6b6b], bg-[#feca57], bg-[#48dbfb], bg-[#ff9ff3]
Text primary: text-black
Text secondary: text-white
Text muted: text-gray-600
Button primary: bg-[#ff6b6b] text-black
Button secondary: bg-[#feca57] text-black
```

---

## [FORBIDDEN]

These classes are banned in this style. Check for them before returning code:

### Banned classes
- `border`
- `border-[0.5px]`
- `border-gray-200`
- `border-gray-300`
- `border-slate-200`
- `bg-gray-50`
- `bg-gray-100`
- `bg-slate-50`
- `text-gray-400`
- `text-gray-500`
- `shadow-sm`
- `shadow`
- `shadow-md`
- `opacity-50`
- `opacity-60`

### Banned patterns
- matches `^border-(?:gray|slate)-`
- matches `^shadow-(?!\[|none)`
- matches `^bg-(?:gray|slate)-(?:[1-3])`
- matches `^text-(?:gray|slate)-(?:[3-5])`

### Why they are banned
- `border-gray-200`: Memphis uses thick black borders (border-4 border-black), not subtle grays
- `shadow-md`: Memphis uses hard-edge offset shadows, not blurred shadows
- `bg-gray-50`: Memphis uses bold vivid colors (coral, yellow, teal), not muted grays
- `text-gray-400`: Memphis uses high-contrast text, not subtle muted text

> WARNING: if your code contains any of the above, replace it before shipping.

---

## [REQUIRED]

### Every button must include
```
border-4
border-black
shadow-[5px_5px_0px_0px_rgba(0,0,0,1)]
hover:translate-x-[3px] hover:translate-y-[3px]
hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)]
transition-all duration-200
font-black
```

### Every card must include
```
border-4
border-black
shadow-[5px_5px_0px_0px_rgba(0,0,0,1)]
bg-[#fef9ef]
```

### Every input must include
```
border-4
border-black
font-sans
focus:shadow-[5px_5px_0px_0px_rgba(0,0,0,1)]
focus:outline-none
```

---

## [COMPARE] Memphis wrong vs right

The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.

### Button

[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
  Click me
</button>
```

[CORRECT] **Right** (uses this style's tokens):
```html
<button class="border-4 border-black shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[3px] hover:translate-y-[3px] hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] transition-all duration-200 font-black bg-[#ff6b6b] text-black">
  Click me
</button>
```

### Card

[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
  <h3>{TITLE}</h3>
</div>
```

[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="border-4 border-black shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] bg-[#fef9ef] p-5 md:p-8">
  <h3 class="font-black tracking-tight text-xl md:text-2xl">{TITLE}</h3>
</div>
```

### Input

[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```

[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="border-4 border-black font-sans focus:shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] focus:outline-none" placeholder="{PLACEHOLDER}" />
```

---

## [TEMPLATES] Memphis page skeletons

These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:

### Navigation
```html
<nav class="bg-[#fef9ef] text-black border-4 border-black px-4 md:px-8 lg:px-16">
  <div class="flex items-center justify-between max-w-6xl mx-auto gap-4 md:gap-6">
    <a href="/" class="font-black tracking-tight text-xl md:text-2xl">
      {LOGO_TEXT}
    </a>
    <div class="flex gap-4 md:gap-6 font-sans text-xs md:text-sm">
      {NAV_LINKS}
    </div>
  </div>
</nav>
```

### Hero section
```html
<section class="bg-[#ff6b6b] text-black py-12 md:py-24 lg:py-32 px-4 md:px-8 lg:px-16">
  <div class="max-w-4xl mx-auto">
    <h1 class="font-black tracking-tight text-5xl md:text-7xl lg:text-9xl">
      {HEADLINE}
    </h1>
    <p class="font-sans text-sm md:text-base max-w-xl">
      {SUBHEADLINE}
    </p>
    <button class="border-4 border-black shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[3px] hover:translate-y-[3px] hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] transition-all duration-200 font-black bg-[#ff6b6b] text-black">
      {CTA_TEXT}
    </button>
  </div>
</section>
```

### Card grid
```html
<section class="bg-[#fef9ef] text-black py-12 md:py-24 lg:py-32 px-4 md:px-8 lg:px-16">
  <div class="max-w-6xl mx-auto">
    <h2 class="font-black tracking-tight text-3xl md:text-4xl">{SECTION_TITLE}</h2>
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6">
      <!-- Card template - repeat for each card -->
      <div class="border-4 border-black shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] bg-[#fef9ef] p-5 md:p-8">
        <h3 class="font-black tracking-tight text-xl md:text-2xl">{CARD_TITLE}</h3>
        <p class="font-sans text-sm md:text-base text-gray-600">{CARD_DESCRIPTION}</p>
      </div>
    </div>
  </div>
</section>
```

### Form input
```html
<input class="border-4 border-black font-sans focus:shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] focus:outline-none" placeholder="{PLACEHOLDER}" />
```

### Footer
```html
<footer class="bg-black text-white py-12 md:py-24 lg:py-32 px-4 md:px-8 lg:px-16">
  <div class="max-w-6xl mx-auto">
    <div class="grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-10">
      <div>
        <span class="font-black tracking-tight text-xl md:text-2xl">{LOGO_TEXT}</span>
        <p class="font-sans text-xs md:text-sm">{TAGLINE}</p>
      </div>
      <div>
        <h4 class="font-black tracking-tight text-xl md:text-2xl">{COLUMN_TITLE}</h4>
        <ul class="font-sans text-xs md:text-sm">
          {FOOTER_LINKS}
        </ul>
      </div>
    </div>
  </div>
</footer>
```

---

## [CHECKLIST] Memphis post-generation self check

**Before returning code, verify every token and rule below. Fix any violation before delivering:**

### Token check
- [ ] Button includes: `border-4 border-black shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[3px] hover:translate-y-[3px] hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] transition-all duration-200 font-black`
- [ ] Card includes: `border-4 border-black shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] bg-[#fef9ef]`
- [ ] Input includes: `border-4 border-black font-sans focus:shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] focus:outline-none`

### Forbidden check
- [ ] Not using `border`
- [ ] Not using `border-[0.5px]`
- [ ] Not using `border-gray-200`
- [ ] Not using `border-gray-300`
- [ ] Not using `border-slate-200`
- [ ] Not using `bg-gray-50`
- [ ] Not using `bg-gray-100`
- [ ] Not using `bg-slate-50`

### Style rule check
- [ ] Use vivid contrasting color combinations
- [ ] Add geometric shape decorations (circles, triangles, waves)
- [ ] Use thick borders border-4
- [ ] Irregular layouts and shapes
- [ ] Add dot, stripe, and wave patterns

### Style drift check
- [ ] Does not violate: Do NOT use monotone, low-saturation color schemes
- [ ] Does not violate: Do NOT use overly symmetrical and orderly layouts
- [ ] Does not violate: Do NOT use thin borders
- [ ] Does not violate: Do NOT omit geometric decorative elements
- [ ] Does not violate: Do NOT keep geometric decorations static on hover (loses the soul of Memphis playground)

### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Memphis

## Absolute Bans (Match and Refuse)

If any of the following patterns appear, it is a style violation — rewrite without exception.

- use monotone, low-saturation color schemes
- use overly symmetrical and orderly layouts
- use thin borders
- omit geometric decorative elements
- keep geometric decorations static on hover (loses the soul of Memphis playground)
- keep shadow on button active state (pressing down should fully flatten, active:shadow-none is mandatory)
- use displacement to reduce shadow on button hover (should increase shadow + change color, not move toward shadow direction)

## Self-Check (Verify Before Shipping)

If any item fails, the style has drifted — fix before shipping.

- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] do NOT use monotone, low-saturation color schemes
- [ ] do NOT use overly symmetrical and orderly layouts
- [ ] do NOT use thin borders
- [ ] do NOT omit geometric decorative elements
- [ ] do NOT keep geometric decorations static on hover (loses the soul of Memphis playground)

More prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

按钮

孟菲斯风格按钮,波普换色 + 玩具按键触感

Frontend Readiness

Dark Mode, States, Motion, and Accessibility

This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.

Overall

51%

Fallback

Dark Mode

0%

Missing

UI States

79%

Partial

Motion

70%

Partial

A11y

70%

Partial

Performance

35%

Fallback

Key State Coverage

light
HoverFocus VisibleDisabledLoadingEmptyErrorSuccess

Button

Default / Hover / Focus Visible / Active / Disabled

Input

Default / Hover / Focus Visible / Disabled / Error

Card

Default / Hover / Focus Visible / Loading / Skeleton

Form

Default / Focus Visible / Disabled / Loading / Error

Implementation Notes

  • No curated dark-mode contract exists yet.
  • Check contrast in both light and dark modes.
  • Check heavy shadows, blur, large media, and scroll-linked effects manually.
  • No style-specific performance cost profile has been curated yet.

FAQ

Memphis — Frequently Asked Questions

What is the Memphis design style?
An 80s Italian design movement featuring bold geometric shapes, vivid contrasting colors, irregular forms, and playful patterns that break traditional design rules. Its core principle: Memphis is a design movement founded in the 1980s by Italian designer Ettore Sottsass, known for breaking traditions and embracing chaos and playfulness.
What colors does Memphis use?
Memphis uses #ff6b6b as its primary color and #feca57 as its secondary color, with accent colors #48dbfb, #ff9ff3, #1dd1a1, #5f27cd. Every hex value can be copied from the palette on this page.
How do I apply Memphis correctly?
Key practices: Use vivid contrasting color combinations. Add geometric shape decorations (circles, triangles, waves). Use thick borders border-4.
What are common mistakes with Memphis?
Avoid: Do NOT use monotone, low-saturation color schemes. Do NOT use overly symmetrical and orderly layouts. Do NOT use thin borders.
How do I prompt AI to generate Memphis UI?
Copy the ready-made AI prompt on this page — it bundles the design tokens and component rules — and paste it into ChatGPT, Claude, Claude Code, or Codex. Effective prompts include the keywords: Memphis design, Memphis Group, 80s design, postmodern design.
Global Styles

Global CSS

css
/* Memphis 全局样式 */

:root {
  --memphis-red: #ff6b6b;
  --memphis-yellow: #feca57;
  --memphis-cyan: #48dbfb;
  --memphis-pink: #ff9ff3;
  --memphis-green: #1dd1a1;
  --memphis-purple: #5f27cd;
}

/* 孟菲斯阴影 */
.memphis-shadow {
  box-shadow: 6px 6px 0px #000;
}

/* 波浪线背景 */
.memphis-waves {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 T100 10' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

/* 点状图案 */
.memphis-dots {
  background-image: radial-gradient(#000 2px, transparent 2px);
  background-size: 20px 20px;
}

/* 条纹图案 */
.memphis-stripes {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    #000 10px,
    #000 12px
  );
}
@keyframes memphis-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes memphis-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.memphis-card {
  position: relative;
  overflow: hidden;
}

.memphis-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), transparent);
  pointer-events: none;
}

.memphis-card:hover::before {
  opacity: 1;
}

.memphis-frosted {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 107, 107, 0.08);
}

.memphis-accent-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}

.memphis-animate-in {
  animation: memphis-fade-in 0.5s ease-out both;
}

IDE Integration

IDE Configuration Export

Download configuration files for AI coding assistants to generate code in this style.

Style Pack

Export Style Pack

Get complete machine-readable style assets including design tokens, Tailwind presets, CSS variables, and shadcn/ui themes.

Metadata

Style metadata including version information

Design Tokens

Compatible with Figma / Style Dictionary / Tokens Studio

Tailwind Preset

Tailwind CSS theme preset, import directly in config

Global CSS

CSS variables and base styles

shadcn Theme

shadcn/ui theme configuration

CSS Variables

Pure CSS variables, works with any project

SKILL.md

Loadable skill pack for Cursor / Claude Code / VS Code

Design Philosophy

Memphis is a design movement founded in the 1980s by Italian designer Ettore Sottsass, known for breaking traditions and embracing chaos and playfulness.

Accessibility

Accessibility Score

WCAG 2.1 compliance analysis based on color contrast and typography readability.

72

Overall Score

Grade: C - Fair

Contrast Ratios

Score: 64/100Average Ratio: 7.95:1
AA FailAAA Fail
ContextColorsRatioAAAAA
Text on background
/#000000 / #fef9ef
20.01:1
Secondary text on background
/#ffffff / #fef9ef
1.05:1
Muted text on background
/#4b5563 / #fef9ef
7.2:1
Text on secondary background
/#000000 / #000000
1:1
Secondary text on secondary
/#ffffff / #000000
21:1
Button primary
/#000000 / #ff6b6b
7.57:1
Text on accent 1
/#000000 / #ff6b6b
7.57:1
Alt text on accent 1
/#ffffff / #ff6b6b
2.78:1
Text on accent 2
/#000000 / #feca57
13.8:1
Alt text on accent 2
/#ffffff / #feca57
1.52:1
Text on accent 3
/#000000 / #48dbfb
12.8:1
Alt text on accent 3
/#ffffff / #48dbfb
1.64:1
Text on accent 4
/#000000 / #ff9ff3
11.51:1
Alt text on accent 4
/#ffffff / #ff9ff3
1.83:1

Readability

Score

90/100

Font Size

text-sm md:text-base

Font Weight

font-black tracking-tight

Line Height

default

Scoring is based on WCAG 2.1 standards. AA requires 4.5:1 contrast for normal text, 3:1 for large text; AAA requires 7:1 for normal text, 4.5:1 for large text.