适合场景
Stripe / 金融 / 支付
Stripe Style
给这个风格评分精致专业的金融科技风格,以 Stripe 紫为主色调,配合渐变网格背景、精致卡片阴影和流畅动画,适合支付产品和开发者工具。
适合场景
Stripe / 金融 / 支付
设计重点
使用 Stripe 紫 #635bff 作为主色调
注意事项
禁止使用过于鲜艳的配色
design.md
一份文档说明这套风格的配色职责、字体规则、间距与组件构造。复制或下载后直接交给 Claude Code 或 Codex。
紫、深海军蓝与一层网格底纹:把金融基础设施画成工程图纸。
Theme: light
Stripe 风格的可信感来自克制与精度的组合:主色紫(#635bff)只出现在行动与链接上,正文用深海军蓝(#0a2540)而不是黑,底色是带一点蓝的浅灰(#f6f9fc)。标志性手法是 40px 网格底纹——它把页面变成图纸,暗示严谨。卡片用两段叠加的柔和阴影制造浮起(而不是单层),hover 时上浮并让阴影扩散。按钮带内高光,按下时换成内阴影,形成实体按压感。
| Name | Value | Token | Role |
|---|---|---|---|
| Stripe Violet | #635bff | --color-violet | 主行动、链接与选中态。全站唯一的品牌色,一屏只出现两到三处。 |
| Deep Navy | #0a2540 | --color-navy | 正文、标题与深色区块。比黑柔和,读起来像印刷油墨。 |
| Haze | #f6f9fc | --color-haze | 页面画布,上面叠 40px 网格线。白色卡片在它之上形成第二层。 |
| Card White | #ffffff | --color-card-white | 卡片、表单与浮层。 |
| Electric Cyan | #00d4ff | --color-cyan | 渐变与图表第二序列。只与紫搭配,不单独作为主色。 |
| Lilac | #7a73ff | --color-lilac | 渐变末端与 hover 态。与主紫同一色相,只提高明度。 |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | — | 700 | 64px | 1.1 | -0.03em | --text-display |
| heading-lg | — | 700 | 44px | 1.15 | -0.02em | --text-heading-lg |
| heading | — | 600 | 28px | 1.25 | — | --text-heading |
| subheading | — | 600 | 20px | 1.35 | — | --text-subheading |
| body-lg | — | 400 | 16px | 1.6 | — | --text-body-lg |
| body | — | 400 | 14px | 1.6 | — | --text-body |
| label | — | 500 | 12px | 1.4 | 0.02em | --text-label |
Base unit: 8px Density: comfortable
| 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 |
| 128 | 128px | --spacing-128 |
| Element | Value |
|---|---|
| cards | 12px |
| buttons | 8px |
| inputs | 8px |
| code-blocks | 12px |
Role: 主行动按钮
条纹紫填充、白字、8px 圆角、无描边。字级 14px、字重 500、padding 10px 24px。阴影为外阴影 0 2px 5px 紫 40% 加内高光 inset 0 1px 0 白 20%。hover 时填充转深紫 #5851ea、上浮 2px、外阴影扩到 10px;按下缩放 0.98 并换成内阴影 inset 0 2px 4px 黑 20%。过渡 300ms ease-out。
Role: 功能卡与产品卡
白底、12px 圆角、无描边、内边距 24px。阴影用两段叠加:0 2px 10px 6% 加 0 4px 20px 4%。图标块 40px 见方、10px 圆角、紫 10% 底、图标紫。hover 时上浮 4px、阴影扩到 0 12px 30px 8%、图标块放大 1.1,过渡 400ms ease-out。
Role: 页面底纹与 hero 背景
两层 40px 线性渐变网格交叉,颜色为紫 10%,叠在浅雾底上,整体不透明度 40%。只出现在首屏与少数区块,不做全页铺满,否则会盖过内容。
Role: API 示例与配置片段
深海军蓝底、白字 90%、12px 圆角、内边距 20px、等宽 13px、行高 1.7。左上角允许一个圆点行(三个 8px 圆点)。不描边、不加阴影。
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Haze | #f6f9fc | 画布,叠 40px 网格 |
| 1 | Card White | #ffffff | 卡片与表单 |
| 2 | Navy Stage | #0a2540 | 深色区块与页脚 |
0 2px 10px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04)0 12px 30px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04)0 2px 5px rgba(99,91,255,0.40), inset 0 1px 0 rgba(255,255,255,0.20)以界面截图、抽象几何图解与代码为主。允许紫色到青色的渐变作为图像替代,但只出现在一张卡片上。不使用人物摄影与装饰插画。
上限 1120px、12 栏、容器内边距 24px。区块间距 112px。hero 常见为左文右图或居中大字配下方产品截图。网格底纹铺满首屏,往下逐渐淡出。
QUICK COLOR REFERENCE:
#0a2540#f6f9fc#ffffff#635bff#00d4ffrgba(99,91,255,0.10)EXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-violet: #635bff;
--color-navy: #0a2540;
--color-haze: #f6f9fc;
--color-card-white: #ffffff;
--color-cyan: #00d4ff;
--color-lilac: #7a73ff;
/* Typography — Font Families */
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-mono: 'JetBrains Mono', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 64px;
--leading-display: 1.1;
--tracking-display: -0.03em;
--text-heading-lg: 44px;
--leading-heading-lg: 1.15;
--tracking-heading-lg: -0.02em;
--text-heading: 28px;
--leading-heading: 1.25;
--text-subheading: 20px;
--leading-subheading: 1.35;
--text-body-lg: 16px;
--leading-body-lg: 1.6;
--text-body: 14px;
--leading-body: 1.6;
--text-label: 12px;
--leading-label: 1.4;
--tracking-label: 0.02em;
/* Typography — Weights */
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
/* 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-128: 128px;
/* Layout */
--page-max-width: 1120px;
--section-gap: 112px;
--card-padding: 24px;
--element-gap: 16px;
--density: comfortable;
/* Border Radius */
--radius-cards: 12px;
--radius-buttons: 8px;
--radius-inputs: 8px;
--radius-code-blocks: 12px;
/* Surfaces */
--surface-haze: #f6f9fc;
--surface-card-white: #ffffff;
--surface-navy-stage: #0a2540;
}
组件模板
Stripe 风格按钮,Liquid Gradient Focus 内嵌高光 + Fluid SaaS Motion `duration-[300ms] ease-out` + Hairline Crispness active 下压感
常见问题
/* Stripe Style 全局样式 */
:root {
--stripe-purple: #635bff;
--stripe-purple-light: #7a73ff;
--stripe-dark: #0a2540;
--stripe-cyan: #00d4ff;
--stripe-bg: #f6f9fc;
--stripe-grid: rgba(99, 91, 255, 0.1);
}
/* 网格背景 */
.stripe-grid-bg {
background-image:
linear-gradient(to right, var(--stripe-grid) 1px, transparent 1px),
linear-gradient(to bottom, var(--stripe-grid) 1px, transparent 1px);
background-size: 40px 40px;
}
/* Stripe 风格卡片阴影 */
.stripe-card {
box-shadow:
0 2px 4px rgba(0, 0, 0, 0.04),
0 8px 16px rgba(0, 0, 0, 0.08);
transition: box-shadow 0.3s ease;
}
.stripe-card:hover {
box-shadow:
0 4px 8px rgba(0, 0, 0, 0.06),
0 16px 32px rgba(0, 0, 0, 0.1);
}
/* Stripe 风格按钮 */
.stripe-button {
background: var(--stripe-purple);
box-shadow:
0 2px 4px rgba(99, 91, 255, 0.2),
0 4px 8px rgba(99, 91, 255, 0.2);
transition: all 0.2s ease;
}
.stripe-button:hover {
transform: translateY(-2px);
box-shadow:
0 4px 8px rgba(99, 91, 255, 0.3),
0 8px 16px rgba(99, 91, 255, 0.2);
}
/* 代码块样式 */
.stripe-code {
background: var(--stripe-dark);
border-radius: 8px;
font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}
@keyframes stripe-style-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes stripe-style-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.stripe-style-card {
position: relative;
overflow: hidden;
}
.stripe-style-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(99, 91, 255, 0.05), transparent);
pointer-events: none;
}
.stripe-style-card:hover::before {
opacity: 1;
}
.stripe-style-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(99, 91, 255, 0.08);
}
.stripe-style-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.stripe-style-animate-in {
animation: stripe-style-fade-in 0.5s ease-out both;
}相关风格
探索这些风格获取现成的 tokens 和组件。
Stripe 风格 和 非对称网格 是最接近的两个方向。下表列出它们在配色、适用场景和标签上的实际差异,选之前先看这一栏。
| 维度 | Stripe 风格 | 非对称网格 |
|---|---|---|
| 主色 | #635bff | #0f0f0f |
| 辅助色 | #0a2540 | #ffffff |
| 适合场景 | Stripe / 金融 / 支付 | 非对称 / 网格 / 不规则 |
| 独有标签 | — | high-contrast |
Stripe Style 是一种源于 Stripe 的精致设计风格,以其标志性的紫色和专业的视觉语言著称。通过渐变网格背景、精致的卡片阴影和流畅的动画,传达信任感和技术实力。
设计配方
这些精选配方将此风格与布局和动画组合,针对特定场景优化。