Skip to content

Latest commit

 

History

History
127 lines (98 loc) · 5.75 KB

File metadata and controls

127 lines (98 loc) · 5.75 KB

设计风格

核心设计哲学 (Core Design Philosophy)

风格关键词温暖学术 (Warm Academic) | 纸质质感 (Paper-feel) | 优雅衬线 (Elegant Serif) | 极简人文 (Humanist Minimal)

这种风格不使用冷冰冰的科技蓝或纯白,而是模仿高质感印刷品的阅读体验,传达"智慧、值得信赖、冷静"的品牌形象。


1. Tailwind Semantic 类名映射 (必须使用)

重要: 编写 UI 代码时,禁止硬编码颜色值(如 bg-[#CC785C])。 必须使用项目定义的 semantic 类名,确保主题一致性和可维护性。

用途 Tailwind 类名 CSS 变量 参考色值
主背景 bg-background --background 白色/米白
主文字 text-foreground --foreground 深灰 #1a1a1a
主按钮背景 bg-primary --primary 陶土色 #CC785C
主按钮文字 text-primary-foreground --primary-foreground 白色
次要背景 bg-secondary --secondary 浅灰
次要文字 text-secondary-foreground --secondary-foreground 深灰
静音背景 bg-muted --muted 更浅的灰
静音文字 text-muted-foreground --muted-foreground 中灰 #737373
卡片背景 bg-card --card 白色
卡片文字 text-card-foreground --card-foreground 深灰
边框 border-border --border 浅灰边框
输入框边框 border-input --input 浅灰
强调背景 bg-accent --accent 浅灰
强调文字 text-accent-foreground --accent-foreground 深灰
危险/错误 bg-destructive --destructive 红色

常用组合示例

// 主按钮
<Button className="bg-primary text-primary-foreground hover:bg-primary/90">确定</Button>

// 次要/取消按钮
<Button variant="ghost" className="text-muted-foreground hover:text-foreground hover:bg-muted">取消</Button>

// 卡片容器
<div className="bg-card border border-border rounded-xl">...</div>

// Tab 栏
<TabsList className="bg-muted rounded-xl">
  <TabsTrigger className="text-muted-foreground data-[state=active]:bg-card data-[state=active]:text-foreground">
    标签
  </TabsTrigger>
</TabsList>

// 静音提示文字
<p className="text-muted-foreground text-sm">这是次要说明文字</p>

2. 色彩体系 (Color Atmosphere)

  • 画布背景 (Canvas): 不要使用 #FFFFFF 纯白。
    • 描述暖米色 (Warm Beige)燕麦色 (Oat)象牙白 (Ivory)
    • Hex 参考: #F9F9F7 (主底色), #F0EEE6 (次底色)。
  • 文字颜色 (Ink): 不要使用 #000000 纯黑。
    • 描述炭灰色 (Charcoal)深石墨色 (Deep Graphite)
    • Hex 参考: #181818 (正文), #87867F (注释/次要)。
  • 点缀色 (Accents): 来源于自然界的矿物与植物色调。
    • 核心点缀陶土色 (Clay/Terracotta) —— 用于主按钮或高亮。
    • 辅助色板:无花果紫 (Fig)、橄榄绿 (Olive)、仙人掌绿 (Cactus)、灰蓝 (Sky)。

3. 排版与形状 (Typography & Shape)

  • 字体配对:
    • 标题: 经典衬线体 (Serif) (如 Georgia, Times)。使用 font-serif
    • 正文: 干净无衬线体 (Sans-serif) (如 Inter, Arial)。使用默认或 font-sans
  • 形状语言:
    • 柔和圆角: 使用 rounded-lgrounded-xlrounded-2xl
    • 扁平深度: 极少阴影,用 border border-border 区分层级。

4. AI 生成工具专用提示词 (Prompts for Tools)

A. 用于 Midjourney / DALL-E (图像生成)

Prompt: UI design of a modern AI landing page, style of Anthropic Claude. Aesthetic: Warm academic, intellectual, high-end minimalist. Colors: Background is warm off-white (#F9F9F7), text is deep charcoal, accents in terracotta clay. Typography: Elegant Serif headings paired with clean Sans-serif body text. Elements: Soft rounded cards, plenty of whitespace, flat design with subtle textures, matte finish, feels like a digital newspaper or high-quality magazine. No neon colors, no dark mode, no futuristic glowing effects. --v 6.0

B. 用于 v0.dev / Web 生成 (UI生成)

Prompt: Create a landing page with a "Warm Academic" design theme. Use a background color of cream/ivory (#F9F9F7). Use a Serif font for all main headings (H1, H2) to give it a literary feel, and a Sans-serif for body text. Primary Action Buttons should be Terracotta/Clay (#CC785C) with rounded corners. Cards should have a soft background (#FFFFFF or #F0EEE6) with generous padding and rounded-2xl corners. The overall vibe should be clean, trustworthy, and human-centric, avoiding standard tech-blue gradients.

C. 用于 Mermaid.js (图表风格)

这是一段可以直接复制使用的 Mermaid 配置,用于生成符合该配色的流程图:

%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#F0EEE6',
      'primaryTextColor': '#181818',
      'primaryBorderColor': '#87867F',
      'lineColor': '#CC785C',
      'secondaryColor': '#E8E6DC',
      'tertiaryColor': '#F9F9F7',
      'fontFamily': 'Georgia, serif'
    }
  }
}%%
graph TD
    A([开始]) --> B[中间流程]
    B --> C{核心决策}
    C -->|是| D[陶土色终点]
    C -->|否| E[灰色终点]

    %% 强制应用风格
    style A fill:#CC785C,color:#fff,stroke:none
    style B fill:#FFFFFF,stroke:#87867F,stroke-width:1px
    style C fill:#F0EEE6,stroke:#CC785C,stroke-width:2px
    style D fill:#CC785C,color:#fff,stroke:none
    style E fill:#87867F,color:#fff,stroke:none
Loading