Setup VSCode 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 VSCode:
In chat window type this and VSCode will use daisyUI's llms.txt file to generate code.
#fetch https://daisyui.com/llms.txt
You can setup daisyUI's llms.txt file to your workspace so Copilot can use it by default. (Read more at VSCode docs)
Run this command to save the llms.txt file to.github/daisyui.instructions.md
curl -L https://daisyui.com/llms.txt --create-dirs -o .github/daisyui.instructions.md
MCP is a an API to communicate with AI models. You can add MCP servers and Copilot will communicate with them to get more accurate results.
You can useContext7ordaisyUI GitMCPas MCP server in VSCode.
Click this button to install Context7 MCP server in VSCode:
.vscode/mcp.json
file in your project root if it doesn't exist.{
"servers": {
+ "context7": {
+ "type": "stdio",
+ "command": "npx",
+ "args": [
+ "-y",
+ "@upstash/context7-mcp@latest"
+ ]
+ }
}
}
Now inAgent Mode
you can ask AI anything about daisyUI. writeuse context7
at the end of your prompt.
For example:
give me a light daisyUI 5 theme with tropical color palette. use context7
Click this button to install GitMCP server in VSCode:
.vscode/mcp.json
file in your project root if it doesn't exist.{
"servers": {
+ "daisyUI": {
+ "type": "sse",
+ "url": "https://gitmcp.io/saadeghi/daisyui"
+ }
}
}
Now inAgent Mode
you can ask AI anything about daisyUI.
give me a light daisyUI 5 theme with tropical color palette