styling

jhlee0409 的头像作者 jhlee0409

使用Tailwind CSS 4和SideDish设计系统为组件添加样式。在添加样式、按钮、表单、卡片、动画或响应式布局时使用。包括调色板、间距和玻璃态模式。

📖 中文导读:使用Tailwind CSS 4和SideDish设计系统为组件添加样式。在添加样式、按钮、表单、卡片、动画或响应式布局时使用。包括调色板、间距和玻璃态模式。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: styling description: Styles components using Tailwind CSS 4 and SideDish design system. Use when adding styles, buttons, forms, cards, animations, or responsive layouts. Includes color palette, spacing, and glassmorphism patterns.

Styling Skill

Instructions

  1. Use Tailwind CSS classes (no inline styles)
  2. Follow SideDish design system colors
  3. Use large border radius (rounded-xl, rounded-2xl)
  4. Apply glassmorphism for cards (bg-white/70 backdrop-blur-xl)

Design System

Colors

  • Primary: indigo-600, indigo-700
  • Accent: orange-500, orange-600
  • Text: slate-900 (heading), slate-600 (body)
  • Background: slate-50

Button Variants

// Primary
className="bg-indigo-600 text-white hover:bg-indigo-700 px-5 py-2.5 rounded-xl"

// Accent (CTA)
className="bg-orange-500 text-white hover:bg-orange-600 px-5 py-2.5 rounded-xl"

// Outline
className="border border-slate-200 text-slate-700 hover:bg-slate-50 px-5 py-2.5 rounded-xl"

Glassmorphism Card

<div className="bg-white/70 backdrop-blur-xl border border-white/50 rounded-2xl p-6 shadow-xl">

For complete component styles, animations, and responsive patterns, see reference.md.