一键导入
ui-styling-guide
Guidelines for UI development, including shadcn/ui primitives, feature components, and the OKLCH theme system.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidelines for UI development, including shadcn/ui primitives, feature components, and the OKLCH theme system.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
ZGO API development standards including pagination, error handling, and RESTful design
Test patterns, mocking strategies, and organization best practices
Standardized error format, error code clusters, and API client usage for consistent error handling.
Specifications for Zustand stores, React Query hooks, and the Service-Hook-Type pattern with optimistic updates.
Strict rules for environment variable management using Zod validation and src/config/env.ts.
Guidelines for managing internationalization (i18n) in the project using next-intl and unified translation patterns.
| name | ui-styling-guide |
| description | Guidelines for UI development, including shadcn/ui primitives, feature components, and the OKLCH theme system. |
This skill defines the standards for UI development within the project. It ensures visual consistency, accessibility, and maintainability by using a structured design system based on OKLCH and shadcn/ui.
The project uses a layered Design Token system. Always prefer semantic classes over raw colors.
src/themes/primitives.css (Do not use directly).light.css / dark.css.
bg-canvas, bg-surface, bg-subtletext-main, text-subtle, text-mutedborder-main, border-subtle, border-strongbrand-main, brand-subtle, brand-strong<div className="bg-bg-surface text-text-main border-border-subtle shadow-md p-4 rounded-lg">
<h1 className="text-brand">Heading</h1>
<p className="text-text-subtle">Subtle text description.</p>
</div>
src/components/ui/ (shadcn/ui managed, DO NOT MODIFY).src/components/features/[module]/ (Organized by business module).src/components/common/ (Generic, non-business specific).For detailed component contracts (Named Exports, RSC First, Props Typing, CAS annotations), refer to:
kebab-case.tsx (e.g., login-form.tsx)use-kebab-case.ts (e.g., use-mobile.ts)[!IMPORTANT] Zero Hardcoded Strings: All user-facing text must use the
useThook for i18n.