Installation

Learn how to set up the Katlux Toolkit in your Nuxt 3 application. Choose between a basic quickstart or a complete, production-ready setup.

1. Initialize Nuxt

Create a new Nuxt 3 project using the official CLI:

Bash
npx nuxi@latest init my-katlux-app
cd my-katlux-app
2. Install Core Toolkit

Install the core Katlux package:

Bash
npm install @katlux/toolkit@alpha
3. Configure Nuxt Module

Register the module in your nuxt.config.ts file:

TypeScript
export default defineNuxtConfig({
	modules: [
		'@katlux/toolkit'
	]
})
4. Test Usage

Use Katlux components globally in your Vue files:

Vue
<template lang="pug">
KButton(type="primary") Hello Katlux!
</template>
🤖 AI Assistant Integration (Optional)

If you use AI coding assistants to build your application, you can install the Katlux AI Reference Guide directly into your project with a single command.

This guide gives your AI assistant authoritative knowledge of every component API, data provider, design token, and preset — so it writes correct Katlux code without hallucinating.

Bash
npx @katlux/toolkit katlux-add-ref

This installs the reference guide at .agents/skills/KATLUX_AI_REFERENCE.md in your project. Re-run at any time to pull the latest version from the showcase.

Always up-to-date: The reference guide is served directly from the Katlux Showcase, so you always get the latest version matching the currently deployed toolkit — not a snapshot frozen at install time.

IDE Configuration: After installing the reference, configure your AI assistant to read it automatically on every interaction.

Add the following snippet to your User Rules so Antigravity automatically parses the agent context on every interaction:

MARKDOWN
<RULE[AGENTS.md]>
# Agent Context and Guidelines

This file serves as the main entry point for AI agents to understand the workspace structure and guidelines. 
All AI interactions should automatically parse and adhere to the following references:

- [Antigravity Agent Rules](.agents/rules/rules.md)
- [KATLUX AI REFERENCE](.agents/skills/KATLUX_AI_REFERENCE.md)
</RULE[AGENTS.md]>
🛠️ Developer Guide & Contributing

For advanced monorepo development, creating custom presets, or contributing to Katlux:

📖 View Developer Guide