shadcn

Manage shadcn/ui components and projects with components.json context.

21|16|Updated Jul 12, 2023
One-click install
npx skills add https://github.com/guillermoscript/lms-front --skill shadcn-guillermoscript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn
Source: https://github.com/guillermoscript/lms-front/tree/main/.agents/skills/shadcn
Command: npx skills add https://github.com/guillermoscript/lms-front --skill shadcn-guillermoscript

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the process of building user interfaces using the shadcn/ui component library, ensuring consistency, adherence to best practices, and efficient development.

Core Features & Use Cases

  • Component Management: Add, search, and manage shadcn/ui components within your project.
  • Best Practice Enforcement: Guides users on correct styling, composition, and usage of shadcn/ui components.
  • Project Context Awareness: Understands project configuration (like components.json) to provide context-aware assistance.
  • Use Case: When you need to add a new button component to your Next.js application, this Skill can help you find the right button, add it to your project correctly, and ensure it follows your project's styling guidelines.

Quick Start

Use the shadcn skill to add the 'button' and 'card' components to your project.

Frequently Asked Questions about shadcn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add shadcn/ui components to a React project correctly?

To add shadcn/ui components to a React project, use this Skill to search the component registry, add the required UI elements, and ensure they follow your project's configuration and styling guidelines.

What is the best way to manage and compose shadcn/ui components in Tailwind CSS?

Managing shadcn/ui components in Tailwind CSS involves applying best practices for styling and composition. This Skill guides correct usage and provides component documentation and usage examples.

Does my project need a components.json file to use shadcn/ui best practices?

Yes, having a components.json file is expected. This Skill uses that project context to provide context-aware assistance, apply presets, and manage component registries effectively.

How do I fix and debug styling issues with shadcn/ui components?

To fix and debug shadcn/ui styling issues, this Skill applies component best practices, checks your project context, and offers documentation to resolve composition and styling errors.

Can I use this to search the shadcn/ui component registry for specific UI elements?

Yes, you can search the shadcn/ui component registry for specific UI elements. This Skill helps you find the right components, add them correctly, and ensure they match your styling guidelines.

Why does my shadcn/ui button component not match my Next.js application styling?

If a shadcn/ui button does not match your Next.js styling, this Skill can debug the issue by checking your project context and enforcing correct component usage and styling best practices.