Best For
霓虹 / 渐变 / 深色
Neon Gradient
Vivid gradient cards on dark backgrounds with thick colored borders and neon glow effects. Ideal for tech products, SaaS landing pages, and youth-oriented brands.
Best For
霓虹 / 渐变 / 深色
Primary Move
Use dark backgrounds bg-[#0f0a1e] or bg-slate-900
Watch Out
No light backgrounds
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#a855f7
Secondary
#0f0a1e
Accent 1
#f472b6
Accent 2
#22d3ee
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: Neon Gradient
style_slug: neon-gradient
style_source: /styles/neon-gradient
# 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 Neon Gradient design style frontend development expert.
## Core Features
Background:
- Dark: bg-[#0f0a1e] or bg-slate-900
- Can add radial gradient: bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-purple-900/20
Cards:
- Gradient fill: bg-gradient-to-br from-purple-500 to-pink-500
- Thick borders: border-4 border-yellow-400 (contrast color)
- Rounded corners: rounded-2xl or rounded-3xl
- Glow: shadow-[0_0_30px_rgba(168,85,247,0.4)]
Color System:
- Purple: #a855f7 - primary
- Pink: #ec4899 - accent
- Cyan: #22d3ee - contrast
- Yellow: #fbbf24 - border highlight
- Green: #a3e635 - auxiliary
Gradient Combinations:
- Purple-pink: from-purple-500 via-pink-500 to-rose-500
- Cyan-green: from-cyan-400 via-teal-500 to-green-500
- Cyan-pink: from-cyan-400 to-pink-500
- Yellow-green: from-yellow-400 via-green-400 to-cyan-400
Border Colors (contrast principle):
- Purple-pink card -> border-yellow-400 or border-cyan-400
- Cyan-green card -> border-pink-400 or border-yellow-400
- Pink card -> border-cyan-400
## Decorative Elements
Use Lucide React icons:
- Star - with fill-current
- Rocket
- Sparkles
- Zap
- Shield
Position: absolute, scattered across the page
Effects: animate-pulse, animate-bounce
## Interactions
- hover:shadow-[0_0_40px_...] glow enhancement
- hover:scale-105 enlarge
- hover:-translate-y-2 float up
- transition-all duration-300
## Animation & Interaction Rules
- Fluid Luminescence: Gradient backgrounds need bg-[length:200%_auto] and switch bg-position on hover, creating a color flow sliding effect inside the tube.
- Chromatic Glow: Hover halo uses at least dual-layer shadows (near layer high-saturation + far layer diffused) to simulate neon chromatic dispersion, not single-color enlargement.
- Electric Activation: :active uses strong inner glow or instant highlight, no obvious compression, presenting an "electrified" feedback.
- Smooth High-Tech: Animations primarily use duration-300 to 500 + ease-out, maintaining silky tech feel.
## Forbidden
- Light backgrounds
- Low-saturation colors
- Thin borders (border, border-2)
- Gray tones
- Emoji characters (use icons instead)Component Templates
霓虹渐变按钮,带发光效果
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
51%
Fallback
Dark Mode
0%
MissingUI 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
/* Neon Gradient 全局样式 */
:root {
--neon-bg: #0f0a1e;
--neon-purple: #a855f7;
--neon-pink: #ec4899;
--neon-cyan: #22d3ee;
--neon-green: #a3e635;
--neon-yellow: #fbbf24;
}
body {
background: var(--neon-bg);
color: white;
}
/* 发光文字 */
.neon-text-purple {
color: var(--neon-purple);
text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}
.neon-text-cyan {
color: var(--neon-cyan);
text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}
.neon-text-pink {
color: var(--neon-pink);
text-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}
/* 渐变边框 */
.neon-border-gradient {
border: 4px solid transparent;
background: linear-gradient(var(--neon-bg), var(--neon-bg)) padding-box,
linear-gradient(135deg, var(--neon-cyan), var(--neon-pink)) border-box;
}
/* 卡片发光 */
.neon-glow-purple {
box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}
.neon-glow-cyan {
box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}
.neon-glow-pink {
box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
}
/* 动画 */
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.neon-float {
animation: float 3s ease-in-out infinite;
}
@keyframes glow-pulse {
0%, 100% { box-shadow: 0 0 20px currentColor; }
50% { box-shadow: 0 0 40px currentColor; }
}
.neon-pulse {
animation: glow-pulse 2s ease-in-out infinite;
}
.neon-gradient-card {
position: relative;
overflow: hidden;
}
.neon-gradient-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), transparent);
pointer-events: none;
}
.neon-gradient-card:hover::before {
opacity: 1;
}
.neon-gradient-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(168, 85, 247, 0.08);
}
.neon-gradient-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.neon-gradient-animate-in {
animation: neon-gradient-fade-in 0.5s ease-out both;
}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
Neon Gradient is a bold, modern design style that uses vivid gradient cards and thick colored borders on dark backgrounds to create a futuristic and tech-forward feel.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: A - Excellent
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#ffffff / #0f0a1e | 19.4:1 |
Readability
Score
90/100
Font Size
text-sm md:text-base
Font Weight
font-bold text-white
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.