Best For
Stripe / 金融 / 支付
Stripe Style
A refined and professional fintech style featuring Stripe purple as the primary color, complemented by gradient grid backgrounds, elegant card shadows, and smooth animations, ideal for payment products and developer tools.
Best For
Stripe / 金融 / 支付
Primary Move
Use Stripe purple #635bff as the primary color
Watch Out
Do NOT use overly vibrant color schemes
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#635bff
Secondary
#0a2540
Accent 1
#00d4ff
Accent 2
#7a73ff
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: Stripe Style
style_slug: stripe-style
style_source: /styles/stripe-style
# 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 Stripe Style design frontend development expert. All generated code must strictly follow these constraints:
## Absolute Prohibitions
- Using non-Stripe brand colors as primary
- Using excessively large radii rounded-3xl, rounded-full (except buttons)
- Using rough single-layer shadows
- Ignoring grid background elements
- Using unprofessional color schemes
## Must Follow
- Primary color Stripe purple #635bff
- Dark text #0a2540
- Background color #f6f9fc
- Refined multi-layer shadows
- Moderate radii rounded-lg, rounded-xl
- Smooth transition animations
## Color Palette
Primary:
- Stripe purple: bg-[#635bff], text-[#635bff]
- Dark blue: text-[#0a2540]
- Background: bg-[#f6f9fc]
Accent colors:
- Cyan: #00d4ff
- Light purple: #7a73ff
- Bright cyan: #80e9ff
## Shadows
Card shadow:
shadow-[0_2px_4px_rgba(0,0,0,0.04),0_8px_16px_rgba(0,0,0,0.08)]
Button shadow:
shadow-[0_2px_4px_rgba(99,91,255,0.2),0_4px_8px_rgba(99,91,255,0.2)]
## Grid Background
Use CSS linear gradients to create grid:
background-image: linear-gradient(to right, rgba(99,91,255,0.1) 1px, transparent 1px),
linear-gradient(to bottom, rgba(99,91,255,0.1) 1px, transparent 1px);
background-size: 40px 40px;
## Self-Check
After generating code, verify:
1. Stripe purple used as primary color
2. Shadows are refined and multi-layered
3. Grid background elements present
4. Overall feel is professional and trustworthy
## Animation & Interaction Rules
- Fluid SaaS Motion: Button hover uses `hover:-translate-y-0.5 transition-all duration-[300ms] ease-out` -- SaaS feels responsive but never jarring. Never use `ease-in-out` (too slow) or instantaneous cuts.
- Floating Matrix: Card hover lifts with `hover:-translate-y-1 hover:shadow-[0_12px_30px_rgba(0,0,0,0.08)] transition-all duration-[400ms] ease-out`. The icon area uses `group-hover:scale-110 transition-transform duration-[400ms]` -- the card becomes interactive, the icon celebrates.
- Liquid Gradient Focus: Button uses inset highlight `shadow-[0_2px_5px_rgba(99,91,255,0.4),inset_0_1px_0_rgba(255,255,255,0.2)]` at rest, maintained on hover -- simulates convex glass surface catching light. Never use a flat-color button with no shadow.
- Hairline Crispness: Active press is `active:scale-[0.98] active:translate-y-0 active:shadow-[inset_0_2px_4px_rgba(0,0,0,0.2)]` -- the button physically depresses. The outer glow disappears; only the inset concave shadow remains.Component Templates
Stripe 风格按钮,Liquid Gradient Focus 内嵌高光 + Fluid SaaS Motion `duration-[300ms] ease-out` + Hairline Crispness active 下压感
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
/* 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;
}Compatible Layout Patterns
The following layout patterns pair well with the Stripe 风格 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
Stripe Style is a refined design style originating from Stripe, known for its signature purple and professional visual language. Through gradient grid backgrounds, elegant card shadows, and smooth animations, it conveys trust and technical prowess.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: D - Poor
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#0a2540 / #ffffff | 15.54:1 | ||
| Secondary text on background | /#4b5563 / #ffffff | 7.56:1 | ||
| Muted text on background | /#9ca3af / #ffffff | 2.54:1 | ||
| Text on secondary background | /#0a2540 / #f6f9fc | 14.7:1 | ||
| Secondary text on secondary | /#4b5563 / #f6f9fc | 7.15:1 | ||
| Button primary | /#ffffff / #635bff | 4.7:1 | ||
| Text on accent 1 | /#0a2540 / #635bff | 3.31:1 | ||
| Alt text on accent 1 | /#4b5563 / #635bff | 1.61:1 | ||
| Text on accent 2 | /#0a2540 / #0a2540 | 1:1 | ||
| Alt text on accent 2 | /#4b5563 / #0a2540 | 2.06:1 | ||
| Text on accent 3 | /#0a2540 / #635bff | 3.31:1 | ||
| Alt text on accent 3 | /#4b5563 / #635bff | 1.61:1 |
Readability
Score
85/100
Font Size
text-base
Font Weight
font-semibold text-[#0a2540]
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.
Design Recipes
These curated recipes combine this style with layouts and animations, optimized for specific use cases.