tailui config
View or update your TailUI configuration without editing ui.config.json manually.
# View current confignpx tailui config# Update settingsnpx tailui config --set-stack reactnpx tailui config --set-ai openai --set-key sk-...Configuration options
| Option | What it does | Example |
|---|---|---|
stack | Your framework. Determines which component file is generated by tailui add. | react, vue, svelte, angular |
stylesDir | Where CSS files are stored. Used by tailui add and tailui create. | ./ui/styles |
componentsDir | Where framework components are generated. Used by tailui add and tailui generate. | ./src/components/ui |
ai.provider | AI provider for tailui generate. Generates typed components from your CSS. | openai, claude, gemini |
ai.apiKey | Your API key. Stored locally, auto-added to .gitignore. | sk-... |
Note: TypeScript is auto-detected via tsconfig.json — no config needed.