Setup Windsurf editor to correctly generate daisyUI code based on your prompt.
To setup Tailwind CSS syntax support and IntelliSense, seeTailwind CSS docs.
daisyui.com/llms.txtfile is a compact, text version of daisyUI docs to help AI generate accurate daisyUI code based on your prompt.
Here's how to use daisyUI llms.txt in Windsurf:
@web https://daisyui.com/llms.txt
MCP is a an API to communicate with AI models. You can add MCP servers and Windsurf will communicate with them to get more accurate results.
You can useContext7ordaisyUI GitMCPas MCP server in Windsurf.
Windsurf: MCP Configuration Panel
Add custom server +
{
"mcpServers": {
+ "context7": {
+ "command": "npx",
+ "args": ["-y", "@upstash/context7-mcp@latest"]
+ }
}
}
Now you can ask AI anything about daisyUI, and writeuse context7
at the end of your prompt.
For example:
give me a light daisyUI 5 theme with tropical color palette. use context7
Windsurf: MCP Configuration Panel
Add custom server +
{
"mcpServers": {
+ "daisyui Docs": {
+ "serverUrl": "https://gitmcp.io/saadeghi/daisyui"
+ }
}
}
Now you can ask AI anything about daisyUI.
give me a light daisyUI 5 theme with tropical color palette