Mecha

机甲风

D
42/100Poor
Rate this style

Design style inspired by mecha anime like Gundam/EVA -- tech panels, warning signs, mechanical textures, military green and navy blue base with warning yellow and danger red, brimming with industrial power.

mechamecha uiGundamEvangelionsci-fi hudcockpit interfacecontrol panel uiwarning stripesmilitary industrial designhazard yellowanime ui
View Full Showcase →
Templates

Best For

mecha / mecha ui / Gundam

Primary Move

Use military green and navy blue as base colors

Watch Out

Do not use soft rounded corner design

AI Implementation

Copy the Hard Prompt first, then use the spec when needed

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.

Hard Prompt

Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.

When to use

  • When AI should generate UI directly
  • When repeated outputs must stay consistent
  • When style drift is the main risk

How to use

  • Copy the full prompt
  • Append the concrete requirement
  • Review against forbidden rules and UI states
STYLEKIT_STYLE_REFERENCE
style_name: Mecha
style_slug: mecha
style_source: /styles/mecha

# 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 Mecha design style frontend development expert. All generated code must strictly follow these constraints:

## Absolutely Forbidden

- Soft rounded corners (use rounded-none)
- Pastel or soft colors
- Glassmorphism or blur effects
- Handwritten or decorative fonts

## Must Follow

- Dark base colors: navy #1a2744, military green #4a5c3a
- Warning accents: yellow #fbbf24, red #ef4444
- Monospace fonts font-mono with uppercase tracking-widest
- No border radius rounded-none
- Hard-edge shadows shadow-[4px_4px_0px_color]
- Border-2 for panel edges

## Color Palette

Primary:
- Navy: #1a2744
- Military Green: #4a5c3a
- Warning Yellow: #fbbf24
- Danger Red: #ef4444

## Special Elements

- Tech grid backgrounds
- Warning stripe patterns
- Status indicators with square dots
- Technical annotations and unit numbers
- Panel borders with offset outlines

## Animation & Interaction Rules

- Hydraulic Rigidness: Interactions should use duration-100~150 + ease-linear mechanical hard-cuts, not soft spring easing.
- Armor Shifting: Hover can use clip-path corner changes and border thickness mutations to simulate armor plate engagement sliding.
- Hazard Flashing: Key controls need warning color pulses (red/yellow) and diagonal stripe hints on hover, reinforcing industrial alertness.
- Tactical Lock-on: Active uses crisp linear displacement with shadow fallback, like the lock-on feedback after pulling a heavy trigger.

---

# Mecha Design System

> Design style inspired by mecha anime like Gundam/EVA -- tech panels, warning signs, mechanical textures, military green and navy blue base with warning yellow and danger red, brimming with industrial power.

## Design Philosophy

Mecha is a design aesthetic originating from Japanese mecha anime (Gundam, EVA, etc.), blending military-industrial style with sci-fi panel interfaces.

Core principles:
- Armor panels: Panel design simulating mecha outer shell segments
- Warning system: Yellow warning and red danger signal system
- Military-industrial: Military green and navy blue industrial palette
- Technical annotations: Monospace font technical parameters and unit number labels

---

## Token Dictionary (exact class mapping)

### Border
```
Width: border-2
Color: border-[#4a5c3a]
Radius: rounded-none
```

### Shadow
```
sm: shadow-[2px_2px_0px_rgba(251,191,36,0.3)]
md: shadow-[4px_4px_0px_rgba(251,191,36,0.3)]
lg: shadow-[6px_6px_0px_rgba(251,191,36,0.4)]
hover: hover:shadow-[6px_6px_0px_rgba(251,191,36,0.5)]
focus: focus:shadow-[0_0_8px_rgba(251,191,36,0.4)]
```

### Interaction
```
Hover translate: hover:translate-x-[2px] hover:translate-y-[2px]
Hover scale: (none)
Hover opacity: (none)
Transition: transition-all duration-200 ease-in-out
Active: active:translate-x-[4px] active:translate-y-[4px] active:shadow-none
```

### Typefaces
```
Heading: font-mono font-bold uppercase tracking-widest
Body: font-mono
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-4xl
H3: text-xl md:text-2xl
Body: text-sm md:text-base
Small: text-xs md:text-sm
```

### Spacing
```
Section: py-12 md:py-20 lg:py-28
Container: px-4 md:px-8 lg:px-12
Card: p-5 md:p-8
Gap sm: gap-3 md:gap-4
Gap md: gap-4 md:gap-6
Gap lg: gap-6 md:gap-10
```

### Color roles
```
Background primary: bg-[#1a2744]
Background secondary: bg-[#4a5c3a]
Background accent: bg-[#fbbf24], bg-[#ef4444]
Text primary: text-[#fbbf24]
Text secondary: text-[#4a5c3a]
Text muted: text-[#4a5c3a]/70
Button primary: bg-[#fbbf24] text-[#1a2744] border-2 border-[#1a2744]
Button secondary: bg-[#4a5c3a] text-[#fbbf24] border-2 border-[#fbbf24]/50
```

---

## [FORBIDDEN]

These classes are banned in this style. Check for them before returning code:

### Banned classes
- `rounded-lg`
- `rounded-xl`
- `rounded-2xl`
- `rounded-full`
- `bg-white`
- `bg-[#faf6f0]`
- `bg-[#fffbf0]`
- `font-serif`
- `text-[#ff00ff]`
- `text-[#00ffff]`
- `shadow-md`
- `shadow-lg`
- `backdrop-blur`
- `bg-pink-`
- `bg-rose-`
- `text-pink-`

### Banned patterns
- matches `^rounded-(?:lg|xl|2xl|full)$`
- matches `^bg-(?:white|pink-|rose-)`
- matches `^font-serif$`
- matches `^shadow-(?:md|lg|xl)$`
- matches `^backdrop-blur`

### Why they are banned
- `rounded-lg`: Mecha uses sharp angular shapes (rounded-none) for an industrial feel
- `bg-white`: Mecha uses dark backgrounds (navy, green) for a military aesthetic
- `font-serif`: Mecha uses monospace fonts for a technical/military look
- `shadow-md`: Mecha uses hard-edge offset shadows, not soft ones
- `backdrop-blur`: Mecha style is opaque and solid, no transparency effects

> WARNING: if your code contains any of the above, replace it before shipping.

---

## [REQUIRED]

### Every button must include
```
rounded-none
font-mono font-bold uppercase tracking-widest
border-2
transition-all duration-200 ease-in-out
```

### Every card must include
```
rounded-none
bg-[#1a2744]
border-2 border-[#4a5c3a]
shadow-[4px_4px_0px_rgba(251,191,36,0.3)]
```

### Every input must include
```
rounded-none
border-2 border-[#4a5c3a]
bg-[#1a2744]/80
text-[#fbbf24]
font-mono
focus:outline-none
```

---

## [COMPARE] Mecha 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="rounded-none font-mono font-bold uppercase tracking-widest border-2 transition-all duration-200 ease-in-out bg-[#fbbf24] text-[#1a2744] border-2 border-[#1a2744]">
  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="rounded-none bg-[#1a2744] border-2 border-[#4a5c3a] shadow-[4px_4px_0px_rgba(251,191,36,0.3)] p-5 md:p-8">
  <h3 class="font-mono font-bold uppercase tracking-widest 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="rounded-none border-2 border-[#4a5c3a] bg-[#1a2744]/80 text-[#fbbf24] font-mono focus:outline-none" placeholder="{PLACEHOLDER}" />
```

---

## [TEMPLATES] Mecha page skeletons

These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:

### Navigation
```html
<nav class="bg-[#1a2744] text-[#fbbf24] border-2 border-[#4a5c3a] px-4 md:px-8 lg:px-12">
  <div class="flex items-center justify-between max-w-6xl mx-auto gap-4 md:gap-6">
    <a href="/" class="font-mono font-bold uppercase tracking-widest text-xl md:text-2xl">
      {LOGO_TEXT}
    </a>
    <div class="flex gap-4 md:gap-6 font-mono text-xs md:text-sm">
      {NAV_LINKS}
    </div>
  </div>
</nav>
```

### Hero section
```html
<section class="bg-[#fbbf24] text-[#fbbf24] py-12 md:py-20 lg:py-28 px-4 md:px-8 lg:px-12">
  <div class="max-w-4xl mx-auto">
    <h1 class="font-mono font-bold uppercase tracking-widest text-4xl md:text-6xl lg:text-8xl">
      {HEADLINE}
    </h1>
    <p class="font-mono text-sm md:text-base max-w-xl">
      {SUBHEADLINE}
    </p>
    <button class="rounded-none font-mono font-bold uppercase tracking-widest border-2 transition-all duration-200 ease-in-out bg-[#fbbf24] text-[#1a2744] border-2 border-[#1a2744]">
      {CTA_TEXT}
    </button>
  </div>
</section>
```

### Card grid
```html
<section class="bg-[#1a2744] text-[#fbbf24] py-12 md:py-20 lg:py-28 px-4 md:px-8 lg:px-12">
  <div class="max-w-6xl mx-auto">
    <h2 class="font-mono font-bold uppercase tracking-widest text-2xl md:text-4xl">{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="rounded-none bg-[#1a2744] border-2 border-[#4a5c3a] shadow-[4px_4px_0px_rgba(251,191,36,0.3)] p-5 md:p-8">
        <h3 class="font-mono font-bold uppercase tracking-widest text-xl md:text-2xl">{CARD_TITLE}</h3>
        <p class="font-mono text-sm md:text-base text-[#4a5c3a]/70">{CARD_DESCRIPTION}</p>
      </div>
    </div>
  </div>
</section>
```

### Form input
```html
<input class="rounded-none border-2 border-[#4a5c3a] bg-[#1a2744]/80 text-[#fbbf24] font-mono focus:outline-none" placeholder="{PLACEHOLDER}" />
```

### Footer
```html
<footer class="bg-[#4a5c3a] text-[#4a5c3a] py-12 md:py-20 lg:py-28 px-4 md:px-8 lg:px-12">
  <div class="max-w-6xl mx-auto">
    <div class="grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-10">
      <div>
        <span class="font-mono font-bold uppercase tracking-widest text-xl md:text-2xl">{LOGO_TEXT}</span>
        <p class="font-mono text-xs md:text-sm">{TAGLINE}</p>
      </div>
      <div>
        <h4 class="font-mono font-bold uppercase tracking-widest text-xl md:text-2xl">{COLUMN_TITLE}</h4>
        <ul class="font-mono text-xs md:text-sm">
          {FOOTER_LINKS}
        </ul>
      </div>
    </div>
  </div>
</footer>
```

---

## [CHECKLIST] Mecha post-generation self check

**Before returning code, verify every token and rule below. Fix any violation before delivering:**

### Token check
- [ ] Button includes: `rounded-none font-mono font-bold uppercase tracking-widest border-2 transition-all duration-200 ease-in-out`
- [ ] Card includes: `rounded-none bg-[#1a2744] border-2 border-[#4a5c3a] shadow-[4px_4px_0px_rgba(251,191,36,0.3)]`
- [ ] Input includes: `rounded-none border-2 border-[#4a5c3a] bg-[#1a2744]/80 text-[#fbbf24] font-mono focus:outline-none`

### Forbidden check
- [ ] Not using `rounded-lg`
- [ ] Not using `rounded-xl`
- [ ] Not using `rounded-2xl`
- [ ] Not using `rounded-full`
- [ ] Not using `bg-white`
- [ ] Not using `bg-[#faf6f0]`
- [ ] Not using `bg-[#fffbf0]`
- [ ] Not using `font-serif`

### Style rule check
- [ ] Use military green and navy blue as base colors
- [ ] Add warning yellow and danger red accent colors
- [ ] Use monospace fonts and uppercase letters
- [ ] Design sharp no-rounded-corner panel elements
- [ ] Add technical annotations and unit number decorations

### Style drift check
- [ ] Does not violate: Do not use soft rounded corner design
- [ ] Does not violate: Do not use soft pink or light tones
- [ ] Does not violate: Do not use flashy gradients or frosted glass effects
- [ ] Does not violate: Do not use handwritten or decorative script fonts

### 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 Mecha

## Absolute Bans (Match and Refuse)

If any of the following patterns appear, it is a style violation — rewrite without exception.

- use soft rounded corner design
- use soft pink or light tones
- use flashy gradients or frosted glass effects
- use handwritten or decorative script fonts

## 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 soft rounded corner design
- [ ] do not use soft pink or light tones
- [ ] do not use flashy gradients or frosted glass effects
- [ ] do not use handwritten or decorative script fonts

More prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

按钮

机甲风格按钮

Frontend Readiness

Dark Mode, States, Motion, and Accessibility

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%

Missing

UI States

79%

Partial

Motion

70%

Partial

A11y

70%

Partial

Performance

35%

Fallback

Key State Coverage

light
HoverFocus VisibleDisabledLoadingEmptyErrorSuccess

Button

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

Implementation Notes

  • No curated dark-mode contract exists yet.
  • Check contrast in both light and dark modes.
  • Check heavy shadows, blur, large media, and scroll-linked effects manually.
  • No style-specific performance cost profile has been curated yet.

FAQ

Mecha — Frequently Asked Questions

What is the Mecha design style?
Design style inspired by mecha anime like Gundam/EVA -- tech panels, warning signs, mechanical textures, military green and navy blue base with warning yellow and danger red, brimming with industrial power. Its core principle: Mecha is a design aesthetic originating from Japanese mecha anime (Gundam, EVA, etc.
What colors does Mecha use?
Mecha uses #1a2744 as its primary color and #4a5c3a as its secondary color, with accent colors #fbbf24, #ef4444, #56ed40, #069006. Every hex value can be copied from the palette on this page.
How do I apply Mecha correctly?
Key practices: Use military green and navy blue as base colors. Add warning yellow and danger red accent colors. Use monospace fonts and uppercase letters.
What are common mistakes with Mecha?
Avoid: Do not use soft rounded corner design. Do not use soft pink or light tones. Do not use flashy gradients or frosted glass effects.
How do I prompt AI to generate Mecha 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: mecha, mecha ui, Gundam, Evangelion.
Global Styles

Global CSS

css
/* Mecha Global Styles */

:root {
  --mecha-navy: #1a2744;
  --mecha-green: #4a5c3a;
  --mecha-yellow: #fbbf24;
  --mecha-red: #ef4444;
}

/* Tech grid background */
.mecha-grid {
  background-image:
    linear-gradient(rgba(74, 92, 58, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 92, 58, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Warning stripe pattern */
.mecha-warning {
  background: repeating-linear-gradient(
    -45deg,
    var(--mecha-yellow),
    var(--mecha-yellow) 10px,
    var(--mecha-navy) 10px,
    var(--mecha-navy) 20px
  );
}

/* Panel border */
.mecha-panel {
  border: 2px solid var(--mecha-green);
  background: var(--mecha-navy);
  position: relative;
}
.mecha-panel::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  pointer-events: none;
}

/* Status indicator */
.mecha-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mecha-green);
}
.mecha-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--mecha-yellow);
}
@keyframes mecha-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mecha-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.mecha-frosted {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(26, 39, 68, 0.08);
}

.mecha-accent-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}

.mecha-animate-in {
  animation: mecha-fade-in 0.5s ease-out both;
}

IDE Integration

IDE Configuration Export

Download configuration files for AI coding assistants to generate code in this style.

Style Pack

Export 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

Design Philosophy

Mecha is a design aesthetic originating from Japanese mecha anime (Gundam, EVA, etc.), blending military-industrial style with sci-fi panel interfaces.

Accessibility

Accessibility Score

WCAG 2.1 compliance analysis based on color contrast and typography readability.

42

Overall Score

Grade: D - Poor

Contrast Ratios

Score: 25/100Average Ratio: 3.67:1
AA FailAAA Fail
ContextColorsRatioAAAAA
Text on background
/#fbbf24 / #1a2744
8.87:1
Secondary text on background
/#4a5c3a / #1a2744
2.03:1
Muted text on background
/#4a5c3a / #1a2744
2.03:1
Text on secondary background
/#fbbf24 / #4a5c3a
4.36:1
Secondary text on secondary
/#4a5c3a / #4a5c3a
1:1
Button primary
/#1a2744 / #fbbf24
8.87:1
Text on accent 1
/#fbbf24 / #fbbf24
1:1
Alt text on accent 1
/#4a5c3a / #fbbf24
4.36:1
Text on accent 2
/#fbbf24 / #ef4444
2.25:1
Alt text on accent 2
/#4a5c3a / #ef4444
1.94:1

Readability

Score

82/100

Font Size

text-sm md:text-base

Font Weight

font-mono font-bold uppercase tracking-widest

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.