一键导入
ui-design-system
Guide to the UI/CSS architecture, including Tailwind, Shadcn UI, and Theming.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide to the UI/CSS architecture, including Tailwind, Shadcn UI, and Theming.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guide for server management, system APIs, backups, and maintenance operations.
Guide for developing features in the Vite + React Router frontend.
Guide to Docklift's automated release pipeline using semantic-release.
Guide for setting up, running, and developing the Docklift project.
Guide for setting up and managing Docklift's GitHub App integration.
Coolify/Dokploy-style managed databases with Dokku-style app linking.
| name | UI Design System |
| description | Guide to the UI/CSS architecture, including Tailwind, Shadcn UI, and Theming. |
Docklift uses a modern UI stack built on standards-compliant technologies.
tailwindcss-animate plugin)ThemeProvider (frontend/src/lib/theme.tsx)src/styles/globals.css)Found in frontend/tailwind.config.ts.
It uses CSS variables for colors to support dynamic theming (dark/light mode).
bg-background / text-foreground: Main page colors.bg-card / text-card-foreground: Card elements.bg-primary / text-primary-foreground: Main actions (buttons).bg-muted / text-muted-foreground: Secondary text/backgrounds.bg-destructive: Error states.bg-brand / text-brand: Accent for active nav, focus and primary CTAs.bg-sidebar / text-sidebar-foreground / border-sidebar-border /
bg-sidebar-accent: The left rail's own surface, one step recessed from
content so the shell reads as a separate plane in both themes.Prefer brand over hard-coded cyan-500 in new UI; the token is what keeps the
rail, the active states and the CTAs in sync.
Located in frontend/src/components/ui/.
These are not an installed library but copy-pasted code you own.
button.tsx: Variants (default, destructive, outline, secondary, ghost, link).card.tsx: Structure for widgets (Header, Title, Content).dialog.tsx: Modals.input.tsx / textarea.tsx: Form elements.sonner.tsx: Toast notifications.To change a component's look, edit the file directly in src/components/ui/.
Example: To make all buttons rounded, edit frontend/src/components/ui/button.tsx.
sm:, md:, lg:).app/AppShell.tsx owns the fixed left rail, the thin top bar and
the content <main> (max width plus padding). Pages return their content
directly — no outer container, min-h-screen, header or footer.PageHeader (and StatChip for counts) from
components/shell/PageHeader.tsx so every page shares one rhythm.--shell-rail custom property; .shell-rail
sizes the rail and .shell-inset offsets content, so collapsing only has to
override one variable..shell-scroll. Never let a child call
scrollIntoView() — it scrolls the whole <main> and makes the fixed rail
and top bar feel like they jump.tailwind.config.ts content array.ThemeProvider wraps the app in src/app/AppProviders.tsx.