Installation

Get started with mcoli-ui in minutes. Set up your project with our signature themes and component registry.

This guide walks you through setting up mcoli-ui in your project. Whether you're starting fresh or integrating with an existing codebase, we've got you covered.

Prerequisites

Before installing mcoli-ui, ensure your project meets these requirements:

  • React 18+ with Next.js 14+ (App Router recommended)
  • Tailwind CSS v4 installed and configured
  • TypeScript 5.7+ for full type safety
  • Node.js 18+ as your runtime

Step 1: Set Up shadcn/ui Base

mcoli-ui builds on the shadcn/ui foundation. If you don't have it yet:

This establishes the core registry structure and configuration that mcoli-ui extends.

Step 2: Initialize mcoli-ui

Run the initialization command to set up our exclusive theme system and registry:

npx mcoli-ui@latest init
pnpm dlx mcoli-ui@latest init
yarn dlx mcoli-ui@latest init
bunx mcoli-ui@latest init

The init command will:

  • Install required dependencies
  • Configure the mcoli-ui registry
  • Set up your chosen theme
  • Create mcoli-ui.json configuration file

Choosing Your Theme

During initialization, select from our 5 signature themes:

ThemeDescription
PrimaryBold blue tones with professional depth
SecondaryRich purple for creative accents
Game DevVibrant cyan/pink for gaming projects
RoboticsIndustrial orange/steel for engineering
ITClean teal for tech-focused applications

Each theme comes with carefully crafted color ramps, semantic tokens, and component presets.

Step 3: Add Your First Component

Once initialized, add components to your project:

npx mcoli-ui@latest add mc-button
pnpm dlx mcoli-ui@latest add mc-button
yarn dlx mcoli-ui@latest add mc-button
bunx mcoli-ui@latest add mc-button

This injects the component source directly into components/ui, giving you full ownership and customization power.

Available Components

Check what's available in the registry:

npx mcoli-ui@latest list
pnpm dlx mcoli-ui@latest list
yarn dlx mcoli-ui@latest list
bunx mcoli-ui@latest list

Next Steps

Now that you're set up:

  • Explore Components to browse available UI elements
  • Learn about Theming to customize your theme
  • Check GitHub for updates

On this page