Agent skill
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Install this agent skill to your Project
npx add-skill https://github.com/Spectaculous-Code/raamattu-nyt/tree/main/.claude/skills/frontend-design
SKILL.md
Frontend Design
Build polished, native-feeling interfaces for Raamattu Nyt using shadcn/ui, Tailwind CSS, and React.
Tech Stack
- Components: shadcn/ui (Radix primitives)
- Styling: Tailwind CSS 3.4 with CSS variables
- Icons: Lucide React
- State: React Query + React Hook Form + Zod
Quick Patterns
Responsive Layout
// Mobile-first with desktop override
<div className="flex flex-col md:flex-row gap-4">
<div className="w-full md:w-1/3">Sidebar</div>
<div className="flex-1">Content</div>
</div>
Mobile Bottom Navigation
<nav className="fixed bottom-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-md border-t md:hidden safe-area-bottom">
<div className="flex items-center justify-around h-16">
{/* 44px+ touch targets */}
</div>
</nav>
Sheet for Mobile, Dialog for Desktop
const isMobile = useIsMobile();
return isMobile ? (
<Sheet>
<SheetContent side="bottom" className="h-[85vh]">
{content}
</SheetContent>
</Sheet>
) : (
<Dialog>
<DialogContent className="max-w-lg">
{content}
</DialogContent>
</Dialog>
);
Touch-Optimized Button
<Button
className="h-12 px-6 active:scale-95 transition-transform"
variant="default"
>
Touch Me
</Button>
Mobile-Native Feel Checklist
- Bottom nav visible only on mobile (
md:hidden) - Touch targets min 44px (h-11/h-12)
-
active:scale-95on tappable elements - Safe area padding (
safe-area-bottomclass) - Backdrop blur on overlays (
bg-background/95 backdrop-blur-md) - Swipe gestures where appropriate
- No hover-only interactions on mobile
Design Tokens
/* Use semantic colors */
--background, --foreground
--primary, --primary-foreground
--muted, --muted-foreground
--destructive
--border, --ring
/* Border radius */
--radius: 0.5rem (8px)
When Building UI
- Read image inputs - Analyze screenshots/mockups for layout and style
- Mobile-first - Start with mobile, add
md:breakpoint for desktop - Use shadcn - Import from
@ui/not raw Radix - Native feel - Add touch feedback, proper spacing, animations
- Accessibility - ARIA labels, focus states, keyboard nav
References
- Component patterns: See references/components.md
- Mobile patterns: See references/mobile.md
- Forms & validation: See references/forms.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
docs-updater
Expert assistant for keeping documentation synchronized with code changes in the KR92 Bible Voice project. Use when updating API docs, maintaining architecture diagrams, syncing README, updating CLAUDE.MD, or generating documentation from code.
ai-prompt-manager
Expert assistant for managing AI prompts, features, and configuration in the KR92 Bible Voice AI system. Use when creating AI prompts, configuring AI features, managing prompt versions, setting up AI bindings, or working with AI pricing and models.
performance-auditor
Expert assistant for monitoring and optimizing performance in the KR92 Bible Voice project. Use when analyzing query performance, optimizing database indexes, reviewing React Query caching, monitoring AI call costs, or identifying N+1 queries.
edge-function-generator
Expert assistant for creating and maintaining Supabase Edge Functions for the KR92 Bible Voice project. Use when creating Edge Functions, setting up CORS, integrating shared modules, adding JWT validation, or configuring environment variables.
admin-panel-builder
Expert assistant for creating and maintaining admin panel pages in the KR92 Bible Voice project. Use when creating admin pages, building admin components, integrating with admin navigation, or adding admin features.
lint-fixer
Expert assistant for analyzing and fixing linting and formatting issues in the KR92 Bible Voice project using Biome and TypeScript. Use when fixing lint errors, resolving TypeScript issues, applying code formatting, or reviewing code quality.
Didn't find tool you were looking for?