Best For
RPG / 菜单 / 属性
JRPG
Classic Japanese RPG menu and dialogue box aesthetics with beveled borders, gradient backgrounds, status bars, and ornate frames. Ideal for game interfaces, interactive narratives, and fantasy-style products.
Best For
RPG / 菜单 / 属性
Primary Move
Use deep navy blue backgrounds bg-[#0f172a] or bg-slate-900
Watch Out
No minimalist flat style (no borders, no shadows)
Showcase Entry
Live preview of the showcase page. Click to explore the full experience.
Color Palette
Primary
#1e40af
Secondary
#0f172a
Accent 1
#fbbf24
Accent 2
#f0f9ff
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: JRPG
style_slug: jrpg
style_source: /styles/jrpg
# 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: JRPG
TYPE: Classic Japanese RPG menu interface
MUST USE:
- Dark background: bg-[#0f172a] or bg-slate-900
- Beveled borders: border-2 with inset shadows
- Gold accent text: text-[#fbbf24]
- Crystal white text: text-[#f0f9ff]
- Gradient panels: bg-gradient-to-b from-slate-800 to-slate-900
- HP/MP bars with colored gradients
- Corner decorations on panels
- Shadow depth: shadow-[inset_0_1px_0_rgba(255,255,255,0.2)]
MUST AVOID:
- White/light backgrounds
- Flat minimal design without borders
- Modern sans-serif only typography
- rounded-full buttons
- Transparent/borderless panels
- Low contrast color combinations
COLOR RULES:
- Primary: Royal Blue (#1e40af)
- Accent: Gold (#fbbf24)
- Background: Dark Navy (#0f172a)
- Text: Crystal White (#f0f9ff)
- HP: Green (#22c55e)
- MP: Blue (#3b82f6)
- Borders: Blue shades with glow
SPECIAL EFFECTS:
- Inset shadows for beveled/raised look
- Corner ornaments on panels
- Gradient overlays for depth
- Stat bar animations
Animation & Interaction Rules:
- Cursor Snap: Interaction feedback prioritizes hard-cut, using duration-75 to 120, simulating D-pad menu item selection.
- Retro Confirm Press: Active must have key press-down feel (scale + translate-y + inset shadow switch).
- Menu Hover State: Hover lights up gold border or highlight bar, maintaining high-contrast confirmation feedback.
- Flashing Prompts: Prompt labels can use lightweight pulse, avoiding large-area animations that interfere with readouts.Component Templates
RPG 风格的菜单按钮,斜面立体效果
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
/* JRPG Global Styles */
@layer base {
body {
@apply bg-[#0f172a] text-[#f0f9ff] antialiased;
}
h1, h2, h3 {
color: #fbbf24;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
::selection {
@apply bg-blue-700 text-white;
}
}
@keyframes hp-pulse {
0%, 100% { box-shadow: 0 0 4px rgba(34, 197, 94, 0.3); }
50% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
}
/* JRPG Design Tokens */
:root {
--jrpg-primary: #1e40af;
--jrpg-secondary: #0f172a;
--jrpg-accent: #fbbf24;
--jrpg-glow: rgba(30, 64, 175, 0.3);
}
.jrpg-card {
position: relative;
overflow: hidden;
}
.jrpg-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), transparent);
pointer-events: none;
}
.jrpg-card:hover::before {
opacity: 1;
}
.jrpg-gradient {
background: linear-gradient(135deg, #1e40af, #fbbf24);
}
.jrpg-gradient-text {
background: linear-gradient(135deg, #1e40af, #fbbf24);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.jrpg-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(30, 64, 175, 0.08);
}
.jrpg-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.jrpg-animate-in {
animation: jrpg-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
JRPG style originates from the menu and UI design of classic Japanese role-playing games, recreating the retro gaming experience through beveled borders, gradient backgrounds, and ornate frames.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: C - Fair
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#f0f9ff / #0f172a | 16.75:1 | ||
| Secondary text on background | /#fbbf24 / #0f172a | 10.69:1 | ||
| Text on secondary background | /#f0f9ff / #0f172a | 16.75:1 | ||
| Secondary text on secondary | /#fbbf24 / #0f172a | 10.69:1 | ||
| Text on accent 1 | /#f0f9ff / #1e40af | 8.18:1 | ||
| Alt text on accent 1 | /#fbbf24 / #1e40af | 5.22:1 | ||
| Text on accent 2 | /#f0f9ff / #fbbf24 | 1.57:1 | ||
| Alt text on accent 2 | /#fbbf24 / #fbbf24 | 1:1 | ||
| Text on accent 3 | /#f0f9ff / #22c55e | 2.14:1 | ||
| Alt text on accent 3 | /#fbbf24 / #22c55e | 1.36:1 |
Readability
Score
87/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.