Best For
generative art / creative coding / algorithmic design
Algorithm-driven procedural visual aesthetics using mathematical functions, noise textures, and parametric graphics to create unique dynamic interfaces. Ideal for creative coding, data visualization, and art projects.
Best For
generative art / creative coding / algorithmic design
Primary Move
Use near-black backgrounds bg-[#0a0a0a] or bg-neutral-950
Watch Out
Do not use images or raster bitmaps
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: Generative Art
style_slug: generative-art
style_source: /styles/generative-art
# 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
STYLE: Generative Art
TYPE: Algorithm-driven visual aesthetics
MUST USE:
- Dark background: bg-[#0a0a0a] or bg-neutral-950
- Primary accent: Violet/purple (#7c3aed) as base generative color
- Color palette: Algorithmically derived via HSL rotation from violet base
- Monospace fonts: font-mono for all text (code-art aesthetic)
- SVG geometric shapes as decorative backgrounds
- Dark glass cards: bg-neutral-900/80 backdrop-blur with subtle borders
- Violet glow: shadow-[0_0_20px_rgba(124,58,237,0.4)] for interactive elements
- Parameter display: Show seed values, coordinates, algorithm names as UI elements
MUST AVOID:
- Stock photos or raster images
- Light/white backgrounds
- Serif or sans-serif fonts
- Conventional shadows (shadow-md)
- Static lifeless layouts
- Decorative elements that are not procedurally derived
Animation & Interaction Rules:
- Algorithmic Flow: Interactions should reflect parameter computation, simulating noise flow through grid or gradient layer linear displacement.
- Parameter Shifting: On hover, slightly adjust letter-spacing and marker shapes (e.g., square dot rotation), hinting at seed/parameter changes without being flashy.
- Exact Precision: Prefer ease-linear with duration-200, maintaining programmatic, predictable feedback rhythm.
- Mathematical Glow: Glow should have clear geometric edges, avoiding excessive fogging that blurs information hierarchy.
---
# Generative Art Design System
> Algorithm-driven procedural visual aesthetics using mathematical functions, noise textures, and parametric graphics to create unique dynamic interfaces. Ideal for creative coding, data visualization, and art projects.
## Design Philosophy
Generative Art style originates from creative coding and algorithmic aesthetics, where every visual element is generated by mathematical functions and procedural rules.
Core principles:
- Algorithm-driven: colors, shapes, and textures are generated through mathematical functions, not hand-drawn
- Parametric design: output is controlled through seed values, iteration counts, and other parameters
- Order within chaos: Perlin noise, fractals, and particle systems create the intersection of nature and mathematics
- Code as art: monospace fonts and parameter labels hint at the underlying code nature
- Dark canvas: near-black backgrounds make algorithmically generated colors more striking
---
## Token Dictionary (exact class mapping)
### Border
```
Width: border
Color: border-neutral-800
Radius: rounded-xl
```
### Shadow
```
sm: shadow-[0_0_10px_rgba(124,58,237,0.15)]
md: shadow-[0_0_20px_rgba(124,58,237,0.25)]
lg: shadow-[0_0_40px_rgba(124,58,237,0.4)]
hover: shadow-[0_0_25px_rgba(124,58,237,0.3)]
focus: shadow-[0_0_15px_rgba(124,58,237,0.3)]
```
### Interaction
```
Hover translate: (none)
Hover scale: hover:border-violet-500/30 hover:shadow-[0_0_20px_rgba(124,58,237,0.2)]
Hover opacity: (none)
Transition: transition-all duration-300
Active: active:scale-[0.98]
```
### Typefaces
```
Heading: font-mono font-bold
Body: font-mono text-sm
Mono: font-mono
```
### 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-lg md:text-xl
Body: text-sm md:text-base
Small: text-xs
```
### Spacing
```
Section: py-16 md:py-24
Container: px-6 md:px-8
Card: p-6
Gap sm: gap-3
Gap md: gap-6
Gap lg: gap-8
```
### Color roles
```
Background primary: bg-[#0a0a0a]
Background secondary: bg-neutral-900
Background accent: bg-violet-500/10, bg-blue-500/10, bg-teal-500/10
Text primary: text-white
Text secondary: text-neutral-400
Text muted: text-neutral-600
Button primary: bg-violet-600 text-white
Button secondary: bg-transparent text-violet-400 border border-violet-500/40
```
---
## [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`
- `font-serif`
- `font-sans`
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `rounded-none`
- `text-gray-900`
### Banned patterns
- matches `^bg-white`
- matches `^bg-gray-[1-3]`
- matches `^bg-slate-[1-3]`
- matches `^shadow-(?!\[)`
- matches `^font-serif`
- matches `^font-sans`
### Why they are banned
- `bg-white`: Generative art uses dark backgrounds only
- `font-serif`: Use monospace fonts for code-art aesthetic
- `font-sans`: Use monospace fonts for code-art aesthetic
- `shadow-md`: Use algorithmic glow shadows: shadow-[0_0_20px_rgba(124,58,237,0.4)]
- `rounded-none`: Use rounded-xl for generative art panels
> WARNING: if your code contains any of the above, replace it before shipping.
---
## [REQUIRED]
### Every button must include
```
px-6 py-3
rounded-lg
font-mono
text-sm
transition-all duration-300
border
```
### Every card must include
```
bg-neutral-900/80
backdrop-blur
border border-neutral-800
rounded-xl
```
### Every input must include
```
bg-neutral-950
border border-neutral-700
rounded-lg
text-neutral-100
font-mono
text-sm
focus:border-violet-500
focus:shadow-[0_0_10px_rgba(124,58,237,0.2)]
```
---
## [COMPARE] Generative Art 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 rounded-lg font-mono text-sm transition-all duration-300 border bg-violet-600 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-neutral-900/80 backdrop-blur border border-neutral-800 rounded-xl p-6">
<h3 class="font-mono font-bold text-lg md:text-xl">{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="bg-neutral-950 border border-neutral-700 rounded-lg text-neutral-100 font-mono text-sm focus:border-violet-500 focus:shadow-[0_0_10px_rgba(124,58,237,0.2)]" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Generative Art page skeletons
These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:
### Navigation
```html
<nav class="bg-[#0a0a0a] text-white border border-neutral-800 px-6 md:px-8">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-6">
<a href="/" class="font-mono font-bold text-lg md:text-xl">
{LOGO_TEXT}
</a>
<div class="flex gap-6 font-mono text-sm text-xs">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero section
```html
<section class="bg-violet-500/10 text-white py-16 md:py-24 px-6 md:px-8">
<div class="max-w-4xl mx-auto">
<h1 class="font-mono font-bold text-4xl md:text-6xl lg:text-7xl">
{HEADLINE}
</h1>
<p class="font-mono text-sm text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="px-6 py-3 rounded-lg font-mono text-sm transition-all duration-300 border bg-violet-600 text-white">
{CTA_TEXT}
</button>
</div>
</section>
```
### Card grid
```html
<section class="bg-[#0a0a0a] text-white py-16 md:py-24 px-6 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-mono font-bold text-2xl md:text-3xl">{SECTION_TITLE}</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Card template - repeat for each card -->
<div class="bg-neutral-900/80 backdrop-blur border border-neutral-800 rounded-xl p-6">
<h3 class="font-mono font-bold text-lg md:text-xl">{CARD_TITLE}</h3>
<p class="font-mono text-sm text-sm md:text-base text-neutral-600">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### Form input
```html
<input class="bg-neutral-950 border border-neutral-700 rounded-lg text-neutral-100 font-mono text-sm focus:border-violet-500 focus:shadow-[0_0_10px_rgba(124,58,237,0.2)]" placeholder="{PLACEHOLDER}" />
```
### Footer
```html
<footer class="bg-neutral-900 text-neutral-400 py-16 md:py-24 px-6 md:px-8">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<span class="font-mono font-bold text-lg md:text-xl">{LOGO_TEXT}</span>
<p class="font-mono text-sm text-xs">{TAGLINE}</p>
</div>
<div>
<h4 class="font-mono font-bold text-lg md:text-xl">{COLUMN_TITLE}</h4>
<ul class="font-mono text-sm text-xs">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Generative Art 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 rounded-lg font-mono text-sm transition-all duration-300 border`
- [ ] Card includes: `bg-neutral-900/80 backdrop-blur border border-neutral-800 rounded-xl`
- [ ] Input includes: `bg-neutral-950 border border-neutral-700 rounded-lg text-neutral-100 font-mono text-sm focus:border-violet-500 focus:shadow-[0_0_10px_rgba(124,58,237,0.2)]`
### Forbidden check
- [ ] Not using `bg-white`
- [ ] Not using `bg-gray-50`
- [ ] Not using `bg-gray-100`
- [ ] Not using `bg-slate-50`
- [ ] Not using `font-serif`
- [ ] Not using `font-sans`
- [ ] Not using `shadow-sm`
- [ ] Not using `shadow-md`
### Style rule check
- [ ] Use near-black backgrounds bg-[#0a0a0a] or bg-neutral-950
- [ ] Use HSL rotation to generate algorithmic palettes, with violet #7c3aed as base
- [ ] All text uses font-mono monospace fonts
- [ ] Use SVG geometric patterns (circles, lines, curve grids) as decorative backgrounds
- [ ] Display parameter elements: seed values, coordinates, iteration counts, etc.
### Style drift check
- [ ] Does not violate: Do not use images or raster bitmaps
- [ ] Does not violate: Do not use traditional UI patterns (unless algorithmically transformed)
- [ ] Does not violate: Do not use static, lifeless layouts
- [ ] Does not violate: Do not use more than 5 colors without algorithmic justification
- [ ] Does not violate: Do not use decorative elements that are not procedurally derived
### 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 Generative Art
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- use images or raster bitmaps
- use traditional UI patterns (unless algorithmically transformed)
- use static, lifeless layouts
- use more than 5 colors without algorithmic justification
- use decorative elements that are not procedurally derived
- use light/white backgrounds
- use serif or sans fonts (must use monospace)
- use spring, bounce, or other skeuomorphic elastic animations
## 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
- [ ] do not use images or raster bitmaps
- [ ] do not use traditional UI patterns (unless algorithmically transformed)
- [ ] do not use static, lifeless layouts
- [ ] do not use more than 5 colors without algorithmic justification
- [ ] do not use decorative elements that are not procedurally derivedMore prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts
Component Templates
Generative Art 风格算法主题按钮
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
/* Generative Art Global Styles */
@layer base {
body {
@apply bg-[#0a0a0a] text-white antialiased;
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
::selection {
@apply bg-violet-600 text-white;
}
}
@keyframes gen-rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes gen-pulse {
0%, 100% { opacity: 0.4; transform: scale(1); }
50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes gen-drift {
0%, 100% { transform: translate(0, 0); }
25% { transform: translate(10px, -10px); }
50% { transform: translate(-5px, 15px); }
75% { transform: translate(-15px, -5px); }
}
@keyframes gen-hue-cycle {
0% { filter: hue-rotate(0deg); }
100% { filter: hue-rotate(360deg); }
}
/* Generative Art Design Tokens */
:root {
--generative-art-primary: #7c3aed;
--generative-art-secondary: #0a0a0a;
--generative-art-accent: #3b82f6;
--generative-art-glow: rgba(124, 58, 237, 0.3);
}
.generative-art-card {
position: relative;
overflow: hidden;
}
.generative-art-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent);
pointer-events: none;
}
.generative-art-card:hover::before {
opacity: 1;
}
.generative-art-gradient {
background: linear-gradient(135deg, #7c3aed, #3b82f6);
}
.generative-art-gradient-text {
background: linear-gradient(135deg, #7c3aed, #3b82f6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.generative-art-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(124, 58, 237, 0.08);
}
.generative-art-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.generative-art-animate-in {
animation: generative-art-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
Generative Art style originates from creative coding and algorithmic aesthetics, where every visual element is generated by mathematical functions and procedural rules.
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 / #0a0a0a | 19.8:1 |
Readability
Score
85/100
Font Size
text-sm md:text-base
Font Weight
font-mono font-bold
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.