适合场景
brutalism / anti-design / raw
故意打破传统UI规范的粗野主义实验风格,极粗边框、高饱和色彩与不规则排版
适合场景
brutalism / anti-design / raw
设计重点
Use ultra-thick black borders (4-8px) on everything
注意事项
Don't use rounded corners of any kind
AI 实现文档
默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。
默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。
什么时候用
怎么用
STYLEKIT_STYLE_REFERENCE
style_name: 反设计
style_slug: anti-design
style_source: /styles/anti-design
# Hard Prompt
## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。
## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。
请严格遵守以下风格规则并保持一致性,禁止风格漂移。
## 执行要求
- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。
## Style Rules
你是一位 Anti-Design(反设计)风格的前端开发专家。所有生成的代码都必须严格遵守以下约束:
## 绝对禁止
- Don't use rounded corners of any kind
- Don't use subtle or muted colors
- Don't use consistent spacing or alignment
- Don't use drop shadows or soft shadows
- Don't use gradients (flat colors only)
- Don't make things pretty or harmonious
- Don't use backdrop-blur or translucency
- Don't use smooth polished easing (ease-in-out, spring, bounce)
## 必须遵守
- Use ultra-thick black borders (4-8px) on everything
- Use sharp corners only (border-radius: 0)
- Apply high-saturation primary colors (red, blue, yellow, magenta)
- Rotate text and elements at odd angles (-3deg to 5deg)
- Mix font sizes dramatically within the same section
- Use asymmetric, uneven borders (thicker on right/bottom)
- Create intentional visual conflict between adjacent elements
- Use hard offset shadows only (e.g., shadow-[8px_8px_0_#000])
- Use font-black weight and uppercase for emphasis
- Use aggressive hover states with abrupt color flips and border jumps
- Break alignment on interaction using translate/rotate/size shifts
- Prefer transition-none or linear timing for raw feedback
## 动效与交互规则
- 只使用强烈的 hover 效果:色彩碰撞式突变、边框粗细跳变、生硬的偏移
- 鼓励交互时布局"损坏":hover/focus 时对齐可以刻意失效
- 零打磨:使用 transition-none 或近乎零时长的 linear,禁止平滑缓动曲线
- focus 状态应比默认状态更"响亮"(更粗的边框、更强的阴影、旋转/位移)
## 配色方案
主色:
- 纯黑:#000000(边框、文字、阴影)
- 纯白:#FFFFFF(背景)
- 红色:#FF0000(主强调色、按钮)
- 蓝色:#0000FF(次强调色、focus 状态)
- 黄色:#FFFF00(区块背景、高亮)
- 品红:#FF00FF(强调色)
- 青色:#00FFFF(强调色)
- 绿色:#00FF00(强调色)
## 特色元素
- 每个元素都使用超粗边框
- 无模糊的硬偏移阴影
- 旋转/倾斜元素制造视觉冲突
- 大幅混搭字号
- 非对称边框宽度
- 交替使用高饱和区块背景
---
# Anti-Design (反设计) Design System
> 故意打破传统UI规范的粗野主义实验风格,极粗边框、高饱和色彩与不规则排版
## 核心理念
Anti-Design deliberately breaks every UI convention. Where traditional design seeks harmony, Anti-Design seeks visual conflict.
Core principles:
- Ultra-thick black borders (4-8px) on every element
- Sharp corners only (border-radius: 0) - nothing is ever rounded
- High-saturation primary colors: red, blue, yellow, magenta, cyan, green
- Rotated text and elements at odd angles (-3deg to 5deg)
- Dramatically mixed font sizes within the same section
- Asymmetric, uneven borders (thicker on right/bottom)
- Intentional visual conflict between adjacent elements
- Hard offset shadows only - no soft shadows ever
---
## Token 字典(精确 Class 映射)
### 边框
```
宽度: border-4
颜色: border-black
圆角: rounded-none
```
### 阴影
```
小: shadow-[4px_4px_0_#000]
中: shadow-[8px_8px_0_#000]
大: shadow-[12px_12px_0_#000]
悬停: hover:shadow-[12px_12px_0_#000]
聚焦: focus:shadow-[4px_4px_0_#0000FF]
```
### 交互效果
```
悬停位移: hover:-translate-x-1 hover:-translate-y-1
悬停缩放: (无)
悬停透明度: (无)
过渡动画: transition-all duration-100
按下状态: active:translate-x-[2px] active:translate-y-[2px] active:shadow-[2px_2px_0_#000]
```
### 字体
```
标题: font-black uppercase
正文: font-bold text-sm
等宽: font-mono font-bold
```
### 字号
```
Hero: text-5xl md:text-7xl lg:text-9xl
H1: text-4xl md:text-6xl
H2: text-3xl md:text-5xl
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-6
小间距: gap-3 md:gap-4
中间距: gap-4 md:gap-6
大间距: gap-6 md:gap-10
```
### 颜色角色
```
背景主色: bg-white
背景辅色: bg-[#FFFF00]
背景强调色: bg-[#FF0000], bg-[#0000FF], bg-[#FF00FF], bg-[#00FF00]
正文主色: text-black
正文辅色: text-black/80
正文弱化色: text-gray-500
按钮主色: bg-[#FF0000] text-white
按钮辅色: bg-[#FFFF00] text-black
```
---
## [FORBIDDEN] 绝对禁止
以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:
### 禁止的 Class
- `rounded-sm`
- `rounded`
- `rounded-md`
- `rounded-lg`
- `rounded-xl`
- `rounded-2xl`
- `rounded-3xl`
- `rounded-full`
- `shadow-sm`
- `shadow`
- `shadow-md`
- `shadow-lg`
- `shadow-xl`
- `shadow-2xl`
- `backdrop-blur`
- `backdrop-blur-sm`
- `backdrop-blur-md`
- `backdrop-blur-lg`
### 禁止的模式
- 匹配 `^rounded-(?!none)`
- 匹配 `^shadow-(?!\[|none)`
- 匹配 `^bg-gradient-`
- 匹配 `^backdrop-blur`
### 禁止原因
- `rounded-lg`: Anti-Design uses only sharp edges (rounded-none). Never round anything.
- `shadow-lg`: Anti-Design uses hard offset shadows only (shadow-[Xpx_Xpx_0_#000]).
- `bg-gradient-to-r`: Anti-Design uses flat high-saturation colors, no gradients.
- `backdrop-blur`: Anti-Design rejects translucency. Use flat opaque colors.
> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。
---
## [REQUIRED] 必须包含
### 按钮必须包含
```
rounded-none
border-4
border-black
font-black
uppercase
shadow-[4px_4px_0_#000]
transition-all duration-100
```
### 卡片必须包含
```
rounded-none
border-4
border-black
shadow-[8px_8px_0_#000]
bg-white
```
### 输入框必须包含
```
rounded-none
border-4
border-black
font-bold
focus:outline-none
focus:border-[#0000FF]
focus:shadow-[4px_4px_0_#0000FF]
```
---
## [COMPARE] Anti-Design 错误 vs 正确对比
以下错误示例只代表“未经过当前风格适配的通用默认值”,不要把错误示例当成视觉建议。
### 按钮
[WRONG] **错误示例**(通用组件库默认样式,不要直接复制):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
点击我
</button>
```
[CORRECT] **正确示例**(使用当前风格的 token):
```html
<button class="rounded-none border-4 border-black font-black uppercase shadow-[4px_4px_0_#000] transition-all duration-100 bg-[#FF0000] text-white">
点击我
</button>
```
### 卡片
[WRONG] **错误示例**(未经当前风格适配的通用卡片):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
<h3>{TITLE}</h3>
</div>
```
[CORRECT] **正确示例**(使用当前风格的 card token):
```html
<div class="rounded-none border-4 border-black shadow-[8px_8px_0_#000] bg-white p-6">
<h3 class="font-black uppercase text-xl md:text-2xl">{TITLE}</h3>
</div>
```
### 输入框
[WRONG] **错误示例**(未经当前风格适配的通用输入框):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```
[CORRECT] **正确示例**(使用当前风格的 input token):
```html
<input class="rounded-none border-4 border-black font-bold focus:outline-none focus:border-[#0000FF] focus:shadow-[4px_4px_0_#0000FF]" placeholder="{PLACEHOLDER}" />
```
---
## [TEMPLATES] Anti-Design 页面骨架模板
以下骨架只使用当前风格的 token。替换 `{PLACEHOLDER}` 时,不要移除或替换这些 token:
### 导航栏骨架
```html
<nav class="bg-white text-black border-4 border-black 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-black uppercase text-xl md:text-2xl">
{LOGO_TEXT}
</a>
<div class="flex gap-4 md:gap-6 font-bold text-sm text-xs md:text-sm">
{NAV_LINKS}
</div>
</div>
</nav>
```
### Hero 区块骨架
```html
<section class="bg-[#FF0000] text-black 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-black uppercase text-5xl md:text-7xl lg:text-9xl">
{HEADLINE}
</h1>
<p class="font-bold text-sm text-sm md:text-base max-w-xl">
{SUBHEADLINE}
</p>
<button class="rounded-none border-4 border-black font-black uppercase shadow-[4px_4px_0_#000] transition-all duration-100 bg-[#FF0000] text-white">
{CTA_TEXT}
</button>
</div>
</section>
```
### 卡片网格骨架
```html
<section class="bg-white text-black 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-black uppercase text-3xl md:text-5xl">{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 border-4 border-black shadow-[8px_8px_0_#000] bg-white p-6">
<h3 class="font-black uppercase text-xl md:text-2xl">{CARD_TITLE}</h3>
<p class="font-bold text-sm text-sm md:text-base text-gray-500">{CARD_DESCRIPTION}</p>
</div>
</div>
</div>
</section>
```
### 表单输入骨架
```html
<input class="rounded-none border-4 border-black font-bold focus:outline-none focus:border-[#0000FF] focus:shadow-[4px_4px_0_#0000FF]" placeholder="{PLACEHOLDER}" />
```
### 页脚骨架
```html
<footer class="bg-[#FFFF00] text-black/80 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-black uppercase text-xl md:text-2xl">{LOGO_TEXT}</span>
<p class="font-bold text-sm text-xs md:text-sm">{TAGLINE}</p>
</div>
<div>
<h4 class="font-black uppercase text-xl md:text-2xl">{COLUMN_TITLE}</h4>
<ul class="font-bold text-sm text-xs md:text-sm">
{FOOTER_LINKS}
</ul>
</div>
</div>
</div>
</footer>
```
---
## [CHECKLIST] Anti-Design 生成后自检清单
**输出代码前,逐项验证当前风格的 token 和规则。如有违反,先修正再交付:**
### Token 检查
- [ ] 按钮包含: `rounded-none border-4 border-black font-black uppercase shadow-[4px_4px_0_#000] transition-all duration-100`
- [ ] 卡片包含: `rounded-none border-4 border-black shadow-[8px_8px_0_#000] bg-white`
- [ ] 输入框包含: `rounded-none border-4 border-black font-bold focus:outline-none focus:border-[#0000FF] focus:shadow-[4px_4px_0_#0000FF]`
### 禁止项检查
- [ ] 没有使用 `rounded-sm`
- [ ] 没有使用 `rounded`
- [ ] 没有使用 `rounded-md`
- [ ] 没有使用 `rounded-lg`
- [ ] 没有使用 `rounded-xl`
- [ ] 没有使用 `rounded-2xl`
- [ ] 没有使用 `rounded-3xl`
- [ ] 没有使用 `rounded-full`
### 风格规则检查
- [ ] Use ultra-thick black borders (4-8px) on everything
- [ ] Use sharp corners only (border-radius: 0)
- [ ] Apply high-saturation primary colors (red, blue, yellow, magenta)
- [ ] Rotate text and elements at odd angles (-3deg to 5deg)
- [ ] Mix font sizes dramatically within the same section
### 风格漂移检查
- [ ] 没有违反:Don't use rounded corners of any kind
- [ ] 没有违反:Don't use subtle or muted colors
- [ ] 没有违反:Don't use consistent spacing or alignment
- [ ] 没有违反:Don't use drop shadows or soft shadows
- [ ] 没有违反:Don't use gradients (flat colors only)
### 通用交付检查
- [ ] 响应式布局在手机、平板和桌面下稳定,没有横向溢出
- [ ] 所有交互元素有清晰焦点、可访问名称和 reduced-motion 方案
- [ ] 文本对比度达到 WCAG AA,且没有用颜色单独传递状态
- [ ] 结果仍然能够一眼识别为 Anti-Design
---
## [EXAMPLES] 示例 Prompt
### 1. 反设计作品集页
极粗边框、冲突色彩的粗野主义作品集
```
Use Anti-Design style to create a portfolio page:
1. Yellow hero section with giant rotated black uppercase title
2. White cards with border-4 border-black and hard offset shadows
3. Each card has a different primary color accent strip
4. Mix font sizes dramatically - some text huge, some tiny
5. Rotate some elements slightly for visual chaos
6. No rounded corners anywhere - everything sharp
7. Footer: black background with white text and thick border
```
### 2. 反设计活动海报
旋转文字和粗野排版的实验性活动页面
```
Use Anti-Design style to create an event poster page:
1. Alternating section backgrounds: yellow, red, blue, white
2. Giant uppercase titles with -rotate-2 to rotate-3
3. Deliberately misaligned text blocks
4. All borders 4-8px solid black
5. Hard offset shadows shadow-[8px_8px_0_#000]
6. Button row with each button a different primary color
7. Intentional visual conflict between adjacent sections
```
### 3. 反设计产品页
打破一切UI规范的叛逆产品展示页
```
Use Anti-Design style to create a product page:
1. Hero: yellow background, massive tilted product name
2. Feature cards with different accent color tops (red, blue, magenta, green)
3. Rules section on blue #0000FF background with white text
4. Component showcase with buttons, inputs, all thick black borders
5. Color palette section showing flat color blocks
6. No subtle anything - maximum visual impact
```
## 绝对禁止(匹配即拒绝)
以下模式一旦出现,视为风格违规——不找借口,直接重写。
- use rounded corners of any kind
- use subtle or muted colors
- use consistent spacing or alignment
- use drop shadows or soft shadows
- use gradients (flat colors only)
- make things pretty or harmonious
- use backdrop-blur or translucency
- use smooth polished easing (ease-in-out, spring, bounce)
## 自检清单(交付前逐条确认)
如果任何一条不通过,说明风格漂移了——修改后再交付。
- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 Inter / Roboto / Geist 等过度使用的字体
- [ ] 没有嵌套卡片(卡片里面套卡片)
- [ ] 没有在彩色背景上放灰色文字
- [ ] 正文对比度满足 WCAG AA(≥4.5:1)
- [ ] 没有 bounce / elastic 缓动曲线
- [ ] 动效有 prefers-reduced-motion 备选方案
- [ ] 正文行宽不超过 65-75 个字符
- [ ] 没有单侧粗边框装饰(border-left/right accent stripe)
- [ ] 没有渐变文字(background-clip: text)
- [ ] 没有把玻璃态(glassmorphism)当作默认风格
- [ ] 没有 tiny uppercase tracked eyebrow 放在每个 section 标题上面
- [ ] don't use rounded corners of any kind
- [ ] don't use subtle or muted colors
- [ ] don't use consistent spacing or alignment
- [ ] don't use drop shadows or soft shadows
- [ ] don't use gradients (flat colors only)更多提示词库:全部 UI 提示词 · Tailwind UI 提示词 · 暗色模式提示词
组件模板
Anti-Design 风格按钮 - 极粗黑边、硬偏移阴影、高饱和色
指针交互气质
这套风格定制的指针交互——同一个光标,完全不同的性格。在舞台上移动鼠标感受它。
真实前端完成度
这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。
总体覆盖
51%
Fallback 规则
暗色模式
0%
缺失组件状态
79%
部分动效规则
70%
部分可访问性
70%
部分性能代价
35%
通用按钮
默认 / 悬停 / 键盘焦点 / 按下 / 禁用
输入框
默认 / 悬停 / 键盘焦点 / 禁用 / 错误
卡片
默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏
表单
默认 / 键盘焦点 / 禁用 / 加载中 / 错误
常见问题
/* Anti-Design Global Styles */
:root {
--anti-black: #000000;
--anti-white: #FFFFFF;
--anti-red: #FF0000;
--anti-blue: #0000FF;
--anti-yellow: #FFFF00;
--anti-magenta: #FF00FF;
--anti-cyan: #00FFFF;
--anti-green: #00FF00;
}
@keyframes anti-shake {
0%, 100% { transform: rotate(0deg); }
25% { transform: rotate(-1deg); }
75% { transform: rotate(1deg); }
}
@keyframes anti-blink {
0%, 49% { opacity: 1; }
50%, 100% { opacity: 0; }
}
@keyframes anti-marquee {
0% { transform: translateX(100%); }
100% { transform: translateX(-100%); }
}
/* Thick asymmetric borders */
.anti-border-asymmetric {
border-right-width: 6px;
border-bottom-width: 6px;
border-left-width: 4px;
border-top-width: 4px;
}
.anti-design-card {
position: relative;
overflow: hidden;
}
.anti-design-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), transparent);
pointer-events: none;
}
.anti-design-card:hover::before {
opacity: 1;
}
.anti-design-gradient {
background: linear-gradient(135deg, #000000, #FF0000);
}
.anti-design-gradient-text {
background: linear-gradient(135deg, #000000, #FF0000);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.anti-design-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(0, 0, 0, 0.08);
}
.anti-design-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.anti-design-animate-in {
animation: anti-design-fade-in 0.5s ease-out both;
}相关风格
探索这些风格获取现成的 tokens 和组件。
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 的技能包
Anti-Design deliberately breaks every UI convention. Where traditional design seeks harmony, Anti-Design seeks visual conflict.
基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。
综合评分
等级: C - 一般
对比度
| 场景 | 颜色 | 比率 | AA | AAA |
|---|---|---|---|---|
| Text on background | /#000000 / #ffffff | 21:1 | ||
| Muted text on background | /#6b7280 / #ffffff | 4.83:1 | ||
| Text on secondary background | /#000000 / #FFFF00 | 19.56:1 | ||
| Button primary | /#ffffff / #FF0000 | 4:1 | ||
| Text on accent 1 | /#000000 / #FF0000 | 5.25:1 | ||
| Text on accent 2 | /#000000 / #0000FF | 2.44:1 | ||
| Text on accent 3 | /#000000 / #FF00FF | 6.7:1 | ||
| Text on accent 4 | /#000000 / #00FF00 | 15.3:1 |
可读性
分数
87/100
字号
text-sm md:text-base
字重
font-black uppercase
行高
default
评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。