--- name: ktui-install description: > Install, configure, and initialize KtUI (Keenthemes Tailwind UI) in any project. Use this skill when setting up KtUI for the first time, adding it to a new project, configuring Tailwind for KtUI, or troubleshooting initialization issues. --- # KtUI Installation & Setup ## 1. Install the package ```bash npm install @keenthemes/ktui ``` ## 2. Tailwind CSS config Add KtUI source paths to your Tailwind content array so Tailwind scans KtUI classes: ```js // tailwind.config.js module.exports = { content: [ './node_modules/@keenthemes/ktui/src/**/*.{ts,js}', // your app files... ], }; ``` ## 3. Import styles Import KtUI's built-in CSS (or use your own build of the source): ```ts import '@keenthemes/ktui/dist/styles.css'; ``` ## 4. Import and initialize components ```ts import { KTComponents } from '@keenthemes/ktui'; // Call once after DOM is ready KTComponents.init(); ``` ### Per-framework placement | Framework | Where to call `KTComponents.init()` | |-----------|--------------------------------------| | Vanilla JS | `DOMContentLoaded` listener or `