Best For
neon gradient / gradient ui / neon glow
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
neon gradient / gradient ui / neon glow
Primary Move
Use dark backgrounds bg-[#0f0a1e] or bg-slate-900
Watch Out
No light backgrounds
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)
---
# Neon Gradient Design System
> 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.
## Design Philosophy
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.
Core principles:
- Dark canvas: Deep purple/dark blue backgrounds as the perfect backdrop for neon colors
- Vivid gradients: Purple-pink, cyan-green, yellow-green and other highly saturated gradient fills
- Thick colored borders: 3-4px bright borders for enhanced visual impact
- Glow effects: box-shadow simulating neon light halos
- Floating elements: Stars, rockets, geometric shapes as decorations
Use cases: SaaS products, developer tools, gaming platforms, youth-oriented brands
---
## Token Dictionary (exact class mapping)
### Border
```
Width: border-4
Color: border-yellow-400
Radius: rounded-2xl
```
### Shadow
```
sm: shadow-[0_0_15px_rgba(168,85,247,0.3)]
md: shadow-[0_0_30px_rgba(168,85,247,0.4)]
lg: shadow-[0_0_40px_rgba(168,85,247,0.6)]
hover: hover:shadow-[0_0_40px_rgba(168,85,247,0.6)]
focus: focus:shadow-[0_0_20px_rgba(34,211,238,0.3)]
```
### Interaction
```
Hover translate: (none)
Hover scale: (none)
Hover opacity: hover:scale-105
Transition: transition-all duration-300
Active: active:scale-[0.98]
```
### Typefaces
```
Heading: font-bold text-white
Body: text-white/80
Mono: font-mono text-white/90
```
### Type scale
```
Hero: text-4xl md:text-6xl lg:text-7xl
H1: text-3xl md:text-5xl
H2: text-2xl md:text-3xl
H3: text-xl md:text-2xl
Body: text-sm md:text-base
Small: text-xs
```
### Spacing
```
Section: py-16 md:py-24
Container: px-4 md:px-8
Card: p-6 md:p-8
Gap sm: gap-3
Gap md: gap-4 md:gap-6
Gap lg: gap-8 md:gap-12
```
### Color roles
```
Background primary: bg-[#0f0a1e]
Background secondary: bg-gradient-to-br from-purple-500 via-pink-500 to-rose-500
Background accent: bg-gradient-to-br from-purple-500 to-pink-500, bg-gradient-to-br from-cyan-400 via-teal-500 to-green-500, bg-gradient-to-br from-pink-500 via-rose-500 to-red-500, bg-gradient-to-r from-cyan-400 via-green-400 to-yellow-400
Text primary: text-white
Text secondary: text-white/80
Text muted: text-white/40
Button primary: bg-gradient-to-r from-cyan-400 to-pink-500 text-white
Button secondary: bg-transparent text-white border-2 border-cyan-400
```
---
## [FORBIDDEN]
These classes are banned in this style. Check for them before returning code:
### Banned classes
- `bg-white`
- `bg-gray-50`
- `bg-gray-100`
- `bg-slate-50`
- `bg-gray-500`
- `text-gray-500`
- `rounded-none`
- `rounded-sm`
- `rounded`
- `shadow-sm`
- `shadow`
### Banned patterns
- matches `^bg-white$`
- matches `^bg-gray-[0-2]00$`
- matches `^rounded-none$`
- matches `^rounded-sm$`
- matches `^rounded$`
- matches `^border$`
- matches `^border-2$`
### Why they are banned
- `bg-white`: Neon Gradient uses dark background bg-[#0f0a1e]
- `rounded-none`: Neon Gradient uses large rounded corners (rounded-2xl or rounded-3xl)
- `rounded-sm`: Neon Gradient uses large rounded corners (rounded-2xl or rounded-3xl)
- `border`: Neon Gradient uses thick borders (border-4) for visual impact
- `border-2`: Neon Gradient uses thick borders (border-4) for visual impact
- `shadow-sm`: Neon Gradient uses glow shadows shadow-[0_0_30px_...]
> WARNING: if your code contains any of the above, replace it before shipping.
---
## [REQUIRED]
### Every button must include
```
px-6 py-3 md:px-8 md:py-4
bg-gradient-to-r from-cyan-400 to-pink-500
text-white font-bold
rounded-xl
border-2 border-white/20
shadow-[0_0_20px_rgba(236,72,153,0.5)]
hover:shadow-[0_0_30px_rgba(236,72,153,0.7)]
hover:scale-105
transition-all duration-300
```
### Every card must include
```
bg-gradient-to-br from-purple-500 via-pink-500 to-rose-500
rounded-2xl md:rounded-3xl
border-4 border-yellow-400
p-6 md:p-8
shadow-[0_0_30px_rgba(168,85,247,0.4)]
hover:shadow-[0_0_40px_rgba(168,85,247,0.6)]
hover:-translate-y-2
transition-all duration-300
```
### Every input must include
```
w-full px-5 py-4
bg-white/5
border-2 border-purple-500/50
rounded-xl
text-white
placeholder:text-white/40
focus:outline-none
focus:border-cyan-400
focus:shadow-[0_0_20px_rgba(34,211,238,0.3)]
transition-all duration-300
```
---
## [COMPARE] Neon Gradient wrong vs right
The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.
### Button
[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
Click me
</button>
```
[CORRECT] **Right** (uses this style's tokens):
```html
<button class="px-6 py-3 md:px-8 md:py-4 bg-gradient-to-r from-cyan-400 to-pink-500 text-white font-bold rounded-xl border-2 border-white/20 shadow-[0_0_20px_rgba(236,72,153,0.5)] hover:shadow-[0_0_30px_rgba(236,72,153,0.7)] hover:scale-105 transition-all duration-300 bg-gradient-to-r from-cyan-400 to-pink-500 text-white">
Click me
</button>
```
### Card
[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="bg-gradient-to-br from-purple-500 via-pink-500 to-rose-500 rounded-2xl md:rounded-3xl border-4 border-yellow-400 p-6 md:p-8 shadow-[0_0_30px_rgba(168,85,247,0.4)] hover:shadow-[0_0_40px_rgba(168,85,247,0.6)] hover:-translate-y-2 transition-all duration-300 p-6 md:p-8">
<h3 class="font-bold text-white text-xl md:text-2xl">{TITLE}</h3>
</div>
```
### Input
[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="w-full px-5 py-4 bg-white/5 border-2 border-purple-500/50 rounded-xl text-white placeholder:text-white/40 focus:outline-none focus:border-cyan-400 focus:shadow-[0_0_20px_rgba(34,211,238,0.3)] transition-all duration-300" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Neon Gradient page skeletons
These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:
### Navigation
```html
<nav class="bg-[#0f0a1e] text-white border-4 border-yellow-400 px-4 md:px-8">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-4 md:gap-6">
<a href="/" class="font-bold text-white text-xl md:text-2xl">
{LOGO_TEXT}
</a>
<div class="flex gap-4 md:gap-6 text-white/80 text-xs">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero section
```html
<section class="bg-gradient-to-br from-purple-500 to-pink-500 text-white py-16 md:py-24 px-4 md:px-8">
<div class="max-w-4xl mx-auto">
<h1 class="font-bold text-white text-4xl md:text-6xl lg:text-7xl">
{HEADLINE}
</h1>
<p class="text-white/80 text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="px-6 py-3 md:px-8 md:py-4 bg-gradient-to-r from-cyan-400 to-pink-500 text-white font-bold rounded-xl border-2 border-white/20 shadow-[0_0_20px_rgba(236,72,153,0.5)] hover:shadow-[0_0_30px_rgba(236,72,153,0.7)] hover:scale-105 transition-all duration-300 bg-gradient-to-r from-cyan-400 to-pink-500 text-white">
{CTA_TEXT}
</button>
</div>
</section>
```
### Card grid
```html
<section class="bg-[#0f0a1e] text-white py-16 md:py-24 px-4 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-bold text-white text-2xl md:text-3xl">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6">
<!-- Card template - repeat for each card -->
<div class="bg-gradient-to-br from-purple-500 via-pink-500 to-rose-500 rounded-2xl md:rounded-3xl border-4 border-yellow-400 p-6 md:p-8 shadow-[0_0_30px_rgba(168,85,247,0.4)] hover:shadow-[0_0_40px_rgba(168,85,247,0.6)] hover:-translate-y-2 transition-all duration-300 p-6 md:p-8">
<h3 class="font-bold text-white text-xl md:text-2xl">{CARD_TITLE}</h3>
<p class="text-white/80 text-sm md:text-base text-white/40">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### Form input
```html
<input class="w-full px-5 py-4 bg-white/5 border-2 border-purple-500/50 rounded-xl text-white placeholder:text-white/40 focus:outline-none focus:border-cyan-400 focus:shadow-[0_0_20px_rgba(34,211,238,0.3)] transition-all duration-300" placeholder="{PLACEHOLDER}" />
```
### Footer
```html
<footer class="bg-gradient-to-br from-purple-500 via-pink-500 to-rose-500 text-white/80 py-16 md:py-24 px-4 md:px-8">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 md:gap-12">
<div>
<span class="font-bold text-white text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="text-white/80 text-xs">{TAGLINE}</p>
</div>
<div>
<h4 class="font-bold text-white text-xl md:text-2xl">{COLUMN_TITLE}</h4>
<ul class="text-white/80 text-xs">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Neon Gradient post-generation self check
**Before returning code, verify every token and rule below. Fix any violation before delivering:**
### Token check
- [ ] Button includes: `px-6 py-3 md:px-8 md:py-4 bg-gradient-to-r from-cyan-400 to-pink-500 text-white font-bold rounded-xl border-2 border-white/20 shadow-[0_0_20px_rgba(236,72,153,0.5)] hover:shadow-[0_0_30px_rgba(236,72,153,0.7)] hover:scale-105 transition-all duration-300`
- [ ] Card includes: `bg-gradient-to-br from-purple-500 via-pink-500 to-rose-500 rounded-2xl md:rounded-3xl border-4 border-yellow-400 p-6 md:p-8 shadow-[0_0_30px_rgba(168,85,247,0.4)] hover:shadow-[0_0_40px_rgba(168,85,247,0.6)] hover:-translate-y-2 transition-all duration-300`
- [ ] Input includes: `w-full px-5 py-4 bg-white/5 border-2 border-purple-500/50 rounded-xl text-white placeholder:text-white/40 focus:outline-none focus:border-cyan-400 focus:shadow-[0_0_20px_rgba(34,211,238,0.3)] transition-all duration-300`
### Forbidden check
- [ ] Not using `bg-white`
- [ ] Not using `bg-gray-50`
- [ ] Not using `bg-gray-100`
- [ ] Not using `bg-slate-50`
- [ ] Not using `bg-gray-500`
- [ ] Not using `text-gray-500`
- [ ] Not using `rounded-none`
- [ ] Not using `rounded-sm`
### Style rule check
- [ ] Use dark backgrounds bg-[#0f0a1e] or bg-slate-900
- [ ] Cards use gradient fills bg-gradient-to-br from-purple-500 to-pink-500
- [ ] Add thick colored borders border-4 border-yellow-400
- [ ] Use rounded corners rounded-2xl or rounded-3xl
- [ ] Add glow shadows shadow-[0_0_30px_rgba(168,85,247,0.5)]
### Style drift check
- [ ] Does not violate: No light backgrounds
- [ ] Does not violate: No low-saturation colors
- [ ] Does not violate: No thin borders border or border-2
- [ ] Does not violate: No gray-toned cards
- [ ] Does not violate: No omitting glow effects
### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Neon Gradient
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- light backgrounds
- low-saturation colors
- thin borders border or border-2
- gray-toned cards
- omitting glow effects
- emoji (use Lucide icons instead)
## Self-Check (Verify Before Shipping)
If any item fails, the style has drifted — fix before shipping.
- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] no light backgrounds
- [ ] no low-saturation colors
- [ ] no thin borders border or border-2
- [ ] no gray-toned cards
- [ ] no omitting glow effectsMore prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts
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
FAQ
/* 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;
}Related Styles
Explore these styles for ready-made tokens and components.
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.