Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: saadeghi/daisyui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.7
Choose a base ref
...
head repository: saadeghi/daisyui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.8
Choose a head ref
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on Mar 21, 2025

  1. fix: alert unwanted gap if there's one child only. closes: #3702

    saadeghi committed Mar 21, 2025
    Copy the full SHA
    6d3eb06 View commit details
  2. chore(release): 5.0.8

    saadeghi committed Mar 21, 2025
    Copy the full SHA
    bd85380 View commit details
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## 5.0.8 (2025-03-21)


### Bug Fixes

* alert unwanted gap if there's one child only. closes: [#3702](https://github.com/saadeghi/daisyui/issues/3702) ([6d3eb06](https://github.com/saadeghi/daisyui/commit/6d3eb068dd8e69543d1388b919e20604ee4cd4a0))

## 5.0.7 (2025-03-21)

## 5.0.6 (2025-03-17)
4 changes: 2 additions & 2 deletions packages/daisyui/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"type": "module",
"name": "daisyui",
"version": "5.0.7",
"description": "daisyUI 5 - Tailwind CSS Component Library",
"version": "5.0.8",
"description": "daisyUI 5 - The Tailwind CSS Component Library",
"author": "Pouya Saadeghi",
"license": "MIT",
"homepage": "https://daisyui.com",
13 changes: 11 additions & 2 deletions packages/daisyui/src/components/alert.css
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
justify-content: start;
justify-items: start;
grid-auto-flow: column;
grid-template-columns: auto minmax(auto, 1fr);
grid-template-columns: auto;
text-align: start;
border: var(--border) solid var(--color-base-200);
font-size: 0.875rem;
@@ -21,6 +21,9 @@
#0000
),
0 4px 3px -2px oklch(0% 0 0 / calc(var(--depth) * 0.08));
&:has(:nth-child(2)) {
grid-template-columns: auto minmax(auto, 1fr);
}
&.alert-outline {
@apply bg-transparent;
color: var(--alert-color);
@@ -79,12 +82,18 @@
grid-auto-flow: row;
grid-template-columns: auto;
text-align: center;
&:has(:nth-child(2)) {
grid-template-columns: auto;
}
}

.alert-horizontal {
justify-content: start;
justify-items: start;
grid-auto-flow: column;
grid-template-columns: auto minmax(auto, 1fr);
grid-template-columns: auto;
text-align: start;
&:has(:nth-child(2)) {
grid-template-columns: auto minmax(auto, 1fr);
}
}
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ This works as a Tailwind CSS plugin so only the class names you need will be add
Run this code to download latest version of daisyUI as a single js file

```sh:Terminal
curl -sLo app/assets/tailwind/daisyui.js https://esm.run/daisyui@5/index.js
curl -sLo app/assets/tailwind/daisyui.js https://github.com/saadeghi/daisyui/releases/latest/download/daisyui.js
```

Put Tailwind CSS and daisyUI in your CSS file (and remove old styles)
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ Follow [Tailwind CSS guide](https://tailwindcss.com/blog/standalone-cli) and get
Run this code to download latest version of daisyUI as a single js file and put it next to Tailwind's executable file.

```sh:Terminal
curl -sLo daisyui.js https://esm.run/daisyui@5/index.js
curl --sLO https://github.com/saadeghi/daisyui/releases/latest/download/daisyui.js
```

### 3. Add Tailwind CSS and daisyUI