Skip to main content

Installation

This guide will help you install Mavka and get set up quickly.

Frameworks

Get up and running with our straightforward setup guides and official starter kits:

Next.js

Click to open Next.js starter kit.

Vite

Click to open Vite starter kit.

Bolt

Click to open Bolt starter kit.

Claude

Click to open Claude starter kit.

v0

Click to open v0 starter kit.

Lovable

Click to open Lovable starter kit.

Installation via CLI

If you’re starting a new project, simply use our CLI to scaffold a new Mavka project with pre-installed components and configurations:

1. Create a new project

Run this command in your root folder to create a new project (Next.js or Vite):
While running the command, you’ll be asked a few questions to set up your project:
This will create a new project in the mavka-app directory with all the necessary configurations and components pre-installed.

2. Ready to go!

Great! You’re all set to start using Mavka components. If something is missing, you can copy/paste what you need into your project directly from individual components pages.

Manual installation

Before going further, make sure you have a project with Tailwind CSS set up.

1. Install packages

Install the required packages with your favorite package manager:

2. Create a custom Tailwind CSS configuration

Create a theme.css file in your styles directory and add the following code:
theme.css

3. Extend Tailwind CSS config

In your globals.css file, import the theme.css and necessary plugins:
globals.css

4. Add utility functions

Create these files under utils and hooks directories to improve development experience.
utils/cx.ts

FAQs

Can I install individual components?

Yes, you can use our CLI: npx mavka@latest add [component-name].

Does it support other frameworks?

Mavka components are built for React. However, the Tailwind tokens are framework-agnostic!