---
title: "daisyui 4.0.0 Breaking Changes on npm | Since.dev"
description: "What each daisyui release removed, renamed or changed: 26 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/daisyui
last_updated: 2026-12-04
---

# daisyui breaking changes

daisyui 4.0.0 (November 12, 2023) is its newest release with breaking changes, 23 of them. The first: Removed --btn-text-case. Every breaking API change we have recorded in daisyui on npm: 26 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.8.3`, released November 26, 2026. [Source repository](https://github.com/saadeghi/daisyui)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 23 breaking changes in 1 version.

## daisyui 4.0.0 breaking changes

daisyui 4.0.0, released November 12, 2023: 23 breaking changes.

- **Removed** `--btn-text-case`  

The --btn-text-case variable is no longer defined in themes. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `accent-focus`  

Use a CSS color-mix() class to make the color darker instead. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `colord`  

colord is no longer a dependency of daisyUI. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `neutral-focus`  

Use a CSS color-mix() class to make the color darker instead. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `postcss`  

postcss is no longer a dependency of daisyUI. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `primary-focus`  

Use a CSS color-mix() class to make the color darker instead. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `rtl`  

RTL is now automatic; remove rtl: true and use dir=rtl on the html tag. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `rtlcss`  

rtlcss is no longer a dependency of daisyUI. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `secondary-focus`  

Use a CSS color-mix() class to make the color darker instead. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `tab-bordered`  

Use the matching tabs-\* modifier on the parent tabs element. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `tab-lg`  

Use the matching tabs-\* modifier on the parent tabs element. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `tab-lifted`  

Use the matching tabs-\* modifier on the parent tabs element. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `tab-md`  

Use the matching tabs-\* modifier on the parent tabs element. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `tab-sm`  

Use the matching tabs-\* modifier on the parent tabs element. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `tab-xs`  

Use the matching tabs-\* modifier on the parent tabs element. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Removed** `tailwindcss`  

tailwindcss is no longer a dependency of daisyUI. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Renamed** `primary-focus`  

The primary-focus, secondary-focus, accent-focus and neutral-focus class names are removed; use CSS color-mix() to darken colors instead. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Behavior changed**  

Color CSS variables contain OKLCH values; code using hsl(var(--p)) must change to oklch(var(--p)). [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Behavior changed**  

All theme colors changed, so existing designs may look different. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Behavior changed**  

Directional rules used to modify daisyUI styles may need double checking. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Behavior changed** `btn`  

Button text is no longer uppercase by default. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Behavior changed** `tabs`  

The tabs class uses grid instead of flex, which may change layout. [github.com](https://github.com/saadeghi/daisyui/releases/tag/v4.0.0)
- **Signature changed** `Theme`  

Was type Theme = | "light" | "dark" | "cupcake" | "bumblebee" | "emerald" | "corporate" | "synthwave" | "retro" | "cyberpunk" | "valentine" | "halloween" | "garden" | "forest" | "aqua" | "lofi" | "pastel" | "fantasy" | "wireframe" |... [npmjs.com](https://www.npmjs.com/package/daisyui/v/4.0.0)

## daisyui 3.0.0 breaking changes

daisyui 3.0.0, released June 1, 2023: 3 breaking changes.

- **Behavior changed**  

Color variables now use LCH values and no longer use HSL. Code that reads or overrides color variables as HSL values must be updated. [github.com](https://github.com/saadeghi/daisyui/blob/v3.0.0/CHANGELOG.md)
- **Behavior changed** `modal`  

The modal component now uses the HTML dialog element, so existing modal markup and its open and close behavior may need to be updated. [github.com](https://github.com/saadeghi/daisyui/blob/v3.0.0/CHANGELOG.md)
- **Default changed**  

Only the light and dark themes are enabled by default now. If your code relies on other built-in themes being active, enable them explicitly in the configuration. [github.com](https://github.com/saadeghi/daisyui/blob/v3.0.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
