@oguzhan18/shadcn-ng

ALWAYS use when writing code importing shadcn-ng (shadcn/angular). Consult for debugging, best practices, or modifying Angular shadcn components.

View in AI SkillSafe app
Scanned · no findings
0 downloads
0 stars
0 demos
SKILL.md
nameshadcn-ng
descriptionALWAYS use when writing code importing shadcn-ng (shadcn/angular). Consult for debugging, best practices, or modifying Angular shadcn components.

unovue/shadcn-ng shadcn-ng

Version: Latest (2025) Tags: Angular, Tailwind CSS, Radix Primitives

References: Docs — installation, components, theming • GitHub Issues — bugs, workarounds • GitHub Discussions — Q&A, patterns

API Changes

This section documents version-specific API changes.

  • NEW: Angular support — shadcn-ng is the Angular port of shadcn/ui, providing copy-paste components styled with Tailwind CSS

  • NEW: CLI commands — Use npx shadcn-ng@latest init for initialization and npx shadcn-ng@latest add <component> for adding components

  • NEW: Standalone components — All components are Angular standalone components with proper imports

  • NEW: cn utility — Use the cn() helper from lib/utils.ts to merge Tailwind CSS classes

  • NEW: CSS variables theming — Configure colors via CSS variables in globals.css

Best Practices

  • Use standalone components — All shadcn-ng components are standalone, import them directly in imports array
import { Component } from "@angular/core";
import { UbButtonDirective } from "~/components/ui/button";

@Component({
  standalone: true,
  imports: [UbButtonDirective],
  // ...
})
export class ExampleComponent {}
  • Configure Tailwind CSS — Follow the official installation guide to set up tailwindcss-animate, class-variance-authority, clsx, and tailwind-merge

  • Use CSS variables for theming — Define colors in :root in your globals.css for dynamic theming

  • Treat components as your own code — Copy components into your project and customize as needed

  • Use registry for custom components — Create your own registry.json to share and reuse custom components across projects

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/shadcn-ng/verified)](https://skillsafe.ai/skill/@oguzhan18/shadcn-ng/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/shadcn-ng/installs)](https://skillsafe.ai/skill/@oguzhan18/shadcn-ng/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/shadcn-ng/scan)](https://skillsafe.ai/skill/@oguzhan18/shadcn-ng/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/shadcn-ng/eval)](https://skillsafe.ai/skill/@oguzhan18/shadcn-ng/)