Token导航 LogoToken导航

Agent Skill · 前端设计

swiss-design(瑞士设计)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

swiss-design 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 2,625。

总安装 2,056周安装 84GitHub Stars 63下载 659核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:swiss-design(瑞士设计)
来源仓库:https://github.com/zeke/swiss-design-skill
仓库路径:skills/swiss-design
安装命令:
npx skills add https://github.com/zeke/swiss-design-skill --skill swiss-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zeke/swiss-design-skill --skill swiss-design

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。适合让 Agent 整理页面结构、生成 UI 方案或检查视觉一致性。使用时需结合现有品牌、设计系统和用户任务,避免堆砌装饰元素。涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出和对齐表现。安装前需确认权限范围、维护状态及是否触发联网或文件操作。

来源仓库内路径:skills/swiss-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/zeke/swiss-design-skill --skill swiss-design;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

swiss-design 怎么安装?

在终端执行 npx skills add https://github.com/zeke/swiss-design-skill --skill swiss-design。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

swiss-design 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

swiss-design 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

swiss-design 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

swiss-design 用的人多吗?

公开数据是累计安装 2,056 次,近一周安装 84 次,下载 659 次,GitHub 63 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

swiss-design 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
swiss-design

瑞士设计 · 本页

2,05663操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Swiss Design System

A design system rooted in the Swiss International Style of the 1950s–60s: grotesque typography, rigorous grid, bold geometric forms, generous whitespace, and restrained color.

Six Principles

  1. Grid first. Every layout lives on a 12-column grid with an 8px base unit.
  2. Mobile first, always. Design for the smallest viewport first, then expand. Every layout must work at 320px and at 1440px. Use sm:, md:, lg: Tailwind prefixes systematically.
  3. Whitespace is structure. Generous padding and margins are not waste — they are the design.
  4. Opacity, not hue, creates hierarchy. Never introduce a second color to indicate text weight or importance. Use opacity.
  5. One accent. Each project gets exactly one accent color, used sparingly at multiple opacities.
  6. Narrow columns. Body text never exceeds max-w-[60ch]. Wider columns hurt legibility.

Typography

Primary font: IBM Plex Sans (Google Fonts)

<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap" rel="stylesheet">

Fallback chain (in order of preference):

FontSourceCharacter
IBM Plex SansGoogle FontsPrimary. Rational, slightly condensed, 1960s systems rationalism
Hanken GroteskGoogle FontsClosest to Neue Haas Grotesk lineage
BarlowGoogle FontsCondensed Swiss-grid proportions, strong vertical rhythm
Host GroteskGoogle FontsWarm grotesque, good at all sizes
DM SansGoogle FontsClean neo-grotesque fallback
system-uiBuilt-inLast resort
font-family: 'IBM Plex Sans', 'Hanken Grotesk', 'Barlow', 'Host Grotesk', 'DM Sans', system-ui, sans-serif;

Type scale:

RoleTailwindLine heightMax width
Displaytext-7xl font-light tracking-tightleading-noneunconstrained
H1text-5xl font-light tracking-tightleading-tightunconstrained
H2text-3xl font-light tracking-tightleading-snugunconstrained
H3text-xl font-normalleading-snugunconstrained
Bodytext-base font-normalleading-relaxedmax-w-[60ch]
Smalltext-sm font-normalleading-relaxedmax-w-[60ch]
Captiontext-xs font-normal tracking-wide uppercaseleading-normalunconstrained
Monofont-mono text-smleading-relaxedmax-w-[60ch]
  • Headings: font-light (300) or font-normal (400). Never bold for headings.
  • Emphasis within body: font-medium (500). Never font-bold (700).
  • Letter spacing on display/h1: tracking-tight (-0.02em).
  • Captions and labels: tracking-wide uppercase text-xs.

Typographic details

The Swiss style depends on typographic precision. These rules are non-negotiable:

  • Use the ellipsis character …, never three periods ....
  • Use curly quotes " " and ' ', never straight quotes " '.
  • Loading and progress states end with an ellipsis: Loading…, Saving….
  • Number columns and tables use font-variant-numeric: tabular-nums (Tailwind: tabular-nums) so digits align vertically.
  • Headings use text-wrap: balance (Tailwind: text-balance) to prevent widows. Body paragraphs use text-pretty where supported.
  • Non-breaking spaces between value and unit, and inside brand names: 10 MB, ⌘ K.

Color System

Stone palette (light mode → dark mode)

RoleLightDarkTailwind
Page backgroundstone-50stone-950bg-stone-50 dark:bg-stone-950
Surface / cardstone-100stone-900bg-stone-100 dark:bg-stone-900
Subtle surfacestone-200stone-800bg-stone-200 dark:bg-stone-800
Borderstone-200stone-800border-stone-200 dark:border-stone-800
Subtle borderstone-100stone-900border-stone-100 dark:border-stone-900
Primary textstone-900stone-50text-stone-900 dark:text-stone-50
Secondary textstone-900/70stone-50/70text-stone-900/70 dark:text-stone-50/70
Tertiary textstone-900/40stone-50/40text-stone-900/40 dark:text-stone-50/40
Placeholderstone-900/30stone-50/30text-stone-900/30 dark:text-stone-50/30

Opacity hierarchy (the core rule)

To make text less dominant, reduce opacity — never change the hue.

Full presence:   text-stone-900          (primary)
Softer:          text-stone-900/70       (secondary, labels)
Quiet:           text-stone-900/40       (tertiary, captions)
Ghosted:         text-stone-900/20       (disabled, placeholder)

Dark mode: replace stone-900 with stone-50. The opacity values stay identical.

Accent color

Each project uses one accent color. Default is Swiss poster red.

NameHexTailwind arbitrary
Swiss Red (default)#C8102E[#C8102E]
Cobalt#003B8E[#003B8E]
Golden#F0B429[#F0B429]
Forest#2D6A4F[#2D6A4F]

Use accent at these opacities only:

Full:    bg-[#C8102E]          text-[#C8102E]
Muted:   bg-[#C8102E]/60       text-[#C8102E]/60
Subtle:  bg-[#C8102E]/20       (backgrounds, tints)
Ghost:   bg-[#C8102E]/10       (very light tints)

Spacing & Grid

Base unit: 8px. All spacing is a multiple of 8.

TokenValueUsage
gap-28pxTight inline gaps
gap-416pxComponent internal
gap-832pxBetween components
gap-1664pxBetween sections
py-1664pxSection padding (minimum)
py-2496pxSection padding (standard)
py-32128pxSection padding (generous)

Grid:

<!-- 12-column grid — always mobile-first, columns collapse to full-width on small screens -->
<div class="grid grid-cols-12 gap-4 md:gap-8">
  <div class="col-span-12 md:col-span-8">...</div>
  <div class="col-span-12 md:col-span-4">...</div>
</div>

Max content width: max-w-5xl or max-w-6xl with mx-auto px-4 md:px-8.


Responsive Design

The Swiss grid adapts fluidly across viewports. Every layout decision must be made at two scales: mobile (single column, generous vertical rhythm) and desktop (multi-column, horizontal tension).

Breakpoint strategy:

PrefixWidthUse for
(none)0px+Mobile — single column, full width
sm:640px+Large phones, small tablets
md:768px+Tablets, narrow desktop — introduce 2-col layouts
lg:1024px+Desktop — full 12-col grid, max content width

Mobile layout rules:

  • All grid columns collapse to col-span-12
  • Section padding reduces: py-16 md:py-24 lg:py-32
  • Horizontal padding tightens: px-4 md:px-8
  • Display type scales down: text-5xl md:text-7xl lg:text-8xl
  • Multi-column nav collapses to hamburger or hidden
  • Tables scroll horizontally: wrap in overflow-x-auto
  • Side-by-side cards stack vertically: grid-cols-1 md:grid-cols-2 lg:grid-cols-3

Fluid type pattern:

<!-- Scale display type fluidly across viewports -->
<h1 class="text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-normal tracking-tight leading-none">
  Swiss International Style
</h1>

<!-- Or use clamp() for truly fluid scaling -->
<h1 class="text-[clamp(2rem,6vw,5rem)] font-normal tracking-tight leading-none">
  Swiss International Style
</h1>

Responsive section pattern:

<section class="py-16 md:py-24 lg:py-32 border-b border-stone-200 dark:border-stone-800">
  <div class="max-w-6xl mx-auto px-4 md:px-8">
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
      ...
    </div>
  </div>
</section>

Touch targets: All interactive elements must be at least 44×44px on mobile. Use min-h-[44px] min-w-[44px] for buttons and nav links.

Navigation on mobile: Collapse to a minimal top bar. Hide secondary nav links below md:. Never use hamburger menus with deeply nested hierarchies — the Swiss style favors flat, clear navigation.


Dark Mode

Use Tailwind's media strategy (respects system preference automatically):

// tailwind.config.js
darkMode: 'media'

Every color token has a dark: variant. See the stone palette table above. Never use bg-black or bg-white — always use stone scale.

color-scheme

Tailwind only restyles your code. The browser still renders scrollbars, native form controls, and the canvas before CSS loads using its own defaults. Without color-scheme, a Swiss page in dark mode shows light scrollbars and light-mode native inputs against bg-stone-950.

Always declare both schemes on <html>:

html { color-scheme: light dark; }

Or via meta tag (parsed before CSS, prevents flash):

<meta name="color-scheme" content="light dark">

Also set <meta name="theme-color"> to match the page background so the mobile browser chrome blends in.


Gotchas

  • Never use a second color to signal hierarchy. Opacity only. text-stone-900/70, not text-stone-500.
  • Never exceed max-w-[60ch] for body text. Wider columns are illegible.
  • Never bg-white or bg-black. Use bg-stone-50 / bg-stone-950.
  • IBM Plex Sans is not a system font. Always include the Google Fonts <link> tag.
  • One accent per project. Do not introduce a second accent color. Use opacity variations instead.
  • Headings are light, not bold. font-light for display and h1, font-normal for h2–h3.
  • No border-radius on structural elements. Inputs, cards, and containers use rounded-none or at most rounded-sm. The Swiss style is rectilinear.
  • Section padding is generous. Minimum py-16, standard py-24. Never less.
  • Every layout must work on mobile. Default (no prefix) classes are mobile. Always add md: and lg: variants for larger viewports. Never build desktop-first and try to retrofit mobile.
  • Tables on mobile need overflow-x-auto. Never let a wide table break mobile layout.
  • Touch targets minimum 44px. Buttons, links, and nav items must be tappable on mobile.
  • Fluid type, not fixed. Use responsive type classes (text-3xl md:text-5xl) or clamp() — never a single fixed size that works only at one viewport.
  • Never outline-none without a focus replacement. Interactive elements need a visible focus indicator. Use focus-visible:ring-2 focus-visible:ring-stone-900 dark:focus-visible:ring-stone-50 (or the accent) instead. Prefer :focus-visible over :focus so the ring only appears on keyboard navigation.
  • Honor prefers-reduced-motion. If you add transitions or animations, gate them: motion-safe:transition motion-reduce:transition-none. Animate only transform and opacity. Never transition: all.
  • Set color-scheme: light dark on <html>. Otherwise scrollbars and native form controls stay light in dark mode.
  • Straight quotes and ... are bugs. Use curly quotes and the … character.

Behavior, accessibility, and quality

This skill is an aesthetic and visual system. It does not cover accessibility, focus management, form behavior, hydration, performance, or interaction quality.

For those, defer to the Vercel Web Interface Guidelines, which are framework-agnostic and complementary:

After applying Swiss styling, fetch the rules above and audit the result for accessibility, focus states, form behavior, animation safety, performance, and i18n. Treat findings as required fixes, not suggestions. Where the two systems overlap (typography niceties, dark mode, focus rings), the rules already inlined in this SKILL.md take precedence.

When to read reference files

TaskFile
Full color token table, CSS custom properties, dark mode detailsreferences/design-system.md
Tailwind component patterns: buttons, cards, nav, forms, badgesreferences/components.md
Paste-ready tailwind.config.js and CSS @theme blockreferences/tailwind-config.md
Applying this system to an existing page, audit checklistreferences/prompting.md

平台分布

Codex

39.2%
按下载量换算258

Claude

27.1%
按下载量换算179

Cursor

19.3%
按下载量换算127

Gemini CLI

9.3%
按下载量换算61

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills