技能版本 1.0.0

typography-selector

Browse and select fonts from Google Fonts or curated pairings. Use to find the perfect typography for a design project.

价格

免费

  • 安装:免费

在组织开通时一次性收取;再次读取清单或下载不重复收费。

以上为公开标价。你的组织可能有协议价,以控制台显示的价格为准。

如何使用

  1. 为组织安装

    开通即安装:组织固定使用开通时的版本(当前为 1.0.0)。升级到新版本需要取消后重新开通。

  2. 创建凭证

    客户端使用组织凭证读取;绑定到数字人后,数字人使用绑定凭证按需加载。请求中携带:

    Authorization: Bearer $ZGI_MARKET_KEY

  3. 读取清单与安装包

    清单列出版本、文件和校验值;安装包是一个 zip 文件。

    读取清单
    curl "https://market-api.zgi.im/v1/market/skills/typography-selector/manifest" \
      -H "Authorization: Bearer $ZGI_MARKET_KEY"
    下载安装包
    curl "https://market-api.zgi.im/v1/market/skills/typography-selector/package" \
      -H "Authorization: Bearer $ZGI_MARKET_KEY" \
      -o typography-selector.zip

    读取清单和下载安装包不计入用量。下载后请用响应头中的 SHA-256 校验文件。

技能说明

名称
typography-selector
说明
Browse and select fonts from Google Fonts or curated pairings. Use to find the perfect typography for a design project.
仅指令

技能包内没有脚本文件:这个技能是供模型阅读的文本。

SKILL.md 节选

# Typography Selector

Browse, select, and apply typography for frontend designs.

## Purpose

This skill helps select the perfect fonts by:
- Browsing trending fonts on Google Fonts
- Suggesting pairings based on aesthetic
- Generating Google Fonts imports
- Mapping to Tailwind config
- Providing curated fallbacks when browser unavailable

## Browser Workflow

### Step 1: Navigate to Google Fonts

```javascript
tabs_context_mcp({ createIfEmpty: true })
tabs_create_mcp()
navigate({ url: "https://fonts.google.com/?sort=trending", tabId: tabId })
```

### Step 2: Browse Fonts

Take screenshots of trending fonts:

```javascript
computer({ action: "screenshot", tabId: tabId })
```

Present to user: "Here are trending fonts. What style catches your eye?"

### Step 3: Search Specific Fonts

If user has a preference:

```javascript
navigate({ url: "https://fonts.google.com/?query=Outfit", tabId: tabId })
computer({ action: "screenshot", tabId: tabId })
```

### Step 4: View Font Details

Click on a font to see all weights and styles:

```javascript
computer({ action: "left_click", coordinate: [x, y], tabId: tabId })
computer({ action: "screenshot", tabId: tabId })
```

### Step 5: Select Fonts

Get user's choice for:
- **Display/Heading font**: For headlines, hero text
- **Body font**: For paragraphs, readable text
- **Mono font** (optional): For code, technical content

### Step 6: Generate Import

Create Google Fonts import:

```html
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,700&display=swap" rel="stylesheet">
```

### Step 7: Generate Config

Create Tailwind font config:

```javascript
tailwind.config = {
  theme: {
    extend: {
      fontFamily: {
        display: ['Fraunces', 'serif'],
        body: ['Outfit', 'sans-serif'],
        mono: ['JetBrains Mono', 'monospace'],
      }
    }
  }
}
```

---

## Fallback Mode

When browser tools are unavailable, use curated pairings.

### How to Use Fallbacks

1. Ask user about desired aesthetic
2. Present relevant pairings from `references/font-pairing.md`
3. Let user choose or request adjustments
4. Provide import code for selected fonts

### Quick Aesthetic Match

| Aesthetic | Recommended Pairing |
|-----------|---------------------|
| Dark & Premium | Fraunces + Outfit |
| Minimal | Satoshi + Satoshi |
| Neobrutalism | Space Grotesk + Space Mono |
| Editorial | Instrument Serif + Inter |
| Y2K/Cyber | Orbitron + JetBrains Mono |
| Scandinavian | Plus Jakarta Sans + Plus Jakarta Sans |
| Corporate | Work Sans + Inter |

---

## Typography Best Practices

### Font Pairing Rules

**Contrast, not conflict:**
- Pair serif with sans-serif
- Pair display with readable body
- Match x-height for harmony
- Limit to 2 fonts (3 max with mono)

**Weight distribution:**
- Headlines: Bold (600-900)
- Subheads: Medium (500-600)
- Body: Regular (400)
- Captions: Light to Regular (300-400)

### Sizing Scale

Use a consistent type scale:

```css
/* Minor Third (1.2) */
--text-xs: 0.75rem;    /* 12px */
--text-sm: 0.875rem;   /* 14px */
--text-base: 1rem;     /* 16px */
--text-lg: 1.125rem;   /* 18px */
--text-xl: 1.25rem;    /* 20px */
--text-2xl: 1.5rem;    /* 24px */
--text-3xl: 1.875rem;  /* 30px */
--text-4xl: 2.25rem;   /* 36px */
--text-5xl: 3rem;      /* 48px */
--text-6xl: 3.75rem;   /* 60px */
--text-7xl: 4.5rem;    /* 72px */
```

### Line Height

| Content Type | Line Height | Tailwind Class |
|--------------|-------------|----------------|
| Headlines | 1.1 - 1.2 | leading-tight |
| Subheads | 1.25 - 1.35 | leading-snug |
| Body text | 1.5 - 1.75 | leading-relaxed |
| Small text | 1.4 - 1.5 | leading-normal |

### Letter Spacing

| Usage | Tracking | Tailwind Class |
|-------|----------|----------------|
| All caps | Wide | tracking-widest |
| Headlines | Tight to normal | tracking-tight |
| Body | Normal | tracking-normal |
| Small caps | Wide | tracking-wide |

---

SKILL.md 不止这些内容,安装后可阅读全文。

技能包内容

共 2 个文件,合计 13.7 KiB

  • SKILL.md6.0 KiB
  • references/font-pairing.md7.7 KiB

来源与审核

审核状态
尚未审核,内容来自上游来源
许可证
未说明

审核状态是平台对上架信息的记录,不构成对上游服务质量或可用性的担保。