ForgeUIPREMIUM ECOSYSTEM
Docs/Getting Started/Configuration

Configuration

Customize ForgeUI behavior with the configuration file.

Configuration

ForgeUI uses a forgeui.config.ts file in your project root to manage settings.

Default Configuration

typescript
// forgeui.config.ts
import { defineConfig } from "forgeui";

export default defineConfig({
  // Where components are installed
  componentDir: "./src/components/ui",

  // Utility helper location
  utilsPath: "./src/lib/utils",

  // Active theme preset
  theme: "modern",

  // TypeScript support
  typescript: true,

  // Tailwind CSS version
  tailwind: "v4",

  // Include animations by default
  animations: true,

  // Default icon library
  icons: "lucide-react",
});

Configuration Options

OptionTypeDefaultDescription
componentDirstring"./src/components/ui"Directory where components are installed
utilsPathstring"./src/lib/utils"Path to the cn() utility
themestring"modern"Active color theme preset
typescriptbooleantrueGenerate TypeScript or JavaScript
tailwindstring"v4"Tailwind CSS version
animationsbooleantrueInclude Framer Motion animations
iconsstring"lucide-react"Icon library to use

Environment Variables

For the AI Generator feature, set your API key:

bash
# .env.local
FORGEUI_AI_KEY=your-api-key-here