Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问许可证需确认审计通过

component-family-consistency组件系列一致性

Agent Skill

component-family-consistency 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

699

周安装

28

GitHub Stars

6

下载量

226
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dembrandt/dembrandt-skills --skill component-family-consistency

简介

component-family-consistency 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 它确保按钮、输入框、选择器等交互组件共享统一视觉 DNA,提升产品整体感。
  • 使用时需结合来源仓库和原始 README 核验具体用法,安装前应确认权限范围和维护状态。
  • 涉及联网、命令执行或文件读写时,需评估安全风险并确保操作边界清晰。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Component Family Consistency

Every interactive component in a product — buttons, inputs, selects, checkboxes, radio buttons, pills, badges, tags, calendars, date pickers, sliders, toggles — belongs to the same visual family. They share a common design DNA. A user should be able to look at any component and feel that it belongs to the same product as every other component.

When components are designed in isolation without shared tokens, the product feels assembled from parts rather than built as a whole.

The Shared DNA

Define these tokens once. Every component inherits from them.

Border-Radius

All interactive components use the same base radius token. Variations are derived, not invented.

--radius-base:    8px;   /* buttons, inputs, selects */
--radius-sm:      4px;   /* checkboxes, small badges */
--radius-lg:      12px;  /* cards, modals, large panels */
--radius-full:    9999px; /* pills, tags, avatar chips */

A button and an input on the same form must have the same radius. A pill is always --radius-full. A badge is --radius-sm or --radius-full depending on brand tone — but consistent across all badges.

Border Style

Borders across all form components and containers should use a highly restricted set of tokens.

The 2-Step Rule: Limit border widths to at most two options (e.g., 1px and 4px, or 1px and 8px). Do not use an incremental scale like 1px, 2px, 3px, 4px.... A limited choice makes the hierarchy clear and the product feel intentional.

--border-width-thin:   1px;   /* Default for inputs, cards, dividers */
--border-width-thick:  4px;   /* Featured items, bold accents, active indicators */

--border-color:        var(--color-border);
--border-color-focus:  var(--color-primary);
--border-color-error:  var(--color-error);

An input border and a select border are identical at rest. Focus state uses --border-color-focus everywhere. Error state uses --border-color-error everywhere.

Spacing and Height

Components at the same visual scale share height and internal padding.

/* Default (md) size */
--component-height-md:    40px;
--component-padding-x-md: 12px;
--component-padding-y-md: 8px;

/* Small */
--component-height-sm:    32px;
--component-padding-x-sm: 8px;
--component-padding-y-sm: 6px;

/* Large */
--component-height-lg:    48px;
--component-padding-x-lg: 16px;
--component-padding-y-lg: 10px;

A button and an input placed next to each other must be the same height. This is not cosmetic — mismatched heights break form layouts and signal disorder.

Shadow

Interactive components use a consistent shadow logic:

  • At rest: no shadow, or --shadow-xs for floating components (select dropdown trigger)
  • On focus: focus ring via outline, not box-shadow (unless using box-shadow as the focus ring consistently)
  • Elevated (dropdowns, popovers opening from components): --shadow-md

Colour Logic

The same colour roles apply uniformly across all components:

StateColour token
Rest border--color-border
Focus border / ring--color-primary
Error border--color-error
Disabled--color-text-secondary at reduced opacity
Selected / active fill--color-primary
Hover background--color-primary at 8–12% opacity

Component Family Members

ComponentShares radiusShares heightShares borderShares colour logic
Button— (filled)
Input / textarea
Select
Checkbox--radius-sm
Radio--radius-full
Toggle / switch--radius-full
Pill / tag--radius-full✓ optional
Badge--radius-sm or --radius-full
Date picker / calendar--radius-base
Slider--radius-full (track + thumb)
Search input
Combobox

Gradients in Components

If the brand uses gradients, apply them consistently:

  • A gradient on a primary button should use the same gradient angle and stops as gradient usage elsewhere in the product
  • Hover state: slightly shift the gradient lightness, not the hue
  • Do not use gradients on some button variants and flat colour on others — pick one approach per variant and apply it universally

Review Checklist

  • Do buttons and inputs on the same form share the same height?
  • Do all bordered components use at most two border-width options (e.g., 1px and 4px)?
  • Does focus state look identical across all focusable components?
  • Does error state look identical across all components that can have errors?
  • Are all radius values derived from the same base token — not set independently per component?
  • Do pills and tags use --radius-full consistently?
  • Is gradient usage (if any) consistent across all button variants?
  • Could a new component be added to the library using only existing tokens?

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

31.79%
按下载量换算72

Claude

30.19%
按下载量换算68

Cursor

20.14%
按下载量换算46

Gemini CLI

10.26%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills