Check and fix your daisyUI markup for daisyUI 5
Paste HTML or JSX. Old daisyUI 4 class names are fixed for you, typos and misplaced parts are flagged, and you see it rendered.
- Free, no sign-up
- Nothing uploaded
- Fixed HTML or JSX to copy
or (.html .jsx .tsx .vue .svelte), or drop it here
No markup handy? Try one:
daisyUI 4 to 5: what changed
| daisyUI 4 | daisyUI 5 | The page |
|---|---|---|
| card-bordered, card-compact | card-border, card-sm | fixes it |
| tabs-bordered, tabs-lifted, tabs-boxed | tabs-border, tabs-lift, tabs-box | fixes it |
| btm-nav, btm-nav-label, btm-nav-sm, active item | dock, dock-label, dock-sm, dock-active | fixes it |
| input-bordered, select-bordered, textarea-bordered, file-input-bordered | removed: fields have a border by default | fixes it |
| avatar online, offline, placeholder | avatar-online, avatar-offline, avatar-placeholder | fixes it |
| menu item active, disabled, focus | menu-active, menu-disabled, menu-focus | fixes it |
| table row hover | hover:bg-base-300 | fixes it |
| artboard phone-1 … phone-6 | w-[320px] h-[568px] … | fixes it |
| btn-group | join, with join-item on each button | fixes it |
| hsl(var(--p)), --b1, --rounded-btn … | var(--color-primary), --color-base-100, --radius-field … | fixes hsl(var(--x)), flags the rest |
| form-control, label-text, label-text-alt | fieldset, fieldset-legend, label | flags it; AI can rebuild it |
| input-group | join, join-item | flags it; AI can rebuild it |
| mask-parallelogram, mask-square | removed, no replacement | flags it |
How it works
- Paste or open your markup. HTML, or JSX from React with className. Class names inside className={...} count when they are fixed strings, such as the ones in a clsx call.
- Every class is checked against the class names in the daisyUI 5.8.3 CSS and the component guides in the official daisyUI skill: is it a real daisyUI 5 class, was it renamed or removed since daisyUI 4, is a part like card-body inside its card, does a modifier like btn-sm sit next to btn, are two colours or two sizes fighting on one element.
- Safe fixes are made for you. Renamed classes, the bordered classes that are now the default, the artboard sizes, btn-group and the daisyUI 4 colour variables. Everything else in your markup stays exactly as it was.
- See it rendered. The preview shows your markup and the fixed copy with daisyUI 5 and Tailwind CSS, in any built-in theme.
- Copy the fixed markup, or download it with a report. The optional AI step rebuilds what cannot be renamed, and the page checks its answer with the same rules.
Questions
- Which daisyUI 4 classes were renamed in daisyUI 5?
- card-bordered is card-border, card-compact is card-sm, tabs-bordered, tabs-lifted and tabs-boxed are tabs-border, tabs-lift and tabs-box, btm-nav is dock (and btm-nav-label, btm-nav-sm and the other sizes follow), the avatar's online, offline and placeholder are avatar-online, avatar-offline and avatar-placeholder, a menu item's active, disabled and focus are menu-active, menu-disabled and menu-focus, and mockup-phone's camera and display are mockup-phone-camera and mockup-phone-display.
- Which daisyUI classes were removed in daisyUI 5?
- form-control, label-text and label-text-alt (use fieldset, fieldset-legend and the label class), btn-group and input-group (use join and join-item), input-bordered, select-bordered, textarea-bordered and file-input-bordered (fields have a border by default), artboard and the phone-1 to phone-6 sizes (use Tailwind width and height), the table row hover class, and mask-parallelogram and mask-square.
- Does it work with React, Vue or Svelte files?
- Yes for the markup: it reads class and className, including the fixed strings inside className={...} expressions such as clsx calls. Class names built at run time from variables cannot be checked.
- What does the preview use?
- The daisyUI 5.8.3 CSS and the Tailwind CSS 4 browser build, served from this site. Scripts and event handlers in your markup are not run, and pictures from other sites are shown as grey placeholders.
- Is anything uploaded?
- No. The check, the fixes and the preview all happen inside your browser tab. Only the optional AI step sends your markup, and only when you press its button.