registry-component-patterns

Registry Component Patterns

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "registry-component-patterns" with this command: npx skills add theorcdev/8bitcn-ui/theorcdev-8bitcn-ui-registry-component-patterns

Registry Component Patterns

Register 8-bit components in registry.json for discovery via shadcn add @8bitcn/[component-name] .

Component Entry Pattern

{ "name": "button", "type": "registry:component", "title": "8-bit Button", "description": "A simple 8-bit button component", "registryDependencies": ["button"], "files": [ { "path": "components/ui/8bit/button.tsx", "type": "registry:component", "target": "components/ui/8bit/button.tsx" }, { "path": "components/ui/8bit/styles/retro.css", "type": "registry:component", "target": "components/ui/8bit/styles/retro.css" } ] }

Block Entry Pattern

For pre-built layouts like game UIs:

{ "name": "chapter-intro", "type": "registry:block", "title": "8-bit Chapter Intro", "description": "A cinematic chapter/level intro with pixel art background.", "registryDependencies": ["card"], "categories": ["gaming"], "files": [ { "path": "components/ui/8bit/blocks/chapter-intro.tsx", "type": "registry:block", "target": "components/ui/8bit/blocks/chapter-intro.tsx" }, { "path": "components/ui/8bit/styles/retro.css", "type": "registry:component", "target": "components/ui/8bit/styles/retro.css" }, { "path": "components/ui/8bit/card.tsx", "type": "registry:component", "target": "components/ui/8bit/card.tsx" } ] }

Required retro.css

Always include retro.css in registry entries:

"files": [ { "path": "components/ui/8bit/new-component.tsx", "type": "registry:component", "target": "components/ui/8bit/new-component.tsx" }, { "path": "components/ui/8bit/styles/retro.css", "type": "registry:component", "target": "components/ui/8bit/styles/retro.css" } ]

Categories

Use gaming-specific categories:

"categories": ["gaming"]

Available categories: gaming , layout , form , data-display , feedback , navigation , overlay .

Registry Dependencies

List base shadcn dependencies:

"registryDependencies": ["button", "dialog"]

For blocks with multiple components:

"registryDependencies": ["card", "button", "progress"]

Key Principles

  • Type - Use registry:component for single components, registry:block for layouts

  • retro.css required - Always include in files array

  • Target path - Use same path for source and target

  • Categories - Use gaming for retro-themed components

  • Dependencies - List base shadcn/ui components (not 8-bit versions)

  • Description - Clear, concise description for CLI output

Adding a New Component

  • Create component in components/ui/8bit/component.tsx

  • Update registry.json with entry (copy existing component as template)

  • Include retro.css dependency

  • Test with: pnpm dlx shadcn@latest add @8bitcn/component

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

fumadocs-mdx-structure

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

rendering-animate-svg

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

8-bit-pixel-art-patterns

No summary provided by upstream source.

Repository SourceNeeds Review