风格目录/粒子系统

粒子系统

Particle System

A
90/100优秀
给这个风格评分

深色科技背景上漂浮的粒子网络,以连线、脉冲和轨迹营造数据流动感。适合科技公司、数据可视化、创意作品集。

particlesnetworkconnectionsfloatingtechnodesconstellationmoderncontemporarysleek
查看完整 Showcase →
模板

适合场景

particles / network / connections

设计重点

Use deep dark backgrounds (blue-black #0a0e1a or #0f1419)

注意事项

Don't let particles obscure content readability

AI 实现文档

先复制硬性提示词,需要时再看设计规范

默认用硬性提示词让 AI 直接生成前端;Design Spec 用来理解、改写和审核风格;Creative Brief 用来早期探索方向。

硬性提示词

默认使用它:复制后追加具体需求,让 AI 直接生成一致、可落地的前端。

什么时候用

  • 要 AI 直接生成页面或组件
  • 需要多轮输出保持一致
  • 担心风格跑偏或变丑

怎么用

  • 复制完整提示词
  • 后面追加具体需求
  • 生成后按禁止项和状态规则检查
STYLEKIT_STYLE_REFERENCE
style_name: 粒子系统
style_slug: particle
style_source: /styles/particle

# Hard Prompt

## 什么时候用
当你希望 AI 严格按风格规则生成代码时使用。它是生产界面最稳的默认选择。

## 怎么用
- 把完整提示词复制到 ChatGPT、Claude、Cursor 或其他编码助手。
- 在提示词后追加具体产品、页面或组件需求。
- 生成后按禁止项和交互状态检查,确认没有风格漂移。

请严格遵守以下风格规则并保持一致性,禁止风格漂移。

## 执行要求

- 优先保证风格一致性,其次再做创意延展。
- 遇到冲突时以禁止项为最高优先级。
- 输出前自检:颜色、排版、间距、交互是否仍属于该风格。

## Style Rules

STYLE: Particle System
TYPE: Deep dark tech aesthetic with floating particle network

## 必须遵守

- Use deep dark backgrounds (blue-black #0a0e1a or #0f1419)
- Add floating particle elements as background decoration
- Show connection lines between nearby particles at low opacity
- Keep foreground content clean and highly readable
- Use cool-toned accent colors (blue, teal, violet)
- Apply subtle glow effects to particles and key UI elements
- Use backdrop-blur for glass-like card surfaces
- Hover 时强化节点激活感(角落亮点、细边框高光、局部电流光)
- 阴影保持低不透明度大范围扩散,营造星云式幽灵光晕
- 前景组件响应要快(duration-150~200),与背景慢速粒子形成反差

## 绝对禁止

- Don't let particles obscure content readability
- Don't use warm or earthy colors for primary palette
- Don't use heavy borders or thick outlines
- Don't use patterns that compete with particle animation
- Don't use light backgrounds
- Don't use conventional box shadows (use glow effects instead)
- Don't let hover glow become solid opaque blocks (must stay airy and translucent)
- Don't apply long bouncy easing to controls (particle UI should feel precise)

COLOR HIERARCHY:
- Background: #0a0e1a (deepest)
- Surface: #0f1419/80 with backdrop-blur
- Border: white/5 or white/10
- Text primary: #e0e8ff
- Text secondary: white/50
- Accent: blue-500, teal-500, violet-500

PARTICLE LAYER:
- Purely decorative, never blocks content
- 50-150 particles, 1-6px size
- Slow random drift animation
- Connection lines at very low opacity

## Animation & Interaction Rules
- Node Excitation: hover 时用细边框高光和角落微亮点表现节点激活与能量注入。
- Nebula Glow: 阴影采用低不透明度大范围蓝青扩散,避免厚重实体阴影。
- Quantum Snap: 前景控件交互用 duration-150~200,保持精确快速反馈。
- Text Illumination: 卡片 hover 时次要文本可从 white/50 提升到 white/70 或亮蓝色。

---

# Particle System (粒子系统) Design System

> 深色科技背景上漂浮的粒子网络,以连线、脉冲和轨迹营造数据流动感。适合科技公司、数据可视化、创意作品集。

## 核心理念

A living network of floating particles and connection lines creates a sense of data flowing through space — tech-forward yet organic and mesmerizing.

Core principles:
- Deep dark backgrounds provide the canvas for luminous particle effects
- Particles drift slowly and randomly, forming organic constellations
- Connection lines appear between nearby particles at low opacity
- Foreground content stays clean, readable, and unobstructed
- Cool-toned accents (blue, teal, violet) reinforce the tech atmosphere

---

## Token 字典(精确 Class 映射)

### 边框
```
宽度: border
颜色: border-white/5
圆角: rounded-xl
```

### 阴影
```
小: shadow-[0_0_10px_rgba(59,130,246,0.1)]
中: shadow-[0_0_20px_rgba(59,130,246,0.2)]
大: shadow-[0_0_40px_rgba(59,130,246,0.3)]
悬停: hover:shadow-[0_0_20px_rgba(59,130,246,0.15)]
聚焦: focus:shadow-[0_0_15px_rgba(59,130,246,0.25)]
```

### 交互效果
```
悬停位移: (无)
悬停缩放: hover:scale-[1.02]
悬停透明度: hover:border-blue-500/20
过渡动画: transition-all duration-300
按下状态: active:scale-[0.98]
```

### 字体
```
标题: font-sans font-semibold
正文: font-sans text-sm
等宽: font-mono
```

### 字号
```
Hero: text-4xl md:text-6xl lg:text-7xl
H1: text-3xl md:text-5xl
H2: text-2xl md:text-3xl
H3: text-xl md:text-2xl
正文: text-sm md:text-base
小字: text-xs md:text-sm
```

### 间距
```
Section: py-16 md:py-24 lg:py-32
容器: px-6 md:px-8 lg:px-12
卡片: p-6 md:p-8
小间距: gap-3 md:gap-4
中间距: gap-4 md:gap-6
大间距: gap-6 md:gap-10
```

### 颜色角色
```
背景主色: bg-[#0a0e1a]
背景辅色: bg-[#0f1419]
背景强调色: bg-blue-500/5, bg-teal-500/5, bg-violet-500/5
正文主色: text-[#e0e8ff]
正文辅色: text-white/50
正文弱化色: text-white/25
按钮主色: bg-blue-600 text-white hover:bg-blue-500
按钮辅色: bg-white/5 text-white/80 border border-white/10 hover:bg-white/10
```

---

## [FORBIDDEN] 绝对禁止

以下 class 在本风格中**绝对禁止使用**,生成时必须检查并避免:

### 禁止的 Class
- `bg-white`
- `bg-gray-50`
- `bg-gray-100`
- `border-black`
- `border-gray-900`
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `text-gray-900`
- `text-black`

### 禁止的模式
- 匹配 `^bg-white`
- 匹配 `^bg-gray-[1-3]00`
- 匹配 `^shadow-(sm|md|lg|xl)$`
- 匹配 `^text-gray-[8-9]00`
- 匹配 `^text-black`

### 禁止原因
- `bg-white`: Particle system uses deep dark backgrounds only
- `bg-gray-50`: Light backgrounds break the particle aesthetic
- `shadow-sm`: Use glow effects (shadow-[...]) instead of conventional shadows
- `text-gray-900`: Use light text (#e0e8ff or white/50) on dark backgrounds
- `text-black`: Dark text is unreadable on dark particle backgrounds

> WARNING: 如果你的代码中包含以上任何 class,必须立即替换。

---

## [REQUIRED] 必须包含

### 按钮必须包含
```
rounded-lg
font-medium
transition-all duration-300
```

### 卡片必须包含
```
backdrop-blur
rounded-xl
border border-white/5
```

### 输入框必须包含
```
bg-[#0a0e1a]
border border-white/10
rounded-lg
text-[#e0e8ff]
focus:border-blue-500/50
```

---

## [COMPARE] Particle System 错误 vs 正确对比

以下错误示例只代表“未经过当前风格适配的通用默认值”,不要把错误示例当成视觉建议。

### 按钮

[WRONG] **错误示例**(通用组件库默认样式,不要直接复制):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
  点击我
</button>
```

[CORRECT] **正确示例**(使用当前风格的 token):
```html
<button class="rounded-lg font-medium transition-all duration-300 bg-blue-600 text-white hover:bg-blue-500">
  点击我
</button>
```

### 卡片

[WRONG] **错误示例**(未经当前风格适配的通用卡片):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
  <h3>{TITLE}</h3>
</div>
```

[CORRECT] **正确示例**(使用当前风格的 card token):
```html
<div class="backdrop-blur rounded-xl border border-white/5 p-6 md:p-8">
  <h3 class="font-sans font-semibold text-xl md:text-2xl">{TITLE}</h3>
</div>
```

### 输入框

[WRONG] **错误示例**(未经当前风格适配的通用输入框):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```

[CORRECT] **正确示例**(使用当前风格的 input token):
```html
<input class="bg-[#0a0e1a] border border-white/10 rounded-lg text-[#e0e8ff] focus:border-blue-500/50" placeholder="{PLACEHOLDER}" />
```

---

## [TEMPLATES] Particle System 页面骨架模板

以下骨架只使用当前风格的 token。替换 `{PLACEHOLDER}` 时,不要移除或替换这些 token:

### 导航栏骨架
```html
<nav class="bg-[#0a0e1a] text-[#e0e8ff] border border-white/5 px-6 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-sans font-semibold text-xl md:text-2xl">
      {LOGO_TEXT}
    </a>
    <div class="flex gap-4 md:gap-6 font-sans text-sm text-xs md:text-sm">
      {NAV_LINKS}
    </div>
  </div>
</nav>
```

### Hero 区块骨架
```html
<section class="bg-blue-500/5 text-[#e0e8ff] py-16 md:py-24 lg:py-32 px-6 md:px-8 lg:px-12">
  <div class="max-w-4xl mx-auto">
    <h1 class="font-sans font-semibold text-4xl md:text-6xl lg:text-7xl">
      {HEADLINE}
    </h1>
    <p class="font-sans text-sm text-sm md:text-base max-w-xl">
      {SUBHEADLINE}
    </p>
    <button class="rounded-lg font-medium transition-all duration-300 bg-blue-600 text-white hover:bg-blue-500">
      {CTA_TEXT}
    </button>
  </div>
</section>
```

### 卡片网格骨架
```html
<section class="bg-[#0a0e1a] text-[#e0e8ff] py-16 md:py-24 lg:py-32 px-6 md:px-8 lg:px-12">
  <div class="max-w-6xl mx-auto">
    <h2 class="font-sans font-semibold text-2xl md:text-3xl">{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="backdrop-blur rounded-xl border border-white/5 p-6 md:p-8">
        <h3 class="font-sans font-semibold text-xl md:text-2xl">{CARD_TITLE}</h3>
        <p class="font-sans text-sm text-sm md:text-base text-white/25">{CARD_DESCRIPTION}</p>
      </div>
    </div>
  </div>
</section>
```

### 表单输入骨架
```html
<input class="bg-[#0a0e1a] border border-white/10 rounded-lg text-[#e0e8ff] focus:border-blue-500/50" placeholder="{PLACEHOLDER}" />
```

### 页脚骨架
```html
<footer class="bg-[#0f1419] text-white/50 py-16 md:py-24 lg:py-32 px-6 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-sans font-semibold text-xl md:text-2xl">{LOGO_TEXT}</span>
        <p class="font-sans text-sm text-xs md:text-sm">{TAGLINE}</p>
      </div>
      <div>
        <h4 class="font-sans font-semibold text-xl md:text-2xl">{COLUMN_TITLE}</h4>
        <ul class="font-sans text-sm text-xs md:text-sm">
          {FOOTER_LINKS}
        </ul>
      </div>
    </div>
  </div>
</footer>
```

---

## [CHECKLIST] Particle System 生成后自检清单

**输出代码前,逐项验证当前风格的 token 和规则。如有违反,先修正再交付:**

### Token 检查
- [ ] 按钮包含: `rounded-lg font-medium transition-all duration-300`
- [ ] 卡片包含: `backdrop-blur rounded-xl border border-white/5`
- [ ] 输入框包含: `bg-[#0a0e1a] border border-white/10 rounded-lg text-[#e0e8ff] focus:border-blue-500/50`

### 禁止项检查
- [ ] 没有使用 `bg-white`
- [ ] 没有使用 `bg-gray-50`
- [ ] 没有使用 `bg-gray-100`
- [ ] 没有使用 `border-black`
- [ ] 没有使用 `border-gray-900`
- [ ] 没有使用 `shadow-sm`
- [ ] 没有使用 `shadow-md`
- [ ] 没有使用 `shadow-lg`

### 风格规则检查
- [ ] Use deep dark backgrounds (blue-black #0a0e1a or #0f1419)
- [ ] Add floating particle elements as background decoration
- [ ] Show connection lines between nearby particles at low opacity
- [ ] Keep foreground content clean and highly readable
- [ ] Use cool-toned accent colors (blue, teal, violet)

### 风格漂移检查
- [ ] 没有违反:Don't let particles obscure content readability
- [ ] 没有违反:Don't use warm or earthy colors for primary palette
- [ ] 没有违反:Don't use heavy borders or thick outlines
- [ ] 没有违反:Don't use patterns that compete with particle animation
- [ ] 没有违反:Don't use light backgrounds

### 通用交付检查
- [ ] 响应式布局在手机、平板和桌面下稳定,没有横向溢出
- [ ] 所有交互元素有清晰焦点、可访问名称和 reduced-motion 方案
- [ ] 文本对比度达到 WCAG AA,且没有用颜色单独传递状态
- [ ] 结果仍然能够一眼识别为 Particle System

---

## [EXAMPLES] 示例 Prompt

### 1. 科技公司着陆页

深色背景上粒子网络装饰的科技着陆页

```
Create a tech company landing page using Particle System style:
- Deep blue-black background with floating particles
- Glass-effect navigation bar
- Hero section with large title over particle field
- Feature cards with dark glass surfaces and blue glow hover
- Stats section with glowing numbers
- CTA section with primary blue and secondary glass buttons
```

### 2. 数据可视化面板

带粒子装饰的数据可视化仪表板

```
Create a data visualization dashboard using Particle System style:
- Dark background with subtle particle animation
- Sidebar navigation with glass effect
- Metric cards showing key data points
- Network graph visualization section
- Activity timeline with glowing nodes
```

### 3. 作品集展示页

星座风格粒子连线的个人作品集

```
Create a portfolio page using Particle System style:
- Deep dark background with constellation particle field
- Minimal navigation
- Project cards with dark glass surface and glow hover
- Skills section with node-and-line visualization
- Contact section with blue accent buttons
```

## 绝对禁止(匹配即拒绝)

以下模式一旦出现,视为风格违规——不找借口,直接重写。

- let particles obscure content readability
- use warm or earthy colors for primary palette
- use heavy borders or thick outlines
- use patterns that compete with particle animation
- use light backgrounds
- use conventional box shadows (use glow effects instead)
- let hover glow become solid opaque blocks (must stay airy and translucent)
- apply long bouncy easing to controls (particle UI should feel precise)

## 自检清单(交付前逐条确认)

如果任何一条不通过,说明风格漂移了——修改后再交付。

- [ ] 没有紫色到蓝色的渐变
- [ ] 没有使用 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 let particles obscure content readability
- [ ] don't use warm or earthy colors for primary palette
- [ ] don't use heavy borders or thick outlines
- [ ] don't use patterns that compete with particle animation
- [ ] don't use light backgrounds

更多提示词库:全部 UI 提示词 · Tailwind UI 提示词 · 暗色模式提示词

社区

评分与反馈

还没有人评分,来当第一个登录后评分

正在加载评论…

组件模板

组件预览

Button

Particle UI 按钮,快速响应并带节点扫光激活

// Primary Button // Secondary Button // Ghost Button

真实前端完成度

暗色、状态、动效与可访问性覆盖

这层检查这个风格是否已经具备真实网站常见的主题、状态反馈、键盘可访问性和性能约束。

总体覆盖

51%

Fallback 规则

暗色模式

0%

缺失

组件状态

79%

部分

动效规则

70%

部分

可访问性

70%

部分

性能代价

35%

通用

关键状态覆盖

light
悬停键盘焦点禁用加载中空状态错误成功

按钮

默认 / 悬停 / 键盘焦点 / 按下 / 禁用

输入框

默认 / 悬停 / 键盘焦点 / 禁用 / 错误

卡片

默认 / 悬停 / 键盘焦点 / 加载中 / 骨架屏

表单

默认 / 键盘焦点 / 禁用 / 加载中 / 错误

落地注意事项

  • 暗色模式需要使用语义 tokens,不要直接把浅色主题反相。
  • 组件至少要覆盖悬停、键盘焦点、禁用、加载、空状态、错误和成功反馈。
  • 可访问性需要检查对比度、键盘导航、44px 点击区域和 reduced-motion。
  • 性能上避免动画改变布局;重 blur/shadow 的风格要控制层数和滚动区域。

常见问题

关于粒子系统的常见问题

什么是粒子系统风格?
深色科技背景上漂浮的粒子网络,以连线、脉冲和轨迹营造数据流动感。适合科技公司、数据可视化、创意作品集。 它的设计理念:A living network of floating particles and connection lines creates a sense of data flowing through space — tech-forward yet organic and mesmerizing.
粒子系统风格常用什么配色?
粒子系统 的主色是 #0a0e1a,辅色是 #0f1419,强调色包括 #e0e8ff、#64c8ff、#64ffc8、#a78bfa。每个色值都可以在本页色板中复制。
怎样把粒子系统风格做对?
关键做法:Use deep dark backgrounds (blue-black #0a0e1a or #0f1419). Add floating particle elements as background decoration. Show connection lines between nearby particles at low opacity.
粒子系统风格最常见的错误是什么?
应避免:Don't let particles obscure content readability. Don't use warm or earthy colors for primary palette. Don't use heavy borders or thick outlines.
如何让 AI 生成粒子系统风格的界面?
复制本页提供的 AI 提示词(含设计 tokens 与组件规则),粘贴到 ChatGPT、Claude、Claude Code 或 Codex。提示词中应包含关键词:particles、network、connections、floating。
全局样式

全局 CSS

css
/* Particle System Global Styles */
@keyframes particle-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -15px); }
  50% { transform: translate(-5px, 10px); }
  75% { transform: translate(-10px, -5px); }
}
@keyframes particle-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.5); }
}
@keyframes particle-connect {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}
/* Particle System Design Tokens */
:root {
  --particle-primary: #0a0e1a;
  --particle-secondary: #0f1419;
  --particle-accent: #e0e8ff;
  --particle-glow: rgba(10, 14, 26, 0.3);
}

.particle-card {
  position: relative;
  overflow: hidden;
}

.particle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.05), transparent);
  pointer-events: none;
}

.particle-card:hover::before {
  opacity: 1;
}

.particle-gradient {
  background: linear-gradient(135deg, #0a0e1a, #e0e8ff);
}

.particle-gradient-text {
  background: linear-gradient(135deg, #0a0e1a, #e0e8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.particle-frosted {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(10, 14, 26, 0.08);
}

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

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

.particle-focus { outline: 2px solid var(--particle-primary, currentColor); outline-offset: 2px; }

/* Responsive utilities */
@media (prefers-reduced-motion: reduce) {
  .particle-animate-in {
    animation: none;
  }
}

@media (min-width: 768px) {
  .particle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Print styles */
@media print {
  .particle-gradient,
  .particle-frosted {
    background: none;
    backdrop-filter: none;
  }
}

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 的技能包

设计哲学

A living network of floating particles and connection lines creates a sense of data flowing through space — tech-forward yet organic and mesmerizing.

无障碍

无障碍评分

基于颜色对比度和排版可读性的 WCAG 2.1 合规分析。

90

综合评分

等级: A - 优秀

对比度

分数: 92/100平均比率: 12.01:1
AA 通过AAA 未通过
场景颜色比率AAAAA
Text on background
/#e0e8ff / #0a0e1a
15.73:1
Text on secondary background
/#e0e8ff / #0f1419
15.12:1
Button primary
/#ffffff / #2563eb
5.17:1

可读性

分数

85/100

字号

text-sm md:text-base

字重

font-sans font-semibold

行高

default

评分基于 WCAG 2.1 标准。AA 级要求普通文本对比度 4.5:1、大文本 3:1;AAA 级要求普通文本 7:1、大文本 4.5:1。