Best For
neumorphism / neomorphism / soft ui
新拟物派
Soft concave and convex 3D effects using dual shadows to simulate light sources. Light backgrounds with same-tone elements create a refined sense of depth.
Best For
neumorphism / neomorphism / soft ui
Primary Move
Use light backgrounds bg-[#e0e5ec] or bg-[#f0f0f3]
Watch Out
Do not use pure black or pure white backgrounds
AI Implementation
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.
Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.
When to use
How to use
STYLEKIT_STYLE_REFERENCE
style_name: Neumorphism
style_slug: neumorphism
style_source: /styles/neumorphism
# 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
# Neumorphism Design System
You are an expert frontend developer specializing in Neumorphism (Soft UI) design. Generate all code strictly following these specifications.
## Style Identity
- **Name**: Neumorphism / Soft UI
- **Category**: Modern, Minimal
- **Essence**: Soft 3D depth through dual shadows simulating light hitting clay-like surfaces
- **Mood**: Calm, tactile, premium, approachable
---
## Core Visual Principles
### 1. Background Foundation
```
REQUIRED: bg-[#e0e5ec] or bg-[#f0f0f3]
Light gray monochromatic backgrounds only
Elements must share the same color family as background
```
### 2. Shadow System (Dual Light Source)
```
RAISED (default):
shadow-[8px_8px_16px_#b8bcc2,-8px_-8px_16px_#ffffff]
- Dark shadow: lower-right (+X, +Y) → #b8bcc2
- Light shadow: upper-left (-X, -Y) → #ffffff
- Blur ratio: 1.5-2x of offset value
RECESSED (pressed/input):
shadow-[inset_8px_8px_16px_#b8bcc2,inset_-8px_-8px_16px_#ffffff]
- Same light direction, but inset
```
### 3. Border Radius
```
REQUIRED: rounded-xl (12px) or rounded-2xl (16-24px)
Soft, consistent curves across all elements
```
---
## Interaction Specifications
### Button States
| State | Effect | Implementation |
|-------|--------|----------------|
| Default | Raised | shadow-[8px_8px_16px_#b8bcc2,-8px_-8px_16px_#ffffff] |
| Hover | Shadow shrinks | shadow-[4px_4px_8px_#b8bcc2,-4px_-4px_8px_#ffffff] |
| Active | Recessed (inset) | shadow-[inset_4px_4px_8px_#b8bcc2,inset_-4px_-4px_8px_#ffffff] |
| Disabled | Faded | opacity-50, shadow weakened |
### Input States
| State | Effect | Implementation |
|-------|--------|----------------|
| Default | Deep recess | shadow-[inset_6px_6px_12px_#b8bcc2,inset_-6px_-6px_12px_#ffffff] |
| Focus | Shallow recess | shadow-[inset_2px_2px_4px_#b8bcc2,inset_-2px_-2px_4px_#ffffff] |
---
## Animation Rules
### Interaction Physics
- **Extrude to Intrude**: Button active state MUST switch from raised to recessed shadow. NO translate displacement allowed — elements grow from the surface, they don't float.
- **Hover Shadowing**: Hover REDUCES shadow size (16px → 8px), simulating finger blocking light. Opposite of typical hover — shadows shrink, not grow.
- **Smooth Molding**: All transitions use `duration-300 ease-in-out`, mimicking soft rubber/plastic flexibility.
- **Fixed Illuminant**: Light source LOCKED at upper-left. Never break this direction in any shadow configuration.
### Transition Timing
```
transition-all duration-300 ease-in-out
```
---
## Color Palette
| Token | Value | Usage |
|-------|-------|-------|
| Background | #e0e5ec | Main surface |
| Background Light | #f0f0f3 | Elevated surfaces |
| Dark Shadow | #b8bcc2 | Lower-right shadows |
| Light Shadow | #ffffff | Upper-left highlights |
| Accent | #6d5dfc | Interactive elements, CTAs |
| Text Primary | #333333 | Headings, body |
| Text Secondary | #6b7280 | Muted, labels |
---
## Forbidden Patterns
| Pattern | Reason |
|---------|--------|
| bg-white, bg-black | Breaks monochromatic harmony |
| shadow-[Xpx_Xpx_0px] | Hard shadows violate soft aesthetic |
| High-contrast colors | Disrupts subtle depth perception |
| border-2 or thicker | Borders break seamless surface illusion |
| bg-gradient-* | Gradients conflict with flat light simulation |
| rounded-none | Sharp corners contradict soft material feel |
| translate on buttons | Elements are part of surface, not floating |
| Larger hover shadows | Contradicts light physics (finger blocks light) |
---
## Responsive Guidelines
### Shadow Scaling
```
Mobile: shadow-[4px_4px_8px_#b8bcc2,-4px_-4px_8px_#ffffff]
Desktop (md:): shadow-[8px_8px_16px_#b8bcc2,-8px_-8px_16px_#ffffff]
```
### Spacing
```
Padding: p-4 md:p-6 lg:p-8
Gap: gap-4 md:gap-6
Section: py-12 md:py-20
```
---
## Self-Verification Checklist
Before outputting code, verify:
- [ ] Background is #e0e5ec or #f0f0f3
- [ ] All shadows use dual light/dark format
- [ ] Light shadow at -X/-Y, dark at +X/+Y
- [ ] Buttons: hover shrinks shadow, active goes inset
- [ ] Inputs use inset shadows, focus reduces depth
- [ ] No translate on interactive elements
- [ ] Border radius is rounded-xl or rounded-2xl
- [ ] Transitions use duration-300 ease-in-out
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- use pure black or pure white backgrounds
- use hard-edge shadows shadow-[Xpx_Xpx_0px]
- use high-contrast color schemes
- use thick borders border-2 and above
- use gradient backgrounds bg-gradient-*
- use sharp corners rounded-none
- use any translate displacement on buttons (neumorphic elements grow from the background, they cannot float)
- enlarge shadows on hover (contradicts light physics, finger approaching should shrink shadows)
## 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 pure black or pure white backgrounds
- [ ] do not use hard-edge shadows shadow-[Xpx_Xpx_0px]
- [ ] do not use high-contrast color schemes
- [ ] do not use thick borders border-2 and above
- [ ] do not use gradient backgrounds bg-gradient-*Component Templates
Neumorphism 风格按钮,Hover Shadowing 缩小阴影 + Extrude to Intrude 转为内凹
Pointer Interactions
Pointer interactions tailored to this style — same cursor, completely different character. Move around the stage to feel it.
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
58%
Fallback
Dark Mode
35%
FallbackUI States
79%
PartialMotion
70%
PartialA11y
70%
PartialPerformance
35%
FallbackButton
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
FAQ
/* Neumorphism 全局样式 */
/* 背景色 */
:root {
--neu-bg: #e0e5ec;
--neu-bg-light: #f0f0f3;
--neu-shadow-dark: #b8bcc2;
--neu-shadow-light: #ffffff;
--neu-accent: #6d5dfc;
--neu-text: #333333;
--neu-text-muted: #6b7280;
}
/* 凸起效果 */
.neu-raised {
background: var(--neu-bg);
border-radius: 12px;
box-shadow:
8px 8px 16px var(--neu-shadow-dark),
-8px -8px 16px var(--neu-shadow-light);
}
.neu-raised-sm {
box-shadow:
4px 4px 8px var(--neu-shadow-dark),
-4px -4px 8px var(--neu-shadow-light);
}
/* 凹陷效果 */
.neu-pressed {
background: var(--neu-bg);
border-radius: 12px;
box-shadow:
inset 8px 8px 16px var(--neu-shadow-dark),
inset -8px -8px 16px var(--neu-shadow-light);
}
.neu-pressed-sm {
box-shadow:
inset 4px 4px 8px var(--neu-shadow-dark),
inset -4px -4px 8px var(--neu-shadow-light);
}
/* 悬停效果 */
.neu-hover:hover {
box-shadow:
4px 4px 8px var(--neu-shadow-dark),
-4px -4px 8px var(--neu-shadow-light);
}
/* 激活效果 */
.neu-active:active {
box-shadow:
inset 4px 4px 8px var(--neu-shadow-dark),
inset -4px -4px 8px var(--neu-shadow-light);
}
/* 圆形元素 */
.neu-circle {
border-radius: 50%;
}
@keyframes neumorphism-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes neumorphism-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.neumorphism-card {
position: relative;
overflow: hidden;
}
.neumorphism-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(224, 229, 236, 0.05), transparent);
pointer-events: none;
}
.neumorphism-card:hover::before {
opacity: 1;
}
.neumorphism-gradient {
background: linear-gradient(135deg, #e0e5ec, #6d5dfc);
}
.neumorphism-gradient-text {
background: linear-gradient(135deg, #e0e5ec, #6d5dfc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.neumorphism-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(224, 229, 236, 0.08);
}
.neumorphism-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.neumorphism-animate-in {
animation: neumorphism-fade-in 0.5s ease-out both;
}Compatible Layout Patterns
The following layout patterns pair well with the Neumorphism style.
IDE Integration
Download configuration files for AI coding assistants to generate code in this style.
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
Neumorphism is a style between flat design and skeuomorphism, creating the visual effect of elements being "extruded" or "recessed" from the background through soft shadows.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: D - Poor
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Secondary text on background | /#4b5563 / #e0e5ec | 5.97:1 | ||
| Muted text on background | /#9ca3af / #e0e5ec | 2.01:1 | ||
| Secondary text on secondary | /#4b5563 / #f0f0f3 | 6.64:1 | ||
| Button primary | /#ffffff / #6d5dfc | 4.54:1 | ||
| Alt text on accent 1 | /#4b5563 / #6d5dfc | 1.66:1 | ||
| Alt text on accent 2 | /#4b5563 / #ff6b6b | 2.72:1 | ||
| Alt text on accent 3 | /#4b5563 / #4ecdc4 | 3.91:1 | ||
| Alt text on accent 4 | /#4b5563 / #ffe66d | 6.04:1 |
Readability
Score
82/100
Font Size
text-sm md:text-base
Font Weight
font-semibold text-gray-800
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.