少女漫画风
Shoujo Manga
少女漫画特有的浪漫美学,网点纹理背景、花朵框线装饰、缎带横幅标题、多角星闪光效果、蕾丝边框和爱心元素,以粉色主色调呈现梦幻柔美的视觉体验。
配色方案
Primary
#ffb7c5
Secondary
#fff5f7
Accent 1
#c4b5fd
Accent 2
#fde68a
Accent 3
#fecdd3
提示词
硬性 + 软性提示词
一键复制并生成 少女漫画风 风格界面。硬性提示词用于强约束一致性,软性提示词用于保留风格方向下的灵活实现。
硬性提示词
高一致性,严格执行风格规则
STYLEKIT_STYLE_REFERENCE
style_name: 少女漫画风
style_slug: shoujo-manga
style_source: /styles/shoujo-manga
# Hard Prompt
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
# Shoujo Manga (少女漫画风) Design System
> 少女漫画特有的浪漫美学,网点纹理背景、花朵框线装饰、缎带横幅标题、多角星闪光效果、蕾丝边框和爱心元素,以粉色主色调呈现梦幻柔美的视觉体验。
## 核心理念
Shoujo Manga 风格源于日本少女漫画的经典视觉语言,以浪漫、梦幻、柔美为核心。
核心理念:
- 网点纹理:screentone dot pattern 作为面板和区域背景的标志性装饰
- 花朵框线:五瓣花作为面板边角装饰,营造画框感
- 缎带横幅:ribbon banner 作为章节标题和分割线
- 多角闪光:4/6/8-point sparkle star 星光效果,用金色呈现梦幻感
- 蕾丝边框:scalloped lace border 作为卡片顶部/底部装饰
- 漫画分格:asymmetric manga panel grid 模拟漫画页面排版
- 樱花飘落:cherry blossom petal 作为散点装饰元素
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border-2
颜色: border-[#ffb7c5]/20
圆角: rounded-2xl
```
### 阴影
```
小: shadow-[0_2px_10px_#ffb7c520]
中: shadow-[0_4px_15px_#ffb7c530]
大: shadow-[0_4px_20px_#ffb7c540]
悬停: hover:shadow-[0_8px_30px_#ffb7c540]
聚焦: focus:shadow-[0_0_12px_#ffb7c540]
```
### 交互效果
```
悬停位移: undefined
过渡动画: transition-all duration-300 ease-in-out
按下状态: active:scale-95
```
### 字体
```
标题: font-sans font-bold
正文: font-sans leading-relaxed
```
### 字号
```
Hero: text-5xl md:text-7xl lg:text-8xl
H1: text-3xl md:text-5xl
H2: text-2xl md:text-4xl
H3: text-xl md:text-2xl
正文: text-sm md:text-base
小字: text-xs md:text-sm
```
### 间距
```
Section: py-12 md:py-20 lg:py-28
容器: px-4 md:px-8 lg:px-12
卡片: p-5 md:p-8
```
---
## [FORBIDDEN] 绝对禁止
以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:
### 禁止的 Class
- `rounded-none`
- `rounded-sm`
- `border-4`
- `border-8`
- `font-mono`
- `bg-black`
- `bg-[#0a0a0a]`
- `bg-gray-900`
- `bg-slate-900`
- `shadow-[3px_3px`
- `shadow-[4px_4px`
- `border-l-2 border-[`
- `uppercase tracking-widest`
### 禁止的模式
- 匹配 `^rounded-(?:none|sm)$`
- 匹配 `^border-(?:4|8)$`
- 匹配 `^font-mono$`
- 匹配 `^bg-(?:black|gray-900|slate-900|\[#0a0a0a\])$`
- 匹配 `^shadow-\[\d+px_\d+px_0px`
- 匹配 `^text-\[#(?:00ffff|ff00ff)\]$`
### 禁止原因
- `rounded-none`: Shoujo Manga uses soft rounded shapes (rounded-full, rounded-2xl, rounded-3xl)
- `border-4`: Shoujo Manga uses subtle borders (border or border-2), not heavy ones
- `font-mono`: Shoujo Manga uses rounded sans-serif fonts exclusively
- `bg-black`: Shoujo Manga uses light pastel backgrounds only (pearl white, sakura pink)
- `shadow-[3px_3px`: Shoujo Manga uses soft diffused shadows with color tinting, not hard offset ones
- `uppercase tracking-widest`: Used sparingly for ribbon banners only, never for main content
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
rounded-full
font-sans font-medium
shadow-[0_4px_15px_#ffb7c560]
transition-all duration-300 ease-in-out
```
### 卡片必须包含
```
rounded-2xl
bg-[#fff5f7]
border-2 border-[#ffb7c5]/20
shadow-[0_4px_20px_#ffb7c520]
```
### 输入框必须包含
```
rounded-full
border border-[#ffb7c5]/25
bg-[#fff5f7]
font-sans
focus:outline-none
```
---
## [COMPARE] 错误 vs 正确对比
### 按钮
[WRONG] **错误示例**(使用了圆角和模糊阴影):
```html
<button class="rounded-lg shadow-lg bg-blue-500 text-white px-4 py-2 hover:bg-blue-600">
点击我
</button>
```
[CORRECT] **正确示例**(使用硬边缘、无圆角、位移效果):
```html
<button class="rounded-full font-sans font-medium shadow-[0_4px_15px_#ffb7c560] transition-all duration-300 ease-in-out bg-[#ff006e] text-white px-4 py-2 md:px-6 md:py-3">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(使用了渐变和圆角):
```html
<div class="rounded-xl shadow-2xl bg-gradient-to-r from-purple-500 to-pink-500 p-6">
<h3 class="text-xl font-semibold">标题</h3>
</div>
```
[CORRECT] **正确示例**(纯色背景、硬边缘阴影):
```html
<div class="rounded-2xl bg-[#fff5f7] border-2 border-[#ffb7c5]/20 shadow-[0_4px_20px_#ffb7c520] p-5 md:p-8">
<h3 class="font-sans font-bold text-xl md:text-2xl">标题</h3>
</div>
```
### 输入框
[WRONG] **错误示例**(灰色边框、圆角):
```html
<input class="rounded-md border border-gray-300 px-3 py-2 focus:ring-2 focus:ring-blue-500" />
```
[CORRECT] **正确示例**(黑色粗边框、聚焦阴影):
```html
<input class="rounded-full border border-[#ffb7c5]/25 bg-[#fff5f7] font-sans focus:outline-none px-3 py-2 md:px-4 md:py-3" placeholder="请输入..." />
```
---
## [TEMPLATES] 页面骨架模板
使用以下模板生成页面,只需替换 `{PLACEHOLDER}` 部分:
### 导航栏骨架
```html
<nav class="bg-white border-b-2 md:border-b-4 border-black px-4 md:px-8 py-3 md:py-4">
<div class="flex items-center justify-between max-w-6xl mx-auto">
<a href="/" class="font-black text-xl md:text-2xl tracking-wider">
{LOGO_TEXT}
</a>
<div class="flex gap-4 md:gap-8 font-mono text-sm md:text-base">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero 区块骨架
```html
<section class="min-h-[60vh] md:min-h-[80vh] flex items-center px-4 md:px-8 py-12 md:py-0 bg-{ACCENT_COLOR} border-b-2 md:border-b-4 border-black">
<div class="max-w-4xl mx-auto">
<h1 class="font-black text-4xl md:text-6xl lg:text-8xl leading-tight tracking-tight mb-4 md:mb-6">
{HEADLINE}
</h1>
<p class="font-mono text-base md:text-xl max-w-xl mb-6 md:mb-8">
{SUBHEADLINE}
</p>
<button class="bg-black text-white font-black px-6 py-3 md:px-8 md:py-4 border-2 md:border-4 border-black shadow-[4px_4px_0px_0px_rgba(255,0,110,1)] md:shadow-[8px_8px_0px_0px_rgba(255,0,110,1)] hover:shadow-none hover:translate-x-[2px] hover:translate-y-[2px] transition-all text-sm md:text-base">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="py-12 md:py-24 px-4 md:px-8">
<div class="max-w-6xl mx-auto">
<h2 class="font-black text-2xl md:text-4xl mb-8 md:mb-12">{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-white border-2 md:border-4 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] md:shadow-[8px_8px_0px_0px_rgba(0,0,0,1)] p-4 md:p-6 hover:shadow-[4px_4px_0px_0px_rgba(255,0,110,1)] md:hover:shadow-[8px_8px_0px_0px_rgba(255,0,110,1)] hover:-translate-y-1 transition-all">
<h3 class="font-black text-lg md:text-xl mb-2">{CARD_TITLE}</h3>
<p class="font-mono text-sm md:text-base text-gray-700">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 页脚骨架
```html
<footer class="bg-black text-white py-12 md:py-16 px-4 md:px-8 border-t-2 md:border-t-4 border-black">
<div class="max-w-6xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<span class="font-black text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="font-mono text-sm mt-4 text-gray-400">{TAGLINE}</p>
</div>
<div>
<h4 class="font-black text-lg mb-4">{COLUMN_TITLE}</h4>
<ul class="space-y-2 font-mono text-sm text-gray-400">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] 生成后自检清单
**在输出代码前,必须逐项验证以下每一条。如有违反,立即修正后再输出:**
### 1. 圆角检查
- [ ] 搜索代码中的 `rounded-`
- [ ] 确认只有 `rounded-none` 或无圆角
- [ ] 如果发现 `rounded-lg`、`rounded-md` 等,替换为 `rounded-none`
### 2. 阴影检查
- [ ] 搜索代码中的 `shadow-`
- [ ] 确认只使用 `shadow-[Xpx_Xpx_0px_0px_rgba(...)]` 格式
- [ ] 如果发现 `shadow-lg`、`shadow-xl` 等,替换为正确格式
### 3. 边框检查
- [ ] 搜索代码中的 `border-`
- [ ] 确认边框颜色是 `border-black`
- [ ] 如果发现 `border-gray-*`、`border-slate-*`,替换为 `border-black`
### 4. 交互检查
- [ ] 所有按钮都有 `hover:shadow-none hover:translate-x-[2px] hover:translate-y-[2px]`
- [ ] 所有卡片都有 hover 效果(阴影变色或位移)
- [ ] 都包含 `transition-all`
### 5. 响应式检查
- [ ] 边框有 `border-2 md:border-4`
- [ ] 阴影有 `shadow-[4px...] md:shadow-[8px...]`
- [ ] 间距有 `p-4 md:p-6` 或类似的响应式值
- [ ] 字号有 `text-sm md:text-base` 或类似的响应式值
### 6. 字体检查
- [ ] 标题使用 `font-black`
- [ ] 正文使用 `font-mono`
> CRITICAL: **如果任何一项检查不通过,必须修正后重新生成代码。**
---
## [EXAMPLES] 示例 Prompt
### 1. 少女漫画角色页
带网点纹理、花朵框线和缎带标题的浪漫风格页面
```
Use Shoujo Manga style to create a character profile page:
1. Background: soft pink-to-white gradient with screentone dot pattern overlay
2. Hero: manga panel frame with flower (Flower2) icons at corners and screentone bg
3. Section titles: ribbon banners with clip-path pointed tails
4. Cards: manga panel grid with asymmetric layout (grid-cols-12), screentone backgrounds
5. Form: love letter diary with lace scallop border at top and bottom
6. Decorations: scattered cherry blossom petals and gold sparkle star dots throughout
7. Buttons: pill-shaped (rounded-full) with pink glow shadows
```软性提示词
保留风格方向,允许实现灵活
STYLEKIT_STYLE_REFERENCE
style_name: 少女漫画风
style_slug: shoujo-manga
style_source: /styles/shoujo-manga
# Soft Prompt
保持整体风格气质即可,允许实现细节灵活调整,但不要偏离核心视觉语言。
## Style Signals
- 少女漫画
- 樱花
- 网点
- 花框
- 缎带
- 闪光
## Prefer
- 使用粉色系作为主色调(樱花粉 #ffb7c5)
- 添加网点纹理背景 screentone(radial-gradient 实现圆点图案)
- 使用花朵图标 Flower2 作为面板边角装饰
- 使用缎带横幅(ribbon banner with clip-path tails)作为章节标题
## Avoid
- 禁止使用深色或暗色调背景
- 禁止使用尖角或锐利边角(rounded-none, rounded-sm)
- 禁止使用野蛮主义风格的粗边框
## Output Guidance
- 先保证整体风格识别度,再优化细节。
- 避免过度炫技,保持可读性与可维护性。设计哲学
Shoujo Manga 风格源于日本少女漫画的经典视觉语言,以浪漫、梦幻、柔美为核心。
核心理念: - 网点纹理:screentone dot pattern 作为面板和区域背景的标志性装饰 - 花朵框线:五瓣花作为面板边角装饰,营造画框感 - 缎带横幅:ribbon banner 作为章节标题和分割线 - 多角闪光:4/6/8-point sparkle star 星光效果,用金色呈现梦幻感 - 蕾丝边框:scalloped lace border 作为卡片顶部/底部装饰 - 漫画分格:asymmetric manga panel grid 模拟漫画页面排版 - 樱花飘落:cherry blossom petal 作为散点装饰元素
必须做 / Do's
- +使用粉色系作为主色调(樱花粉 #ffb7c5)
- +添加网点纹理背景 screentone(radial-gradient 实现圆点图案)
- +使用花朵图标 Flower2 作为面板边角装饰
- +使用缎带横幅(ribbon banner with clip-path tails)作为章节标题
- +添加多角星闪光效果(金色 #fde68a 圆点带 glow shadow)
- +使用蕾丝 scallop 边框(radial-gradient 实现波浪边缘)
- +使用圆角设计(rounded-full 按钮, rounded-2xl 卡片, rounded-3xl 面板)
- +保持浅色背景(珍珠白 #fff5f7, 白色 #ffffff)
- +使用漫画分格的不对称网格排版(grid-cols-12 span 混合)
- +交互采用柔和膨胀和粉色大光晕,模拟少女漫画心跳感(Dokidoki Bounce)
- +网点纹理在 hover 时可微幅提亮或轻微位移,增强翻页感
- +active 状态使用柔软回弹和低冲击反馈,保持梦幻基调
禁止做 / Don'ts
- -禁止使用深色或暗色调背景
- -禁止使用尖角或锐利边角(rounded-none, rounded-sm)
- -禁止使用野蛮主义风格的粗边框
- -禁止使用等宽字体 font-mono
- -禁止使用强烈的硬阴影或 RGB 分离阴影
- -禁止使用纯黑背景或深灰背景
- -禁止使用短促生硬的 100ms 动画和机械下沉反馈
- -禁止用高对比硬光代替柔焦粉彩阴影
组件模板
组件预览
按钮
少女漫画风格药丸按钮,带粉色光晕阴影
<button className="
px-10 py-3.5
bg-[#ffb7c5] text-white
font-sans font-bold tracking-wide
rounded-full
shadow-[0_8px_20px_rgba(255,183,197,0.4)]
hover:bg-[#ff9eb3]
hover:shadow-[0_15px_30px_rgba(255,183,197,0.6)]
hover:-translate-y-1
hover:scale-105
active:scale-95
active:shadow-[0_4px_10px_rgba(255,183,197,0.4)]
transition-all duration-300 ease-out
">
Sakura Bloom
</button>全局样式
全局 CSS
/* Shoujo Manga Global Styles */
:root {
--shoujo-pink: #ffb7c5;
--shoujo-pearl: #fff5f7;
--shoujo-lavender: #c4b5fd;
--shoujo-gold: #fde68a;
--shoujo-rose: #fecdd3;
}
/* Screentone dot pattern overlay */
.shoujo-screentone::before {
content: "";
position: absolute;
inset: 0;
background-image: radial-gradient(circle, var(--shoujo-pink) 0.6px, transparent 0.6px);
background-size: 10px 10px;
opacity: 0.06;
pointer-events: none;
}
/* Floating petals animation */
.shoujo-petals::before,
.shoujo-petals::after {
content: "";
position: absolute;
width: 12px;
height: 12px;
background: var(--shoujo-pink);
border-radius: 50% 0 50% 50%;
opacity: 0.3;
animation: shoujoFloat 6s ease-in-out infinite;
}
.shoujo-petals::after {
width: 8px;
height: 8px;
animation-delay: -3s;
animation-duration: 8s;
}
@keyframes shoujoFloat {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
}
/* Sparkle star glow */
.shoujo-sparkle {
position: relative;
}
.shoujo-sparkle::after {
content: "";
position: absolute;
top: -4px;
right: -4px;
width: 8px;
height: 8px;
background: var(--shoujo-gold);
border-radius: 50%;
box-shadow: 0 0 8px var(--shoujo-gold);
animation: shoujoSparkle 2s ease-in-out infinite;
}
@keyframes shoujoSparkle {
0%, 100% { opacity: 0.4; transform: scale(0.8); }
50% { opacity: 1; transform: scale(1.2); }
}
/* Ribbon banner with clip-path tails */
.shoujo-ribbon {
position: relative;
display: inline-block;
padding: 4px 40px;
background: rgba(255, 183, 197, 0.15);
border-radius: 2px;
}
.shoujo-ribbon::before,
.shoujo-ribbon::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 12px;
}
.shoujo-ribbon::before {
left: -12px;
background: rgba(255, 183, 197, 0.1);
clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
.shoujo-ribbon::after {
right: -12px;
background: rgba(255, 183, 197, 0.1);
clip-path: polygon(0 0, 0 100%, 100% 50%);
}
/* Lace scallop border */
.shoujo-lace {
position: relative;
}
.shoujo-lace::before {
content: "";
position: absolute;
top: -4px;
left: 16px;
right: 16px;
height: 8px;
background-image: radial-gradient(circle at 50% 100%, white 6px, transparent 6px),
radial-gradient(circle at 50% 100%, var(--shoujo-pink) 7px, transparent 7px);
background-size: 16px 8px;
opacity: 0.3;
}
/* Soft glow */
.shoujo-glow {
box-shadow: 0 0 20px rgba(255, 183, 197, 0.3);
}无障碍
无障碍评分
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: D - 较差
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#4a5568 / #fff5f7 | 7.04:1 | ||
| Secondary text on background | /#ffb7c5 / #fff5f7 | 1.53:1 | ||
| Muted text on background | /#4a5568 / #fff5f7 | 7.04:1 | ||
| Text on secondary background | /#4a5568 / #ffffff | 7.53:1 | ||
| Secondary text on secondary | /#ffb7c5 / #ffffff | 1.64:1 | ||
| Button primary | /#ffffff / #ffb7c5 | 1.64:1 | ||
| Text on accent 1 | /#4a5568 / #ffb7c5 | 4.6:1 | ||
| Alt text on accent 1 | /#ffb7c5 / #ffb7c5 | 1:1 | ||
| Text on accent 2 | /#4a5568 / #c4b5fd | 4.08:1 | ||
| Alt text on accent 2 | /#ffb7c5 / #c4b5fd | 1.13:1 | ||
| Text on accent 3 | /#4a5568 / #fde68a | 6.04:1 | ||
| Alt text on accent 3 | /#ffb7c5 / #fde68a | 1.31:1 | ||
| Text on accent 4 | /#4a5568 / #fecdd3 | 5.34:1 | ||
| Alt text on accent 4 | /#ffb7c5 / #fecdd3 | 1.16:1 |
可读性
分数
87/100
字号
text-sm md:text-base
字重
font-sans font-bold
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。
IDE 集成
IDE 配置导出
下载 AI 编码助手的配置文件,使其按照此风格生成代码。
风格包
导出风格包
获取完整的可机器读取风格资源,包括 Design Tokens、Tailwind 预设、CSS 变量和 shadcn/ui 主题。
Metadata
Style metadata including version information
Design Tokens
Figma / Style Dictionary / Tokens Studio 兼容
Tailwind Preset
Tailwind CSS 主题预设,可直接在配置中引用
Global CSS
包含 CSS 变量和基础样式
shadcn Theme
shadcn/ui 主题配置
CSS Variables
纯 CSS 变量,适用于任何项目
SKILL.md
可加载到 Cursor / Claude Code / VS Code 的技能包