Styledex
← Index

Neumorphism

新拟物派

stylekitMITNeumorphism · neumorphismProfessional · professionalLight and dark · bothMedium · mediumBlue · blueMedium · mediumSerif · serifGeneral · generalLanding · landing

柔和的内凹外凸立体效果,通过双重阴影模拟光源,浅色背景配同色系元素,营造精致的立体感。

NNorthwind
Product · Pricing
Specimen
Make the work feel finished

One interface, dressed in this style. Compare type, color, radius, and density.

128
Active
4.8
Score
12ms
Edge

Attribution

"Neumorphism" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/neumorphism @ bfa7da909e86.

https://github.com/AnxForever/stylekit · api/styles/neumorphism · bfa7da909e86 · © AnxForever

Do

  • 使用浅色背景 bg-[#e0e5ec] 或 bg-[#f0f0f3]
  • 使用双重阴影 shadow-[8px_8px_16px_#b8bcc2,-8px_-8px_16px_#ffffff]
  • 凹陷效果使用 inset 阴影 shadow-[inset_8px_8px_16px_#b8bcc2,inset_-8px_-8px_16px_#ffffff]
  • 使用中等圆角 rounded-xl (12-24px)
  • 交互元素按下时从凸起变凹陷
  • 保持元素与背景同色系
  • 响应式阴影大小 md: 前缀增大
  • 按钮 hover 时减小外阴影(Hover Shadowing,手指靠近遮光效果):从 shadow-[8px_8px_16px...] 减至 shadow-[4px_4px_8px...]

Don't

  • 禁止使用纯黑或纯白背景
  • 禁止使用高对比度配色
  • 禁止使用粗边框 border-2 及以上
  • 禁止使用渐变背景 bg-gradient-*
  • 禁止直角 rounded-none
  • 禁止按钮使用任何 translate 位移(新拟物元素是长在背景上的,不可浮起)
  • 禁止 hover 时增大阴影(与光影物理规律相悖,手指靠近应使阴影缩小)
  • 禁止打破光源方向(亮阴影必须在左上 -X/-Y,暗阴影必须在右下 +X/+Y)

Prompt

用 Neumorphism 风格设计一个智能家居控制面板,要求:
1. 背景:统一浅灰色 #e0e5ec
2. 设备卡片:凸起效果,显示设备图标和状态
3. 开关按钮:圆形,开启时凹陷 + 强调色图标
4. 温度滑块:凹槽轨道,凸起滑块
5. 场景按钮:按下时从凸起变凹陷
所有阴影使用双色:右下深色 + 左上亮色

---
"Neumorphism" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/neumorphism @ bfa7da909e86.
powered by Styledex — https://styledex.dev

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "Neumorphism. \"Neumorphism\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/neumorphism @ bfa7da909e86.",
  "$extensions": {
    "dev.styledex": {
      "id": "stylekit-neumorphism",
      "license": "MIT",
      "attribution": "\"Neumorphism\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/neumorphism @ bfa7da909e86.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "#e0e5ec"
    },
    "foreground": {
      "$type": "color",
      "$value": "#1f2937"
    },
    "card": {
      "$type": "color",
      "$value": "#e0e5ec"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "#1f2937"
    },
    "primary": {
      "$type": "color",
      "$value": "#e0e5ec"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "#1c1917"
    },
    "secondary": {
      "$type": "color",
      "$value": "#d1d9e6"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "#1f2937"
    },
    "accent": {
      "$type": "color",
      "$value": "#6d5dfc"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "muted": {
      "$type": "color",
      "$value": "#d3d7de"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "#6d747d"
    },
    "border": {
      "$type": "color",
      "$value": "#c1c5cb"
    },
    "destructive": {
      "$type": "color",
      "$value": "#dc2626"
    },
    "ring": {
      "$type": "color",
      "$value": "#e0e5ec"
    }
  },
  "font": {
    "sans": {
      "$type": "fontFamily",
      "$value": [
        "ui-sans-serif",
        "system-ui",
        "sans-serif"
      ]
    },
    "serif": {
      "$type": "fontFamily",
      "$value": [
        "ui-serif",
        "Georgia",
        "serif"
      ]
    },
    "mono": {
      "$type": "fontFamily",
      "$value": [
        "ui-monospace",
        "SFMono-Regular",
        "Menlo",
        "monospace"
      ]
    }
  },
  "radius": {
    "base": {
      "$type": "dimension",
      "$value": "0.5rem"
    }
  },
  "spacing": {
    "base": {
      "$type": "dimension",
      "$value": "1rem"
    }
  },
  "shadow": {
    "base": {
      "$type": "shadow",
      "$value": "6px 6px 12px #b8bcc2,-6px -6px 12px #ffffff"
    }
  }
}

CSS

/* powered by Styledex — https://styledex.dev */
/* "Neumorphism" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/neumorphism @ bfa7da909e86. */
:root {
  --background: #e0e5ec;
  --foreground: #1f2937;
  --card: #e0e5ec;
  --card-foreground: #1f2937;
  --primary: #e0e5ec;
  --primary-foreground: #1c1917;
  --secondary: #d1d9e6;
  --secondary-foreground: #1f2937;
  --accent: #6d5dfc;
  --accent-foreground: #fafaf9;
  --muted: #d3d7de;
  --muted-foreground: #6d747d;
  --border: #c1c5cb;
  --destructive: #dc2626;
  --ring: #e0e5ec;
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --spacing: 1rem;
  --shadow: 6px 6px 12px #b8bcc2,-6px -6px 12px #ffffff;
}

Tailwind

/* powered by Styledex — https://styledex.dev */
/* "Neumorphism" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/neumorphism @ bfa7da909e86. */
/** Tailwind theme extend for Neumorphism (stylekit-neumorphism) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "#e0e5ec",
        "foreground": "#1f2937",
        "card": "#e0e5ec",
        "primary": "#e0e5ec",
        "primary-foreground": "#1c1917",
        "secondary": "#d1d9e6",
        "accent": "#6d5dfc",
        "muted": "#d3d7de",
        "border": "#c1c5cb",
        "destructive": "#dc2626",
        "ring": "#e0e5ec"
      },
      "borderRadius": {
        "lg": "0.5rem"
      },
      "fontFamily": {
        "sans": [
          "ui-sans-serif",
          "system-ui",
          "sans-serif"
        ],
        "serif": [
          "ui-serif",
          "Georgia",
          "serif"
        ],
        "mono": [
          "ui-monospace",
          "SFMono-Regular",
          "Menlo",
          "monospace"
        ]
      },
      "boxShadow": {
        "styledex": "6px 6px 12px #b8bcc2,-6px -6px 12px #ffffff"
      }
    }
  }
};

shadcn

/* powered by Styledex — https://styledex.dev */
/* "Neumorphism" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/neumorphism @ bfa7da909e86. */
@layer base {
:root {
  --background: #e0e5ec;
  --foreground: #1f2937;
  --card: #e0e5ec;
  --card-foreground: #1f2937;
  --primary: #e0e5ec;
  --primary-foreground: #1c1917;
  --secondary: #d1d9e6;
  --secondary-foreground: #1f2937;
  --accent: #6d5dfc;
  --accent-foreground: #fafaf9;
  --muted: #d3d7de;
  --muted-foreground: #6d747d;
  --border: #c1c5cb;
  --destructive: #dc2626;
  --ring: #e0e5ec;
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --spacing: 1rem;
  --shadow: 6px 6px 12px #b8bcc2,-6px -6px 12px #ffffff;
}
}