Best For
modern gradient / gradient design / gradient background
现代渐变风
Rate this styleVibrant modern gradient style with colorful gradient backgrounds, glass-textured cards, and dynamic lighting effects. Ideal for startups, digital products, and event pages.
Best For
modern gradient / gradient design / gradient background
Primary Move
Use bg-gradient-to-r from-violet-500 via-purple-500 to-fuchsia-500 and similar gradients
Watch Out
Do not use solid color backgrounds (main areas)
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.
A violet-pink beam over a deep indigo night, sliced into layers by glass cards.
Theme: dark
Modern Gradient belongs to the startup launch page: a deep indigo ground (#1e1b4b) holds the frame while a violet-to-fuchsia gradient acts as the single light source, and glass cards slice that light into layers. The key is that the gradient has direction — buttons carry a three-stop 200%-wide gradient that slides to the far end on hover, so the color itself moves rather than merely swapping. Cards use a 10% white fill with a 20% white border, and on hover the fill rises while a violet glow bleeds in. Motion runs slow at 500ms ease-out, paired with a slight lift and 1.02 scale, so the movement of light is felt.
| Name | Value | Token | Role |
|---|---|---|---|
| Violet | #8b5cf6 | --color-violet | The gradient's start and the primary accent; every glow originates here. |
| Deep Indigo | #1e1b4b | --color-deep-indigo | Page ground. Warmer than black, letting violet read as light rather than grey. |
| Fuchsia | #ec4899 | --color-fuchsia | The gradient's far end and hover state; appears only with violet to form the beam. |
| Cyan | #06b6d4 | --color-cyan | Data, second chart series and contrast highlights, pairing cool against the violet. |
| Amber | #f59e0b | --color-amber | Scarcity cues and badges, at most once per screen to break the cool palette. |
| Glass White | rgba(255,255,255,0.10) | --color-glass | Card fill. It needs a border and blur or it vanishes on the dark ground. |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | — | 700 | 64px | 1.05 | -0.03em | --text-display |
| heading-lg | — | 700 | 40px | 1.1 | -0.02em | --text-heading-lg |
| heading | — | 600 | 28px | 1.2 | — | --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 | — | 600 | 12px | 1.4 | 0.06em | --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 | 24px |
| buttons | 16px |
| inputs | 16px |
| icons | 16px |
Role: Primary action
A violet-to-fuchsia-to-violet linear gradient at 200% width, white text, 16px radius, no border, 16px type at weight 700 with 0.02em tracking and 16px 32px padding. The resting shadow is 0 8px 20px at 30% violet. Hover slides the background position to the far end (so the gradient runs in reverse), widens the shadow to 0 15px 30px at 40% fuchsia, lifts 4px and scales 1.02; press scales 0.95. 500ms ease-out.
Role: Feature and content card
10% white fill, 20px blur, a 1px white border at 20%, 24px radius, 32px padding. The icon tile is 56px square with a gradient fill, 16px radius and a white glyph. Hover raises the fill to 15%, turns the border to 50% violet, lifts 8px, scales 1.02 and adds a 0 20px 50px glow at 18% violet, while the tile scales to 1.1 and rotates 12 degrees, over 500ms ease-out.
Role: Form and newsletter input
8% white fill, 10px blur, a 1px white border at 18%, 16px radius, 14px 18px padding at 14px. The placeholder sits at 45% white. Focus turns the border to 60% violet and adds a 3px ring at 25% violet.
Role: Hero backdrop light
Two or three 600px radial light wells on the indigo ground (40% violet, 30% fuchsia, 20% cyan) with a 120px blur at 60% opacity. Confined to the hero and one or two sections, pinned while the page scrolls.
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Deep Indigo | #1e1b4b | 页面底 |
| 1 | Glass | rgba(255,255,255,0.10) | 卡片与面板 |
| 2 | Glass Hover | rgba(255,255,255,0.15) | hover 态填充 |
0 8px 20px rgba(167,139,250,0.30)0 15px 30px rgba(217,70,239,0.40)0 20px 50px rgba(167,139,250,0.18)Abstract gradients, light wells and 3D-rendered geometry. Cropped product UI may sit over a gradient. No people photography, realistic illustration or flat solid grounds — without light this style stops existing.
Capped at 1200px over twelve columns with 24px padding, sections 112px apart. The hero is centred and fills the first viewport with a headline of two lines at most. Features run as three glass cards. The page stays dark throughout, with at most one inverted footer.
QUICK COLOR REFERENCE:
#f8fafc#1e1b4brgba(255,255,255,0.10)#8b5cf6#ec4899rgba(255,255,255,0.20)EXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-violet: #8b5cf6;
--color-deep-indigo: #1e1b4b;
--color-fuchsia: #ec4899;
--color-cyan: #06b6d4;
--color-amber: #f59e0b;
--color-glass: rgba(255,255,255,0.10);
/* Typography — Font Families */
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 64px;
--leading-display: 1.05;
--tracking-display: -0.03em;
--text-heading-lg: 40px;
--leading-heading-lg: 1.1;
--tracking-heading-lg: -0.02em;
--text-heading: 28px;
--leading-heading: 1.2;
--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.06em;
/* 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: 1200px;
--section-gap: 112px;
--card-padding: 32px;
--element-gap: 24px;
--density: comfortable;
/* Border Radius */
--radius-cards: 24px;
--radius-buttons: 16px;
--radius-inputs: 16px;
--radius-icons: 16px;
/* Surfaces */
--surface-deep-indigo: #1e1b4b;
--surface-glass: rgba(255,255,255,0.10);
--surface-glass-hover: rgba(255,255,255,0.15);
}
Component Templates
FAQ
/* Modern Gradient Global Styles */
@layer base {
body {
@apply bg-slate-950 text-white antialiased;
}
}
/* Gradient text utility */
.gradient-text {
@apply bg-gradient-to-r from-violet-400 via-fuchsia-400 to-pink-400 bg-clip-text text-transparent;
}
/* Glow orb decoration */
.glow-orb {
@apply absolute blur-3xl opacity-30 pointer-events-none;
}
/* Animated gradient background */
@keyframes gradient-shift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.animated-gradient {
background-size: 200% 200%;
animation: gradient-shift 8s ease infinite;
}
/* Modern Gradient Design Tokens */
:root {
--modern-gradient-primary: #8b5cf6;
--modern-gradient-secondary: #1e1b4b;
--modern-gradient-accent: #06b6d4;
--modern-gradient-glow: rgba(139, 92, 246, 0.3);
}
.modern-gradient-card {
position: relative;
overflow: hidden;
}
.modern-gradient-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
pointer-events: none;
}
.modern-gradient-card:hover::before {
opacity: 1;
}
.modern-gradient-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(139, 92, 246, 0.08);
}
.modern-gradient-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.modern-gradient-animate-in {
animation: modern-gradient-fade-in 0.5s ease-out both;
}Compatible Layout Patterns
The following layout patterns pair well with the Modern Gradient style.
Related Styles
Explore these styles for ready-made tokens and components.
Modern Gradient and Acid Graphics 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 | Modern Gradient | Acid Graphics |
|---|---|---|
| Primary color | #8b5cf6 | #39ff14 |
| Secondary color | #1e1b4b | #0a0a0a |
| Best for | modern gradient / gradient design / gradient background | acid graphics / acid design / psychedelic design |
| Unique tags | — | high-contrast |
Modern Gradient style creates visual impact and vitality through rich gradient colors and lighting effects.