claude-frontend-skills-pack
CLAUDE.md17 starsChanged 9 months agoMITView on GitHub
Drop this file in your project root. Claude Code reads it automatically. Install components: Browse the full catalog: https://21st.dev/community/components Always check 21st.dev before writing components from scratch. DO NOT install 21st.dev components and then write custom ones instead. After installing a component with npx shadcn@latest add, you MUST:
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Create distinctive, production-grade interfaces.
- Distinctive: line 7
No Inter, Roboto, Poppins, Montserrat, Open Sans
- Distinctive: line 8
No purple gradients on white backgrounds
- Distinctive: line 10
Commit to a bold aesthetic direction before writing code
- Distinctive: line 13
Before writing any UI component from scratch, check if a production-ready version exists at https://21st.dev
- Distinctive: line 82
Always check 21st.dev before writing components from scratch.
- Very specific: line 88
After installing a component with npx shadcn@latest add, you MUST:
- Very specific: line 116
Use next/font/google for all fonts (auto-optimized, self-hosted).
- Distinctive: line 125
Always pair a display font + body font.
- Very specific: line 129
Only 'use client' when actually needed (interactivity, event listeners, browser APIs)
- Distinctive: line 143
Use Framer Motion for scroll reveals and transitions
- Distinctive: line 146
Keep animations purposeful — enhance, don't distract
- Distinctive: line 154
Add motion with Framer Motion
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Frontend Development Instructions
Drop this file in your project root. Claude Code reads it automatically.
Design Philosophy
Create distinctive, production-grade interfaces. No generic "AI slop."
- No Inter, Roboto, Poppins, Montserrat, Open Sans
- No purple gradients on white backgrounds
- No cookie-cutter layouts
- Commit to a bold aesthetic direction before writing code
Component Source: 21st.dev
Before writing any UI component from scratch, check if a production-ready version exists at https://21st.dev
Install components:
npx shadcn@latest add "[component-url-from-21st.dev]"Browse the full catalog: https://21st.dev/community/components
Marketing Blocks
- Heroes (73): https://21st.dev/s/hero
- Features (36): https://21st.dev/s/features
- Calls to Action (34): https://21st.dev/s/call-to-action
- Backgrounds (33): https://21st.dev/s/background
- Hooks (31): https://21st.dev/s/hook
- Images (26): https://21st.dev/s/image
- Scroll Areas (24): https://21st.dev/s/scroll-area
- Pricing Sections (17): https://21st.dev/s/pricing-section
- Clients (16): https://21st.dev/s/clients
- Testimonials (15): https://21st.dev/s/testimonials
- Shaders (15): https://21st.dev/s/shader
- Footers (14): https://21st.dev/s/footer
- Borders (12): https://21st.dev/s/border
- Navigation (11): https://21st.dev/s/navbar-navigation
- Announcements (10): https://21st.dev/s/announcement
- Videos (9): https://21st.dev/s/video
- Comparisons (6): https://21st.dev/s/comparison
- Docks (6): https://21st.dev/s/dock
UI Components
- Buttons (130): https://21st.dev/s/button
- Inputs (102): https://21st.dev/s/input
- Cards (79): https://21st.dev/s/card
- Selects (62): https://21st.dev/s/select
- Sliders (45): https://21st.dev/s/slider
- Accordions (40): https://21st.dev/s/accordion
- Tabs (38): https://21st.dev/s/tabs
- Dialogs/Modals (37): https://21st.dev/s/modal-dialog
- Calendars (34): https://21st.dev/s/calendar
- Tables (30): https://21st.dev/s/table
- AI Chats (30): https://21st.dev/s/ai-chat
- Tooltips (28): https://21st.dev/s/tooltip
- Badges (25): https://21st.dev/s/badge
- Dropdowns (25): https://21st.dev/s/dropdown
- Alerts (23): https://21st.dev/s/alert
- Forms (23): https://21st.dev/s/form
- Popovers (23): https://21st.dev/s/popover
- Text Areas (22): https://21st.dev/s/textarea
- Radio Groups (22): https://21st.dev/s/radio-group
- Spinner Loaders (21): https://21st.dev/s/spinner-loader
- Paginations (20): https://21st.dev/s/pagination
- Checkboxes (19): https://21st.dev/s/checkbox
- Numbers (18): https://21st.dev/s/number
- Menus (18): https://21st.dev/s/menu
- Avatars (17): https://21st.dev/s/avatar
- Carousels (16): https://21st.dev/s/carousel
- Links (13): https://21st.dev/s/link
- Date Pickers (12): https://21st.dev/s/date-picker
- Toggles (12): https://21st.dev/s/toggle
- Icons (10): https://21st.dev/s/icons
- Sidebars (10): https://21st.dev/s/sidebar
- File Uploads (7): https://21st.dev/s/upload-download
- Tags (6): https://21st.dev/s/chip-tag
- Notifications (5): https://21st.dev/s/notification
- Sign Ins (4): https://21st.dev/s/sign-in
- Sign Ups (4): https://21st.dev/s/registration-signup
- Toasts (2): https://21st.dev/s/toast
- File Trees (2): https://21st.dev/s/file-tree
Always check 21st.dev before writing components from scratch.
CRITICAL: Actually USE Installed Components
DO NOT install 21st.dev components and then write custom ones instead.
After installing a component with npx shadcn@latest add, you MUST:
- Import it in the page/layout that needs it:
import { FloatingNav } from "@/components/ui/floating-navbar" import { AnimatedTestimonials } from "@/components/ui/animated-testimonials" - Replace any hand-written version of the same component type. If you installed a navbar component, DELETE your custom navbar and use the installed one.
- Read the component file (
components/ui/[name].tsx) to understand its props, then pass the correct data:// Read the component to see what props it expects // Then wire it in with real data: <FloatingNav navItems={[ { name: "Features", link: "#features" }, { name: "Pricing", link: "#pricing" }, ]} /> - Check for required config — some components need:
- Image domains in
next.config.js(for components usingnext/image) - Additional dependencies (check imports in the component file)
- Tailwind config extensions (check for custom classes)
- Image domains in
The rule: If a 21st.dev component is installed in components/ui/, it MUST be imported and used. No orphaned installs.
Typography
Use next/font/google for all fonts (auto-optimized, self-hosted).
Banned: Inter, Roboto, Poppins, Montserrat, Open Sans, Playfair Display
Recommended display fonts: Sora, Elms Sans, Vend Sans, Zalando Sans Recommended body fonts: Manrope, Figtree, Source Sans 3, Stack Sans Text Recommended serif: Bacasime Antique, Gentium Plus, Libertinus Serif Recommended mono: SUSE Mono, JetBrains Mono
Always pair a display font + body font. Variable fonts preferred.
Next.js 15 Patterns
- App Router with Server Components by default
- Only
'use client'when actually needed (interactivity, event listeners, browser APIs) - Suspense boundaries with
loading.tsx next/imagefor all images- Metadata API for SEO
- Server Actions for forms
Accessibility (WCAG 2.1 AA)
- Semantic HTML (button, nav, main, article — not div for everything)
- ARIA labels on all interactive elements
- 4.5:1 contrast ratio for text
- Keyboard navigable
- Skip-to-content link
Motion & Animation
- Use Framer Motion for scroll reveals and transitions
- Stagger child animations on viewport entry
- Hover micro-interactions on cards and buttons
- Keep animations purposeful — enhance, don't distract
When User Asks to Build UI
- Pick a bold aesthetic direction (or ask)
- Browse 21st.dev for matching components
- Install via
npx shadcn@latest add "[url]" - Customize with Tailwind
- Apply Next.js patterns
- Add motion with Framer Motion
- Verify accessibility
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

