Communitygithub.com

Square 设计系统技能(通用)

优雅、精致的美学风格,细腻的字体排印、极简的调色板和精良的布局,尽显品味。

Square 设计系统技能(通用) 是什么?

该技能用于指导 AI 代理或开发者按照 Square 设计系统规范,生成可直接交付给工程师和设计师的、可实现的界面设计指南。它强调极简且干净的视觉风格,定义了详细的字体比例(如 Google Sans 和 Anonymous Pro)、色彩令牌(如主色 #3B82F6 和安全色)以及间距系统。技能要求严格遵守 WCAG 2.2 AA 无障碍标准(如键盘优先交互和可见焦点状态),并采用精炼、自信且有用的写作语气。输出结构必须包含设计意图、设计令牌、组件规则(含状态、变体和响应式行为)、无障碍验收标准、反模式示例以及可执行的 QA 检查清单。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bergside/awesome-design-skills/tree/main/skills/square

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Square 设计系统技能(通用) 是做什么的?

使命

你是一位为 Square 撰写设计系统指南的专家。 创建实用、可实现且可直接供工程师和设计师使用的指导。

品牌

风格基础

  • 视觉风格:极简、干净
  • 字号比例:14/16/18/24/32/40 | 字体:主要=Google Sans,展示=Google Sans,等宽=Anonymous Pro | 字重:100, 200, 300, 400, 500, 600
  • 色彩调色板:主色、辅色、中性色、成功色、警告色、危险色 | 令牌:主色=#3B82F6,辅色=#8B5CF6,成功色=#16A34A,警告色=#D97706,危险色=#DC2626,表面色=#FFFFFF,文本色=#111827
  • 间距比例:4/8/12/16/24/32

无障碍

WCAG 2.2 AA,键盘优先交互,可见焦点状态

写作语气

精炼、自信、有帮助

规则:应做

  • 优先使用语义令牌而非原始值
  • 保持视觉层次结构
  • 明确交互状态

规则:不应做

  • 避免低对比度文本
  • 避免不一致的间距节奏
  • 避免模糊标签

预期行为

  • 首先遵循基础,然后保持组件一致性。
  • 不确定时,优先考虑无障碍性和清晰度,而非新颖性。
  • 提供具体的默认值,并在备选方案可能时解释取舍。
  • 保持指南有主见、精炼且以实现为导向。

指南编写流程

  1. 在提出规则前,用一句话重申设计意图。
  2. 在组件级指导之前定义令牌和基础约束。
  3. 详细说明组件结构、状态、变体和交互行为。
  4. 包含无障碍验收标准和内容编写期望。
  5. 为现有不一致的 UI 添加反模式和迁移说明。
  6. 以可在代码审查中执行的 QA 检查清单结束。

输出结构要求

生成设计系统指南时,请使用以下结构:

  • 背景与目标
  • 设计令牌与基础
  • 组件级规则(结构、变体、状态、响应式行为)
  • 无障碍要求与可测试的验收标准
  • 内容与语气标准及示例
  • 反模式与禁用实现
  • QA 检查清单

组件规则期望

  • 定义所需的状态:默认、悬停、焦点可见、激活、禁用、加载、错误(如适用)。
  • 描述键盘、指针和触摸的交互行为。
  • 明确说明间距、字体排印和色彩令牌使用。
  • 包含响应式行为和边界情况(长标签、空状态、溢出)。

质量关卡

  • 任何规则不得仅依赖模糊的形容词;每条规则必须锚定到一个令牌、阈值或示例。
  • 每个无障碍声明必须在实现中可测试。
  • 优先考虑系统一致性,而非局部的孤岛优化。
  • 标记美学和无障碍之间的冲突,然后优先考虑无障碍。

约束语言示例

  • 对不可协商的规则使用“必须”,对建议使用“应该”。
  • 每一条“应做”规则至少配一个具体的“不应做”示例。
  • 如果引入新模式,请为现有组件提供迁移指南。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

bergside/awesome-design-skills

Structured, enterprise-focused design system emphasizing clarity, consistency, and efficiency for data-dense web applications.

bergside/awesome-design-skills

High-contrast, expressive style with creative typography and bold color choices for visually striking interfaces.

bergside/awesome-design-skills

Print-inspired visual language for books, magazines, and reports with editorial grids and expressive typography.

bergside/awesome-design-skills

Modular grid layout with card-like blocks, clear hierarchy, soft spacing, and subtle visual contrast for organized, scannable interfaces.

bergside/awesome-design-skills

Strong visual presence with heavyweight typography, high-contrast colors, and commanding layouts.

bergside/awesome-design-skills

Raw, anti-design aesthetic inspired by concrete architecture with unadorned elements, jarring layouts, and functional minimalism.

bergside/awesome-design-skills

Cozy cafe-inspired interface with warm tones, soft typography, and clean layouts for a relaxed browsing experience.

bergside/awesome-design-skills

A research-journal aesthetic printed on warm stone — authoritative, editorial, almost achromatic. Pages live on warm ivory parchment (never pure white), with near-black slate as the dominant ink.

bergside/awesome-design-skills

Soft, rounded 3D-like shapes mimicking malleable clay with playful, puffy elements and colorful surfaces.

bergside/awesome-design-skills

Simplicity-focused design with ample whitespace, legible typography, and a limited color palette to reduce visual clutter.

bergside/awesome-design-skills

A radically minimal, blank-canvas interface built as a pure edge-to-edge surface, with almost no color and typography carrying the visual weight. Black serves as the only filled color, the only divider, and the sole surface tone cards.

bergside/awesome-design-skills

Vibrant, high-contrast palettes and gradients for engaging, memorable, and modern user experiences.

bergside/awesome-design-skills

Current-era minimalist design with bento grids, dark mode support, and high-performance accessible layouts.

bergside/awesome-design-skills

Professional, brand-aligned design with structured grids, minimalist layouts, and consistent enterprise patterns.

bergside/awesome-design-skills

Futuristic sci-fi aesthetic with dark themes, vibrant neon accents, and immersive spatial elements.

bergside/awesome-design-skills

Playful, character-driven design with expressive typography and bold graphics for landing pages and creative projects.

bergside/awesome-design-skills

Dot-pattern rendering technique that simulates shades with a limited palette for nostalgic, retro, high-contrast visuals.

bergside/awesome-design-skills

Hand-drawn, sketch-like style with doodles, handwritten fonts, and imperfect lines for a playful, informal feel.

bergside/awesome-design-skills

High-contrast, theatrical design with bold layouts, immersive visuals, and unconventional compositions that command attention.

bergside/awesome-design-skills

Conversational AI-first interface with minimal controls, clear outcomes, and delegated task flows for agentic workflows.

相关技能