remark-frontmatter-starter
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
title: | Use daisyUI from CDN | ||
---|---|---|---|
desc: | How to use daisyUI from a CDN? | ||
date: | 2025-04-18T00:00:00.000Z | ||
tags: |
|
You don't need to install anything.
Just add one of these to the head
tag of your HTML:
<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>
daisyui.css includes light and dark themes. For other themes, add themes.css file as well:
<link href="https://cdn.jsdelivr.net/npm/daisyui@5/themes.css" rel="stylesheet" type="text/css" />
Every part of daisyUI is available on CDN as separate CSS files.
Now you can use daisyUI class names!