Style Catalog/Surrealism

Surrealism

超现实主义风

D
57/100Poor
Rate this style

Inspired by surrealist masters like Dali -- dreamlike scene compositions, illogical spatial relationships, melting and morphing forms, and unexpected color combinations create a mysterious and captivating visual experience.

surrealismsurrealist designdreamlike uiDali inspiredmelting shapesdream logicdistorted formsabstract art websitesubconsciousartistic portfolio
View Full Showcase →
Templates

Best For

surrealism / surrealist design / dreamlike ui

Primary Move

Use midnight blue and desert gold palette

Watch Out

Do not use overly bright pure colors

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: Surrealism
style_slug: surrealism
style_source: /styles/surrealism

# 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 Surrealism design style frontend development expert. All generated code must strictly follow these constraints:

## Absolutely Forbidden

- Pure white backgrounds
- Strictly symmetrical grid layouts
- Bright neon colors
- Overly regular geometric shapes

## Must Follow

- Midnight blue #1a1a3e as dark base tone
- Desert gold #d4a574 and rose pink #c38d94 as accent colors
- Cream white #f0ece4 as light background
- Use font-serif italic for a dreamy feel
- Soft gradients and blurred glow effects

## Color Palette

Primary:
- Midnight Blue: #1a1a3e
- Desert Gold: #d4a574
- Rose Pink: #c38d94
- Cream White: #f0ece4

## Special Elements

- Blurred glow background decorations
- Asymmetric layouts and organic shapes
- Soft transition animations (duration-500)
- Unexpected color gradient combinations

## Animation & Interaction Rules

- Dream-like Distortion: Hover applies geometric reality-bending `hover:skew-x-2 hover:-rotate-1` -- as if the element is being pulled through a dream portal. Never use `hover:scale-105` alone; distortion (skew/rotate) is how surrealism deforms reality.
- Timeless Easing: All transitions use `duration-700 ease-in-out` minimum, preferring `duration-1000 ease-in-out` -- surrealist time is elastic. Never use `duration-200` or faster; urgency is a rational concept.
- Abyssal Glow: Hover shadow uses large diffuse rose/gold `hover:shadow-[0_0_50px_rgba(195,141,148,0.3)]` -- light wells up from within the dream. Never use black drop shadows; they belong to the rational world.
- Color Melting: Blurred orb decorations slowly expand `group-hover:scale-150 transition-transform duration-[2000ms] ease-in-out` -- colors bleed across the canvas over 2 full seconds. The expanding underline `group-hover:w-full transition-all duration-1000` and heading `group-hover:tracking-widest transition-all duration-1000` melt together.

---

# Surrealism Design System

> Inspired by surrealist masters like Dali -- dreamlike scene compositions, illogical spatial relationships, melting and morphing forms, and unexpected color combinations create a mysterious and captivating visual experience.

## Design Philosophy

Surrealism is an early 20th-century art movement dedicated to unleashing the creative power of the subconscious, breaking the boundaries between the rational and irrational.

Core principles:
- Dream logic: Visual narratives that transcend reality
- Unexpected juxtaposition: Wondrous combinations of unrelated elements
- Morphing fluidity: Melting, distorted forms
- Subconscious exploration: Visual expression of deep psychology

---

## Token Dictionary (exact class mapping)

### Border
```
Width: border
Color: border-[#d4a574]/30
Radius: rounded-2xl
```

### Shadow
```
sm: shadow-md
md: shadow-lg
lg: shadow-xl
hover: hover:shadow-[0_12px_40px_rgba(26,26,62,0.2)]
focus: focus:shadow-[0_0_16px_rgba(195,141,148,0.3)]
```

### Interaction
```
Hover translate: hover:-translate-y-1
Hover scale: hover:scale-105
Hover opacity: (none)
Transition: transition-all duration-500 ease-in-out
Active: active:scale-95
```

### Typefaces
```
Heading: font-serif italic
Body: font-serif
Mono: font-mono
```

### Type scale
```
Hero: text-4xl md:text-6xl lg:text-8xl
H1: text-3xl md:text-5xl
H2: text-2xl 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-20 lg:py-28
Container: px-4 md:px-8 lg:px-12
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-[#f0ece4]
Background secondary: bg-[#1a1a3e]
Background accent: bg-[#d4a574], bg-[#c38d94], bg-[#4a3f6b]
Text primary: text-[#1a1a3e]
Text secondary: text-[#d4a574]
Text muted: text-[#1a1a3e]/60
Button primary: bg-gradient-to-r from-[#1a1a3e] to-[#c38d94] text-[#f0ece4]
Button secondary: bg-[#d4a574]/20 text-[#1a1a3e] border border-[#1a1a3e]/30
```

---

## [FORBIDDEN]

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

### Banned classes
- `rounded-none`
- `bg-white`
- `bg-gray-50`
- `shadow-[0_0_16px_rgba(255,0,255`
- `text-[#ff00ff]`
- `text-[#00ffff]`
- `border-[#ff00ff]`
- `uppercase tracking-widest`
- `font-bold`

### Banned patterns
- matches `^bg-(?:white|gray-5)`
- matches `^text-\[#(?:ff00ff|00ffff|00ff00)`
- matches `^shadow-\[0_0_\d+px_rgba\((?:255,0,255|0,255,255)`

### Why they are banned
- `bg-white`: Surrealism uses warm cream tones, not pure white
- `text-[#ff00ff]`: Surrealism uses muted, dreamlike tones, not neon
- `rounded-none`: Surrealism uses soft, organic shapes
- `font-bold`: Surrealism prefers elegant serif italic over bold text

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

---

## [REQUIRED]

### Every button must include
```
rounded-lg
font-serif italic
shadow-lg
transition-all duration-500 ease-in-out
```

### Every card must include
```
rounded-2xl
bg-gradient-to-br from-[#f0ece4] to-[#f0ece4]/80
border border-[#d4a574]/30
shadow-lg
```

### Every input must include
```
rounded-lg
border border-[#d4a574]/40
bg-[#f0ece4]
text-[#1a1a3e]
focus:border-[#c38d94]
focus:outline-none
```

---

## [COMPARE] Surrealism 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="rounded-lg font-serif italic shadow-lg transition-all duration-500 ease-in-out bg-gradient-to-r from-[#1a1a3e] to-[#c38d94] text-[#f0ece4]">
  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="rounded-2xl bg-gradient-to-br from-[#f0ece4] to-[#f0ece4]/80 border border-[#d4a574]/30 shadow-lg p-5 md:p-8">
  <h3 class="font-serif italic 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="rounded-lg border border-[#d4a574]/40 bg-[#f0ece4] text-[#1a1a3e] focus:border-[#c38d94] focus:outline-none" placeholder="{PLACEHOLDER}" />
```

---

## [TEMPLATES] Surrealism page skeletons

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

### Navigation
```html
<nav class="bg-[#f0ece4] text-[#1a1a3e] border border-[#d4a574]/30 px-4 md:px-8 lg:px-12">
  <div class="flex items-center justify-between max-w-6xl mx-auto gap-4 md:gap-6">
    <a href="/" class="font-serif italic text-xl md:text-2xl">
      {LOGO_TEXT}
    </a>
    <div class="flex gap-4 md:gap-6 font-serif text-xs md:text-sm">
      {NAV_LINKS}
    </div>
  </div>
</nav>
```

### Hero section
```html
<section class="bg-[#d4a574] text-[#1a1a3e] py-12 md:py-20 lg:py-28 px-4 md:px-8 lg:px-12">
  <div class="max-w-4xl mx-auto">
    <h1 class="font-serif italic text-4xl md:text-6xl lg:text-8xl">
      {HEADLINE}
    </h1>
    <p class="font-serif text-sm md:text-base max-w-xl">
      {SUBHEADLINE}
    </p>
    <button class="rounded-lg font-serif italic shadow-lg transition-all duration-500 ease-in-out bg-gradient-to-r from-[#1a1a3e] to-[#c38d94] text-[#f0ece4]">
      {CTA_TEXT}
    </button>
  </div>
</section>
```

### Card grid
```html
<section class="bg-[#f0ece4] text-[#1a1a3e] py-12 md:py-20 lg:py-28 px-4 md:px-8 lg:px-12">
  <div class="max-w-6xl mx-auto">
    <h2 class="font-serif italic text-2xl 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="rounded-2xl bg-gradient-to-br from-[#f0ece4] to-[#f0ece4]/80 border border-[#d4a574]/30 shadow-lg p-5 md:p-8">
        <h3 class="font-serif italic text-xl md:text-2xl">{CARD_TITLE}</h3>
        <p class="font-serif text-sm md:text-base text-[#1a1a3e]/60">{CARD_DESCRIPTION}</p>
      </div>
    </div>
  </div>
</section>
```

### Form input
```html
<input class="rounded-lg border border-[#d4a574]/40 bg-[#f0ece4] text-[#1a1a3e] focus:border-[#c38d94] focus:outline-none" placeholder="{PLACEHOLDER}" />
```

### Footer
```html
<footer class="bg-[#1a1a3e] text-[#d4a574] py-12 md:py-20 lg:py-28 px-4 md:px-8 lg:px-12">
  <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-serif italic text-xl md:text-2xl">{LOGO_TEXT}</span>
        <p class="font-serif text-xs md:text-sm">{TAGLINE}</p>
      </div>
      <div>
        <h4 class="font-serif italic text-xl md:text-2xl">{COLUMN_TITLE}</h4>
        <ul class="font-serif text-xs md:text-sm">
          {FOOTER_LINKS}
        </ul>
      </div>
    </div>
  </div>
</footer>
```

---

## [CHECKLIST] Surrealism post-generation self check

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

### Token check
- [ ] Button includes: `rounded-lg font-serif italic shadow-lg transition-all duration-500 ease-in-out`
- [ ] Card includes: `rounded-2xl bg-gradient-to-br from-[#f0ece4] to-[#f0ece4]/80 border border-[#d4a574]/30 shadow-lg`
- [ ] Input includes: `rounded-lg border border-[#d4a574]/40 bg-[#f0ece4] text-[#1a1a3e] focus:border-[#c38d94] focus:outline-none`

### Forbidden check
- [ ] Not using `rounded-none`
- [ ] Not using `bg-white`
- [ ] Not using `bg-gray-50`
- [ ] Not using `shadow-[0_0_16px_rgba(255,0,255`
- [ ] Not using `text-[#ff00ff]`
- [ ] Not using `text-[#00ffff]`
- [ ] Not using `border-[#ff00ff]`
- [ ] Not using `uppercase tracking-widest`

### Style rule check
- [ ] Use midnight blue and desert gold palette
- [ ] Create dreamlike soft gradients
- [ ] Use unexpected element combinations
- [ ] Add soft shadows for depth
- [ ] Use serif fonts and italics

### Style drift check
- [ ] Does not violate: Do not use overly bright pure colors
- [ ] Does not violate: Do not use strictly symmetrical grid layouts
- [ ] Does not violate: Do not use modern minimalist undecorated design
- [ ] Does not violate: Do not use harsh neon colors
- [ ] Does not violate: Do not use `hover:scale-105` (surrealism uses `skew` and `rotate` to distort reality, not scaling)

### 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 Surrealism

## Absolute Bans (Match and Refuse)

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

- use overly bright pure colors
- use strictly symmetrical grid layouts
- use modern minimalist undecorated design
- use harsh neon colors
- use `hover:scale-105` (surrealism uses `skew` and `rotate` to distort reality, not scaling)
- use black drop shadows (Abyssal Glow uses rose/gold diffuse glow -- black shadows break the dream feel)
- use `duration-200` or shorter transitions (Timeless Easing requires `duration-700` or above -- dream time is elastic)
- use `transition-none` on card decorative orbs (Color Melting requires slow `duration-[2000ms]` expansion)

## 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 overly bright pure colors
- [ ] do not use strictly symmetrical grid layouts
- [ ] do not use modern minimalist undecorated design
- [ ] do not use harsh neon colors
- [ ] do not use `hover:scale-105` (surrealism uses `skew` and `rotate` to distort reality, not scaling)

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

按钮

超现实主义风格按钮,Dream-like Distortion `skew+rotate` + Timeless Easing `duration-1000` + Abyssal Glow 漫射光晕 + 有机圆角

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

Surrealism — Frequently Asked Questions

What is the Surrealism design style?
Inspired by surrealist masters like Dali -- dreamlike scene compositions, illogical spatial relationships, melting and morphing forms, and unexpected color combinations create a mysterious and captivating visual experience. Its core principle: Surrealism is an early 20th-century art movement dedicated to unleashing the creative power of the subconscious, breaking the boundaries between the rational and irrational.
What colors does Surrealism use?
Surrealism uses #1a1a3e as its primary color and #f0ece4 as its secondary color, with accent colors #d4a574, #c38d94, #4a3f6b, #90ba6d. Every hex value can be copied from the palette on this page.
How do I apply Surrealism correctly?
Key practices: Use midnight blue and desert gold palette. Create dreamlike soft gradients. Use unexpected element combinations.
What are common mistakes with Surrealism?
Avoid: Do not use overly bright pure colors. Do not use strictly symmetrical grid layouts. Do not use modern minimalist undecorated design.
How do I prompt AI to generate Surrealism 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: surrealism, surrealist design, dreamlike ui, Dali inspired.
Global Styles

Global CSS

css
/* Surrealism 全局样式 */

:root {
  --sr-midnight: #1a1a3e;
  --sr-gold: #d4a574;
  --sr-rose: #c38d94;
  --sr-cream: #f0ece4;
}

/* 梦境模糊光晕 */
.sr-dream-glow {
  box-shadow:
    0 0 40px rgba(212, 165, 116, 0.2),
    0 0 80px rgba(195, 141, 148, 0.1);
}

/* 超现实渐变 */
.sr-gradient {
  background: linear-gradient(
    135deg,
    var(--sr-midnight) 0%,
    #2a2a5e 40%,
    var(--sr-rose) 70%,
    var(--sr-gold) 100%
  );
}

/* 融化效果 */
.sr-melt {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* 飘浮阴影 */
.sr-float-shadow {
  box-shadow:
    0 20px 60px rgba(26, 26, 62, 0.3),
    0 0 40px rgba(195, 141, 148, 0.15);
}
@keyframes surrealism-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

.surrealism-frosted {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(26, 26, 62, 0.08);
}

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

.surrealism-animate-in {
  animation: surrealism-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

Surrealism is an early 20th-century art movement dedicated to unleashing the creative power of the subconscious, breaking the boundaries between the rational and irrational.

Accessibility

Accessibility Score

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

57

Overall Score

Grade: D - Poor

Contrast Ratios

Score: 48/100Average Ratio: 5.49:1
AA FailAAA Fail
ContextColorsRatioAAAAA
Text on background
/#1a1a3e / #f0ece4
14.13:1
Secondary text on background
/#d4a574 / #f0ece4
1.89:1
Muted text on background
/#1a1a3e / #f0ece4
14.13:1
Text on secondary background
/#1a1a3e / #1a1a3e
1:1
Secondary text on secondary
/#d4a574 / #1a1a3e
7.48:1
Text on accent 1
/#1a1a3e / #d4a574
7.48:1
Alt text on accent 1
/#d4a574 / #d4a574
1:1
Text on accent 2
/#1a1a3e / #c38d94
5.99:1
Alt text on accent 2
/#d4a574 / #c38d94
1.25:1
Text on accent 3
/#1a1a3e / #4a3f6b
1.76:1
Alt text on accent 3
/#d4a574 / #4a3f6b
4.26:1

Readability

Score

77/100

Font Size

text-sm md:text-base

Font Weight

font-serif italic

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.