daisyUI 5 Installation

VerifiedCaution

Learn how to install daisyUI 5, including Tailwind CSS v4 integration, CDN setup, and framework-specific instructions.

Sby Skills Guide Bot
DevelopmentBeginner
8/29/2026
Claude CodeCursorWindsurfCopilotCodex
#daisyui#tailwindcss#frontend#installation#css

Recommended for

Automated summary

This skill gives the installation steps for daisyUI 5 with Tailwind CSS 4, either via npm or CDN, plus links to per-framework guides.

Strengths

  • States the key constraint: Tailwind CSS 4 and no more tailwind.config.js
  • Provides the exact minimal CSS wiring (@import "tailwindcss"; and @plugin "daisyui";)
  • Covers the no-build CDN path, including themes.css for all built-in themes
  • Includes an extensive list of links to framework and build-tool setup guides

Limitations

  • Framework-specific steps are external links, not content included in the skill
  • Notes that CDN files lack the is-drawer-open: and is-drawer-close: variants but offers no workaround
  • No guidance on migrating from daisyUI 4 or on customizing themes
When to use it

Use it when you need to add or wire up daisyUI 5 in a Tailwind CSS 4 project, whether through npm or a CDN.

When not to use it

Skip it if the project still runs Tailwind CSS 3 or an older daisyUI, since the skill targets v5 exclusively.

Security analysis

Caution
Quality score74/100

No obfuscated payloads, credential handling, or destructive commands; the skill is a straightforward installation guide. However it does direct the agent to run an unpinned npm install (which executes install scripts) and to inject remote CDN assets into HTML without subresource integrity. These are normal, legitimate front-end setup actions, so the risk is limited rather than malicious.

Findings
  • •Instructs running `npm i -D daisyui@latest` (installs and executes package lifecycle scripts from a third-party registry, unpinned version)
  • •Points to loading remote CDN scripts/styles from cdn.jsdelivr.net without integrity (SRI) attributes
How this analysis is made

Examples

npm setup in a Tailwind 4 project
Install daisyUI 5 in my Vite + Tailwind CSS 4 project and update my CSS entry file correctly.
CDN prototype
Set up a single HTML page with daisyUI 5 and the Tailwind browser build from CDN, including the dark theme.
Framework-specific install
Show me the daisyUI 5 installation guide for Next.js and apply the steps to my project.

name: daisyui-install description: Installation instructions for daisyUI 5

Install daisyUI 5

Installation guide

  1. You must use Tailwind CSS 4 with daisyUI 5.
  2. The tailwind.config.js file is deprecated in Tailwind CSS v4. Do not use tailwind.config.js. If Tailwind CSS v4 is a Node.js dependency, add only @import "tailwindcss"; to the CSS file.
  3. To install daisyUI 5, run npm i -D daisyui@latest. Then, add @plugin "daisyui"; to the CSS file.
  4. Install daisyUI as a dependency when possible. If you have a specific reason to use a CDN instead, use the Tailwind CSS and daisyUI CDN files:
<link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" />
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
  1. If Tailwind CSS and daisyUI are Node.js dependencies, use this CSS file:
@import "tailwindcss";
@plugin "daisyui";

CDN

For a browser setup with no installation, load the precompiled daisyUI CSS and the Tailwind browser build:

<link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" />
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

The main CDN file includes the light and dark themes. To load all built-in themes, use:

<link href="https://cdn.jsdelivr.net/npm/daisyui@5/themes.css" rel="stylesheet" type="text/css" />

You can also combine separate daisyUI CSS modules from the CDN. The CDN files do not include the is-drawer-open: and is-drawer-close: variants.

Standalone and framework-specific setup

Use the file paths and integration steps in the selected guide. Each framework can use a different CSS entry.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/daisyui-5-installation-mte1lh3n' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/daisyui-5-installation-mte1lh3n/download' --output '.skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md.part' && mv '.skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md.part' '.skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md' && test -s '.skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/daisyui-install' && cp -R '.skill-downloads/daisyui-5-installation-mte1lh3n' '.claude/skills/daisyui-install'

Cursor
test -f '.skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md' && test -s '.skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/daisyui-install' && cp -R '.skill-downloads/daisyui-5-installation-mte1lh3n' '.cursor/skills/daisyui-install'

Codex
test -f '.skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md' && test -s '.skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/daisyui-install' && cp -R '.skill-downloads/daisyui-5-installation-mte1lh3n' '.agents/skills/daisyui-install'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/daisyui-5-installation-mte1lh3n'

openskills read 'daisyui-5-installation-mte1lh3n'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/daisyui-5-installation-mte1lh3n/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills