Skip to content

webkubor/ui-craft / skills/landing-page-design

landing-page-design

Verified

Complete system for building high converting landing pages: intake questions, page structure, layout selection, conversion copywriting, SEO, plus project-led visual decisions. Use for landing page strategy, marketing structure, conversion copy and optional visual recipes.

references/single-ruler-principle.md

View on GitHub
# 单尺原则:统一语义 token 的决策来源

由项目样式审计复盘抽象:同一语义同时从框架默认值和自定义值取值,且没有映射,会导致圆角、阴影、色彩漂移。目标是减少冲突来源,不是强制某种框架或 CSS 变量形式。

## 诊断

列出同语义的实际 computed style、组件 token、框架主题和自定义覆盖。例如卡片圆角在一处来自框架刻度,在另一处来自项目 token;先确认这是否有意区分,再决定合并。

## 收口方法

1. 确认项目已选设计系统及其主题入口。可以采用组件库 token、CSS 自定义属性、构建期 token 或框架主题。
2. 为共享语义指定唯一决策来源,通过项目当前版本支持的主题机制映射到消费者。布局计算、动态内联样式和有意例外应说明用途,不能机械禁止。
3. 在组件中复用语义角色,如 surface、text、focus、card-radius;示例名称和值不是全局默认。
4. 用渲染后样式抽查映射是否生效,验证同语义一致和例外边界。若值得自动化,再加适合项目的 lint。

选用 Material、Tailwind 或其他组件系统都可以;问题在于语义重叠却不受控。不同框架版本的配置语法不同,实施前读项目配置及当前文档。

完整评审遵循[评审标准](https://github.com/webkubor/ui-craft/blob/main/docs/frontend-review-standard.md)。
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall