AgentSkillsCN

smart-swap-branding

应用 Smart Swap 的官方品牌色、字体与设计令牌。当您需要创建 UI 组件、美化界面,或确保整个应用的视觉一致性时,可调用此技能。

SKILL.md
--- frontmatter
name: smart-swap-branding
description: Applies Smart Swap's official brand colors, typography, and design tokens. Use when creating UI components, styling screens, or ensuring visual consistency across the app.

Smart Swap Brand Guidelines

Import design tokens from app/theme.ts - never hardcode values.

typescript
import { colors, spacing, borderRadius, fontSize, fontWeight } from '@/app/theme';

Colors

Backgrounds

TokenValueUsage
colors.bg.primary#0D0D0DMain app background
colors.bg.secondary#141414Section backgrounds
colors.bg.tertiary#1A1A1AElevated surfaces
colors.bg.card#1E1E1ECard backgrounds

Accent (Solana Brand)

TokenValueUsage
colors.accent.purple#9945FFPrimary accent, CTAs
colors.accent.purpleLight#B77DFFHover/pressed states
colors.accent.green#14F195Success, positive values
colors.accent.greenDark#0EA66EPressed green states
colors.accent.gradient['#9945FF', '#14F195']Hero elements, branding

Text

TokenValueUsage
colors.text.primary#FFFFFFHeadings, important text
colors.text.secondary#A0A0A0Body text, descriptions
colors.text.tertiary#666666Disabled, hints
colors.text.inverse#0D0D0DText on light backgrounds

Status (WCAG AA Compliant)

TokenValueUsage
colors.status.success#14F195Success messages
colors.status.successBgrgba(20, 241, 149, 0.1)Success background
colors.status.error#FF6B6BError messages
colors.status.errorBgrgba(255, 107, 107, 0.1)Error background
colors.status.warning#FFD166Warning messages
colors.status.warningBgrgba(255, 209, 102, 0.1)Warning background

Borders

TokenValueUsage
colors.border.primary#2A2A2ADefault borders
colors.border.secondary#333333Emphasized borders
colors.border.focus#9945FFFocus rings

Spacing

TokenValueUsage
spacing.xs4Tight spacing, icons
spacing.sm8Compact elements
spacing.md16Default spacing
spacing.lg24Section spacing
spacing.xl32Large gaps
spacing.xxl48Hero sections

Border Radius

TokenValueUsage
borderRadius.sm8Buttons, inputs
borderRadius.md12Cards, containers
borderRadius.lg16Modals, sheets
borderRadius.xl24Hero elements
borderRadius.full9999Pills, avatars

Typography

Font Sizes

TokenValueUsage
fontSize.xs12Captions, labels
fontSize.sm14Secondary text
fontSize.md16Body text
fontSize.lg20Subheadings
fontSize.xl24Section titles
fontSize.xxl32Page titles
fontSize.hero40Hero text

Font Weights

TokenValueUsage
fontWeight.normal400Body text
fontWeight.medium500Emphasized text
fontWeight.semibold600Subheadings
fontWeight.bold700Headings, CTAs

Usage Examples

Button Style

typescript
const buttonStyle = {
  backgroundColor: colors.accent.purple,
  borderRadius: borderRadius.sm,
  padding: spacing.md,
};

Card Style

typescript
const cardStyle = {
  backgroundColor: colors.bg.card,
  borderRadius: borderRadius.md,
  borderWidth: 1,
  borderColor: colors.border.primary,
  padding: spacing.lg,
};

Text Hierarchy

typescript
const headingStyle = {
  color: colors.text.primary,
  fontSize: fontSize.xl,
  fontWeight: fontWeight.bold,
};

const bodyStyle = {
  color: colors.text.secondary,
  fontSize: fontSize.md,
  fontWeight: fontWeight.normal,
};