StyleKit

Modern Gradient

现代渐变风

Rate this style

Vibrant modern gradient style with colorful gradient backgrounds, glass-textured cards, and dynamic lighting effects. Ideal for startups, digital products, and event pages.

modern gradientgradient designgradient backgroundmesh gradientvibrant colorsglass cardsdynamic lightingcolorful uistartup landing pageSaaS websitehero section

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

Modern Gradient as a design document

One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.

Document view

Modern Gradient — Style Reference

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.

Colors

NameValueTokenRole
Violet#8b5cf6--color-violetThe gradient's start and the primary accent; every glow originates here.
Deep Indigo#1e1b4b--color-deep-indigoPage ground. Warmer than black, letting violet read as light rather than grey.
Fuchsia#ec4899--color-fuchsiaThe gradient's far end and hover state; appears only with violet to form the beam.
Cyan#06b6d4--color-cyanData, second chart series and contrast highlights, pairing cool against the violet.
Amber#f59e0b--color-amberScarcity cues and badges, at most once per screen to break the cool palette.
Glass Whitergba(255,255,255,0.10)--color-glassCard fill. It needs a border and blur or it vanishes on the dark ground.

Typography

Inter — The only face: 700 with tight tracking holds the glowing backdrop, while 400 keeps body copy legible on dark.
  • Substitute: system-ui, -apple-system, 'Segoe UI', sans-serif
  • Weights: 400, 500, 600, 700
  • Sizes: 12, 14, 16, 20, 28, 40, 64
  • Line height: 1.05 (display), 1.15 (headings), 1.6 (body)
  • Letter spacing: -0.03em on display, 0.06em on uppercase labels
Type Scale
RoleFamilyWeightSizeLine HeightLetter SpacingToken
display—70064px1.05-0.03em--text-display
heading-lg—70040px1.1-0.02em--text-heading-lg
heading—60028px1.2—--text-heading
subheading—60020px1.35—--text-subheading
body-lg—40016px1.6—--text-body-lg
body—40014px1.6—--text-body
label—60012px1.40.06em--text-label

Spacing & Layout

Base unit: 8px Density: comfortable

Spacing Scale
NameValueToken
88px--spacing-8
1616px--spacing-16
2424px--spacing-24
3232px--spacing-32
4848px--spacing-48
6464px--spacing-64
9696px--spacing-96
128128px--spacing-128
Border Radius
ElementValue
cards24px
buttons16px
inputs16px
icons16px
  • Page max-width: 1200px
  • Section gap: 112px
  • Card padding: 32px
  • Element gap: 24px

Components

Gradient Button

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.

  • Sizes: padding 16px 32px; label 16px
  • States: hover: gradient slides, lift 4px, glow widens; active: scale 0.95
Glass Card

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.

  • States: hover: fill 10%→15%, border violet, lift 8px, icon rotate 12deg
Gradient Input

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.

Aurora Backdrop

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.

Do's and Don'ts

Do
  • Gradients need direction; let the color travel on hover
  • Glass cards need blur, border and fill together
  • Ground in deep indigo, never pure black
  • Motion runs 500ms with a lift and 1.02 scale
  • Keep light wells to the hero and a few sections
  • Keep body contrast at 4.5:1 or better
Don't
  • No pure black ground
  • No borderless glass cards
  • Never run a gradient through body text
  • Do not use more than three accents at once
  • No fast transitions; light does not teleport
  • Do not tile light wells across the page

Surfaces

LevelNameValuePurpose
0Deep Indigo#1e1b4b页面底
1Glassrgba(255,255,255,0.10)卡片与面板
2Glass Hoverrgba(255,255,255,0.15)hover 态填充

Elevation

  • Button glow: 0 8px 20px rgba(167,139,250,0.30)
  • Button hover: 0 15px 30px rgba(217,70,239,0.40)
  • Card hover: 0 20px 50px rgba(167,139,250,0.18)

Imagery

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.

Layout

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.

Agent Prompt Guide

Implementation Contract
  • Use the requested page, user task and real content as the brief. Implement only the requested scope; identify missing business information instead of inventing data or capabilities.
  • Inspect the current project, stack and components first. Reuse its structure, routes, dependencies and components; do not rebuild unrelated pages or features.
  • Use the project's breakpoints to adapt columns and spacing for narrow and desktop screens. Preserve hierarchy and prevent accidental horizontal overflow.
  • For interactions in scope, support keyboard focus and reduced motion, with applicable disabled, loading, empty and error states.
  • Run the project's existing checks after implementation. Report only tests and visual checks actually run, and list unverified behavior.

QUICK COLOR REFERENCE:

  • text: #f8fafc
  • background: #1e1b4b
  • card: rgba(255,255,255,0.10)
  • accent: #8b5cf6
  • secondary: #ec4899
  • border: rgba(255,255,255,0.20)

EXAMPLE COMPONENT PROMPTS:

  1. Build a gradient primary button: background linear-gradient(90deg, #8b5cf6, #ec4899, #8b5cf6) at 200% auto, white text, 16px radius, weight 700, 16px 32px padding, shadow 0 8px 20px rgba(167,139,250,0.3). On hover move background-position to the right, widen the shadow to 0 15px 30px rgba(217,70,239,0.4), lift 4px and scale 1.02 over 500ms ease-out. The page ground is #1e1b4b.

Similar Brands

  • Stripe — Also uses gradients for a technical feel, though far more restrained
  • Glassmorphism — Same glass material, though the light here comes from a gradient rather than a night scene

Quick Start


: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);
}

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

Button

// Primary Gradient Button // Outline Gradient Button // Glass Button

FAQ

Modern Gradient — Frequently Asked Questions

What is the Modern Gradient design style?
Vibrant modern gradient style with colorful gradient backgrounds, glass-textured cards, and dynamic lighting effects. Ideal for startups, digital products, and event pages. Its core principle: Modern Gradient style creates visual impact and vitality through rich gradient colors and lighting effects.
What colors does Modern Gradient use?
Modern Gradient uses #8b5cf6 as its primary color and #1e1b4b as its secondary color, with accent colors #06b6d4, #ec4899, #f59e0b, #8587ff. Every hex value can be copied from the palette on this page.
How do I apply Modern Gradient correctly?
Key practices: Use bg-gradient-to-r from-violet-500 via-purple-500 to-fuchsia-500 and similar gradients. Cards use backdrop-blur-xl bg-white/10 glass effect. Buttons use gradient + hover gradient shift effect.
What are common mistakes with Modern Gradient?
Avoid: Do not use solid color backgrounds (main areas). Do not use monotone gray schemes. Do not use sharp corners rounded-none.
How do I prompt AI to generate Modern Gradient UI?
Copy the ready-made AI prompt on this page — it bundles the design tokens and component rules — and paste it into ChatGPT, Claude, Claude Code, or Codex. Effective prompts include the keywords: modern gradient, gradient design, gradient background, mesh gradient.
Global Styles

Global CSS

css
/* 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;
}

Related Styles

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.

AttributeModern GradientAcid Graphics
Primary color#8b5cf6#39ff14
Secondary color#1e1b4b#0a0a0a
Best formodern gradient / gradient design / gradient backgroundacid graphics / acid design / psychedelic design
Unique tags—high-contrast
Design Philosophy

Modern Gradient style creates visual impact and vitality through rich gradient colors and lighting effects.