tailui config

View or update your TailUI configuration without editing ui.config.json manually.

# View current config
npx tailui config
# Update settings
npx tailui config --set-stack react
npx tailui config --set-ai openai --set-key sk-...

Configuration options

OptionWhat it doesExample
stackYour framework. Determines which component file is generated by tailui add.react, vue, svelte, angular
stylesDirWhere CSS files are stored. Used by tailui add and tailui create../ui/styles
componentsDirWhere framework components are generated. Used by tailui add and tailui generate../src/components/ui
ai.providerAI provider for tailui generate. Generates typed components from your CSS.openai, claude, gemini
ai.apiKeyYour API key. Stored locally, auto-added to .gitignore.sk-...

Note: TypeScript is auto-detected via tsconfig.json — no config needed.