Best For
surrealism / surrealist design / dreamlike ui
超现实主义风
Rate this styleInspired 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.
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
design.md
One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.
Dream time: everything slow, everything slightly wrong, light arriving from where it should not.
Theme: dark
Surrealism borrows Dalí's vocabulary: unexpected pairings of midnight blue with desert gold, illogical spatial relationships, melting and morphing forms, and light arriving from the wrong direction. Two rules govern time and movement. First, every transition runs 700 to 1000ms ease-in-out (Timeless Easing), because dream time is elastic. Second, hover never scales — it skews and rotates to distort reality. Shadows may never be black either; they must be diffuse rose or gold halos, since a black shadow wakes the dream instantly.
| Name | Value | Token | Role |
|---|---|---|---|
| Midnight Blue | #1a1a3e | --color-midnight | The page ground and primary — dark enough to read as black while keeping a blue breath. |
| Bone | #f0ece4 | --color-bone | Text and light blocks — a bone white that has already greyed in the dream. |
| Desert Gold | #d4a574 | --color-desert-gold | The warm accent and halo color — the sunlight that should not be there. |
| Dusty Rose | #c38d94 | --color-dusty-rose | The second accent and substitute for shadow — every cast glow uses this instead of black. |
| Violet | #4a3f6b | --color-violet | Deep violet for melting forms and layered shade. |
| Moss | #90ba6d | --color-moss | The one note of life, used least, breaking the dream's suffocation. |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | Cormorant Garamond | 300 | 58px | 1.1 | 0.01em | --text-display |
| heading | Cormorant Garamond | 400 | 42px | 1.2 | — | --text-heading |
| subheading | Cormorant Garamond | 400 | 30px | 1.3 | — | --text-subheading |
| body-lg | Cormorant Garamond | 400 | 22px | 1.7 | — | --text-body-lg |
| body | Cormorant Garamond | 400 | 18px | 1.8 | — | --text-body |
| label | Cormorant Garamond | 600 | 15px | 1.5 | 0.1em | --text-label |
Base unit: 8px Density: airy
| Name | Value | Token |
|---|---|---|
| 8 | 8px | --spacing-8 |
| 16 | 16px | --spacing-16 |
| 24 | 24px | --spacing-24 |
| 32 | 32px | --spacing-32 |
| 48 | 48px | --spacing-48 |
| 64 | 64px | --spacing-64 |
| 96 | 96px | --spacing-96 |
| 144 | 144px | --spacing-144 |
| Element | Value |
|---|---|
| cards | 32px |
| buttons | 999px |
| inputs | 24px |
| orbs | 999px |
Role: Cards and content panels
40% violet fill, 32px radius, a 1px desert gold border at 20%, 36px padding, and a diffuse rose halo at 0 24px 60px 22% instead of any black shadow. It sits rotated -1 degree with a slight skewX(-1.5deg). Hover rotates to 1 degree, returns the skew to zero and widens the halo to 80px over 1000ms ease-in-out.
Role: Action button
Desert gold fill, midnight text, fully rounded, no border, 18px/600 at 0.1em tracking, 14px 36px padding, halo 0 12px 40px at 28% gold. Hover applies skewX(-6deg) and rotate(-2deg) with the halo widened to 60px, and never scales. Press zeroes the skew and sinks 2px. 700ms ease-in-out.
Role: Decorative color orbs
Circles from 24px to 160px on a radial gradient fading from desert gold or rose at the centre to transparent, with no border, absolutely positioned at card edges and allowed to bleed twenty to forty percent. Their color diffuses and contracts over 2000ms (Color Melting); transition-none is forbidden. Four per screen at most.
Role: Input field
60% midnight fill, 24px radius, a 1px violet border at 40%, 14px 20px padding at 18px serif. Focus turns the border to 60% gold and adds a 3px ring at 15%, over 700ms.
Role: Floating displaced layers
Duplicate a single element into two or three layers offset by 8 to 16px, each at a different opacity (100, 45, 20%) and angle (-3, 0, +4 degrees). Reserved for a headline or the hero, producing the illusion of one thing seen three times in time.
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Midnight | #1a1a3e | 页面底 |
| 1 | Melting Panel | rgba(74,63,107,0.40) | 卡片(半透明紫) |
| 2 | Bone Patch | #f0ece4 | 浅色反差点 |
0 24px 60px rgba(195,141,148,0.22)0 12px 40px rgba(212,165,116,0.28)black shadows are forbiddenMelting clocks, floating stones, a sea growing indoors, objects at the wrong scale. Imagery must hold an illogical spatial relationship and light arriving from the wrong direction. No documentary photography or flat icons.
Capped at 1120px with 24px padding, sections 144px apart. Strict symmetry is banned: elements may leave the grid by 16 to 48px, overlap, and rotate between -3 and 3 degrees. Reading order must stay clear regardless — a dream may tilt, it may not become unreadable.
QUICK COLOR REFERENCE:
#f0ece4#1a1a3ergba(74,63,107,0.40)#d4a574#c38d94#90ba6dEXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-midnight: #1a1a3e;
--color-bone: #f0ece4;
--color-desert-gold: #d4a574;
--color-dusty-rose: #c38d94;
--color-violet: #4a3f6b;
--color-moss: #90ba6d;
/* Typography — Font Families */
--font-serif: 'Cormorant Garamond', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 58px;
--leading-display: 1.1;
--tracking-display: 0.01em;
--text-heading: 42px;
--leading-heading: 1.2;
--text-subheading: 30px;
--leading-subheading: 1.3;
--text-body-lg: 22px;
--leading-body-lg: 1.7;
--text-body: 18px;
--leading-body: 1.8;
--text-label: 15px;
--leading-label: 1.5;
--tracking-label: 0.1em;
/* Typography — Weights */
--font-weight-light: 300;
--font-weight-regular: 400;
--font-weight-semibold: 600;
/* Spacing */
--spacing-unit: 8px;
--spacing-8: 8px;
--spacing-16: 16px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-48: 48px;
--spacing-64: 64px;
--spacing-96: 96px;
--spacing-144: 144px;
/* Layout */
--page-max-width: 1120px;
--section-gap: 144px;
--card-padding: 36px;
--element-gap: 28px;
--density: airy;
/* Border Radius */
--radius-cards: 32px;
--radius-buttons: 999px;
--radius-inputs: 24px;
--radius-orbs: 999px;
/* Surfaces */
--surface-midnight: #1a1a3e;
--surface-melting-panel: rgba(74,63,107,0.40);
--surface-bone-patch: #f0ece4;
}
Component Templates
FAQ
/* 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;
}Related Styles
Explore these styles for ready-made tokens and components.
Surrealism and Collage Art sit closest to each other. The table below gives the real differences in color, use case, and tags, so the choice between them is made on facts.
| Attribute | Surrealism | Collage Art |
|---|---|---|
| Primary color | #1a1a3e | #2d2d2d |
| Secondary color | #f0ece4 | #f5f0e8 |
| Best for | surrealism / surrealist design / dreamlike ui | collage art / paper collage / paper cutout |
| Unique tags | — | — |
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.