Best For
solarpunk / solarpunk aesthetic / eco futurism
An optimistic eco-futurism style blending nature and technology in harmonious aesthetics. Organic curves, plant elements, warm gradients, and soft rounded corners. Ideal for eco-friendly, sustainable development, and green tech products.
Best For
solarpunk / solarpunk aesthetic / eco futurism
Primary Move
Use warm light backgrounds bg-[#fef3c7] or bg-green-50
Watch Out
No pure black backgrounds or dark themes
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: Solarpunk
style_slug: solarpunk
style_source: /styles/solarpunk
# 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: Solarpunk
TYPE: Eco-futurism organic interface
MUST USE:
- Light warm background: bg-[#f0fdf4] or bg-green-50 or bg-[#fef3c7]
- Organic gradients: bg-gradient-to-r from-green-400 to-emerald-500
- Soft shadows: shadow-lg shadow-green-200/50
- Large rounded corners: rounded-2xl or rounded-3xl
- Plant-themed icons: Leaf, Sun, Sprout, TreePine from Lucide
- Warm color palette: green-400, amber-400, sky-400
- Semi-transparent backgrounds: bg-white/80 backdrop-blur-sm
MUST AVOID:
- Dark/black backgrounds
- Sharp corners (rounded-none, rounded-sm)
- Industrial cold design
- Neon glow effects
- Dystopian or harsh aesthetics
- Gray/muted color schemes
COLOR RULES:
- Primary: Leaf Green (#4ade80)
- Secondary: Solar Gold (#fbbf24)
- Accent: Sky Blue (#38bdf8)
- Background: Warm cream (#fef3c7) or green-50
- Text: Dark green or gray-800
- Borders: Green-200 with subtle tint
SPECIAL EFFECTS:
- Organic gradient decorations
- Subtle backdrop blur for depth
- Hover lift with shadow enhancement
- Smooth transitions duration-300
## Animation & Interaction Rules
- Phototropic Lift: Elements float upward with slight tilt on hover, simulating growth toward light, keeping amplitude gentle to avoid instability.
- Solar Flare: Primary button brightens from green toward warm gold on hover, releasing a larger warm-toned halo.
- Organic Unfolding: Decorative patches and leaf elements unfold with longer duration, recommended duration-700 with ease-in-out.
- Soft Glass Resonance: Active state prioritizes feedback through opacity and shadow density changes, no mechanical hard-press feel.
---
# Solarpunk Design System
> An optimistic eco-futurism style blending nature and technology in harmonious aesthetics. Organic curves, plant elements, warm gradients, and soft rounded corners. Ideal for eco-friendly, sustainable development, and green tech products.
## Design Philosophy
Solarpunk style originates from an optimistic imagination of the future, depicting a world where humans and nature coexist harmoniously. It conveys hope and vitality through organic curves, plant elements, and warm color tones.
Core principles:
- Nature fusion: Organically combining plant and technology elements
- Warm tones: Leaf green, golden yellow, and sky blue form a warm color palette
- Organic curves: Soft rounded corners and flowing lines
- Optimistic emotion: Bright, fresh, and vibrant visual language
---
## Token Dictionary (exact class mapping)
### Border
```
Width: border
Color: border-green-200
Radius: rounded-2xl
```
### Shadow
```
sm: shadow-md shadow-green-100/40
md: shadow-lg shadow-green-200/40
lg: shadow-xl shadow-green-200/50
hover: shadow-xl shadow-green-300/50
focus: shadow-lg shadow-green-200/40
```
### Interaction
```
Hover translate: (none)
Hover scale: hover:scale-105
Hover opacity: (none)
Transition: transition-all duration-300
Active: active:scale-95
```
### Typefaces
```
Heading: font-bold
Body: font-sans
Mono: font-mono
```
### Type scale
```
Hero: text-4xl md:text-6xl lg:text-8xl
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
Gap sm: gap-4
Gap md: gap-6
Gap lg: gap-8
```
### Color roles
```
Background primary: bg-[#f0fdf4]
Background secondary: bg-[#fef3c7]
Background accent: bg-green-400, bg-amber-400, bg-sky-400
Text primary: text-gray-800
Text secondary: text-green-700
Text muted: text-gray-500
Button primary: bg-gradient-to-r from-green-400 to-emerald-500 text-white
Button secondary: bg-transparent text-green-600 border-2 border-green-400
```
---
## [FORBIDDEN]
These classes are banned in this style. Check for them before returning code:
### Banned classes
- `bg-black`
- `bg-gray-950`
- `bg-gray-900`
- `bg-[#0a0a0f]`
- `rounded-none`
- `rounded-sm`
- `text-cyan-400`
- `shadow-[0_0_20px`
### Banned patterns
- matches `^bg-gray-9`
- matches `^bg-black`
- matches `^rounded-none`
- matches `^rounded-sm$`
- matches `shadow-\[0_0_\d+px_rgba`
### Why they are banned
- `bg-black`: Solarpunk uses warm, light backgrounds only
- `bg-gray-950`: Dark backgrounds violate the optimistic eco aesthetic
- `rounded-none`: Use organic rounded corners (rounded-2xl or rounded-3xl)
- `rounded-sm`: Corners too sharp for organic Solarpunk style
> WARNING: if your code contains any of the above, replace it before shipping.
---
## [REQUIRED]
### Every button must include
```
px-6 py-3
rounded-2xl
font-medium
transition-all duration-300
```
### Every card must include
```
bg-white/80
border border-green-200
rounded-3xl
```
### Every input must include
```
bg-white/80
border border-green-200
rounded-2xl
text-gray-800
focus:border-green-400
focus:shadow-lg focus:shadow-green-200/40
```
---
## [COMPARE] Solarpunk 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-2xl font-medium transition-all duration-300 bg-gradient-to-r from-green-400 to-emerald-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-white/80 border border-green-200 rounded-3xl p-6">
<h3 class="font-bold 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="bg-white/80 border border-green-200 rounded-2xl text-gray-800 focus:border-green-400 focus:shadow-lg focus:shadow-green-200/40" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Solarpunk page skeletons
These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:
### Navigation
```html
<nav class="bg-[#f0fdf4] text-gray-800 border border-green-200 px-4 md:px-8">
<div class="flex items-center justify-between max-w-6xl mx-auto gap-6">
<a href="/" class="font-bold text-xl md:text-2xl">
{LOGO_TEXT}
</a>
<div class="flex gap-6 font-sans text-xs">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero section
```html
<section class="bg-green-400 text-gray-800 py-16 md:py-24 px-4 md:px-8">
<div class="max-w-4xl mx-auto">
<h1 class="font-bold text-4xl md:text-6xl lg:text-8xl">
{HEADLINE}
</h1>
<p class="font-sans text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="px-6 py-3 rounded-2xl font-medium transition-all duration-300 bg-gradient-to-r from-green-400 to-emerald-500 text-white">
{CTA_TEXT}
</button>
</div>
</section>
```
### Card grid
```html
<section class="bg-[#f0fdf4] text-gray-800 py-16 md:py-24 px-4 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="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-white/80 border border-green-200 rounded-3xl p-6">
<h3 class="font-bold text-xl md:text-2xl">{CARD_TITLE}</h3>
<p class="font-sans text-sm md:text-base text-gray-500">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### Form input
```html
<input class="bg-white/80 border border-green-200 rounded-2xl text-gray-800 focus:border-green-400 focus:shadow-lg focus:shadow-green-200/40" placeholder="{PLACEHOLDER}" />
```
### Footer
```html
<footer class="bg-[#fef3c7] text-green-700 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">
<div>
<span class="font-bold text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="font-sans text-xs">{TAGLINE}</p>
</div>
<div>
<h4 class="font-bold text-xl md:text-2xl">{COLUMN_TITLE}</h4>
<ul class="font-sans text-xs">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Solarpunk 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-2xl font-medium transition-all duration-300`
- [ ] Card includes: `bg-white/80 border border-green-200 rounded-3xl`
- [ ] Input includes: `bg-white/80 border border-green-200 rounded-2xl text-gray-800 focus:border-green-400 focus:shadow-lg focus:shadow-green-200/40`
### Forbidden check
- [ ] Not using `bg-black`
- [ ] Not using `bg-gray-950`
- [ ] Not using `bg-gray-900`
- [ ] Not using `bg-[#0a0a0f]`
- [ ] Not using `rounded-none`
- [ ] Not using `rounded-sm`
- [ ] Not using `text-cyan-400`
- [ ] Not using `shadow-[0_0_20px`
### Style rule check
- [ ] Use warm light backgrounds bg-[#fef3c7] or bg-green-50
- [ ] Use leaf green as primary color text-green-400 or bg-green-400
- [ ] Use golden yellow as accent text-amber-400 or bg-amber-400
- [ ] Use large rounded corners rounded-2xl or rounded-3xl for organic feel
- [ ] Use warm gradients bg-gradient-to-br from-green-400 to-amber-400
### Style drift check
- [ ] Does not violate: No pure black backgrounds or dark themes
- [ ] Does not violate: No sharp right angles rounded-none
- [ ] Does not violate: No cold industrial elements
- [ ] Does not violate: No high-contrast neon glow effects
- [ ] Does not violate: No dystopian or wasteland elements
### 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 Solarpunk
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- pure black backgrounds or dark themes
- sharp right angles rounded-none
- cold industrial elements
- No high-contrast neon glow effects
- dystopian or wasteland elements
- gloomy, oppressive color schemes
## 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 pure black backgrounds or dark themes
- [ ] no sharp right angles rounded-none
- [ ] no cold industrial elements
- [ ] No no high-contrast neon glow effects
- [ ] no dystopian or wasteland elementsMore prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts
Component Templates
Solarpunk 风格的有机自然按钮
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
/* Solarpunk Global Styles */
@layer base {
body {
@apply bg-[#f0fdf4] text-gray-800 antialiased;
background-image:
radial-gradient(circle at 20% 80%, rgba(74, 222, 128, 0.08) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.06) 0%, transparent 50%);
}
h1, h2, h3 {
@apply text-green-800;
}
::selection {
@apply bg-green-200 text-green-900;
}
}
@keyframes sway {
0%, 100% { transform: rotate(-1deg); }
50% { transform: rotate(1deg); }
}
/* Solarpunk Design Tokens */
:root {
--solarpunk-primary: #4ade80;
--solarpunk-secondary: #fbbf24;
--solarpunk-accent: #38bdf8;
--solarpunk-glow: rgba(74, 222, 128, 0.3);
}
.solarpunk-card {
position: relative;
overflow: hidden;
}
.solarpunk-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(74, 222, 128, 0.05), transparent);
pointer-events: none;
}
.solarpunk-card:hover::before {
opacity: 1;
}
.solarpunk-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(74, 222, 128, 0.08);
}
.solarpunk-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.solarpunk-animate-in {
animation: solarpunk-fade-in 0.5s ease-out both;
}
.solarpunk-focus { outline: 2px solid var(--solarpunk-primary, currentColor); outline-offset: 2px; }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
Solarpunk style originates from an optimistic imagination of the future, depicting a world where humans and nature coexist harmoniously. It conveys hope and vitality through organic curves, plant elements, and warm color tones.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: B - Good
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Muted text on background | /#6b7280 / #f0fdf4 | 4.62:1 |
Readability
Score
90/100
Font Size
text-sm md:text-base
Font Weight
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.