Skip to content

chore: upgrade to Tailwind CSS 4 and daisyUI 5 - #565

Merged
sebastienfontaine merged 1 commit into
masterfrom
chore/tailwind-4
Oct 14, 2026
Merged

sebastienfontaine merged 1 commit into
masterfrom
chore/tailwind-4

Conversation

@sebastienfontaine

Copy link
Copy Markdown
Contributor

Stacked on #564. GitHub will retarget it once the PRs below it are merged.

Changes

  • Tailwind CSS 3 → 4, using the official @tailwindcss/upgrade tool: tailwind.config.js moved to CSS (@theme), PostCSS uses @tailwindcss/postcss, and autoprefixer is removed (Tailwind 4 handles prefixes).
  • daisyUI 4 → 5: same built-in themes (dim default, dark for prefers-dark) and the custom tabee theme rewritten in the v5 @plugin "daisyui/theme" format, with the same colors.
  • Utilities renamed by the tool: !w-4 → w-4!, flex-shrink-0 → shrink-0, shadow → shadow-sm, rounded → rounded-sm, z-[1] → z-1.
  • Two wrong edits from the upgrade tool, reverted: it renamed the emoji search keyword ring to ring-3, and changed raw CSS flex-shrink: 0 to the invalid shrink: 0 in the Spot Search UI.

Visual fixes

I compared screenshots of every options page and the side panel, before and after, in several themes. Differences fixed:

  • Rule form columns collapsed: md:flex-0 did nothing in Tailwind 3 but means flex: 0 in Tailwind 4. Removed (8 places).
  • Active menu item not highlighted: daisyUI 5 renamed active to menu-active.
  • daisyUI 5 renames: input-bordered / select-bordered / file-input-bordered removed (bordered by default), tabs-bordered → tabs-border.
  • daisyUI 4 compat layer in style.css, for classes removed or restyled in v5: form-control, label, label-text, label-text-alt (about 70 uses), full-width fields inside form-control, equal-width tabs, single-line tooltips. It sits in a cascade layer right after daisyUI's and below Tailwind utilities, so utilities still override it. It can go once the forms move to daisyUI 5's fieldset / legend.

Remaining visual differences (daisyUI 5 design)

  • Slightly different toggles, focus ring and active menu color.
  • The built-in valentine theme was redesigned upstream (lighter pink).
  • Only the active tab is underlined in tabs-border.

Vulnerabilities

npm audit: 0 (the last 7 came from Tailwind 3).

Tested

  • ESLint, Prettier, vue-tsc, 226 tests and npm run build pass locally.
  • Screenshots before/after: rules (empty, form, list), groups, Tab Hive, settings, help, side panel; themes tabee, dim, light, valentine.
  • Worth a manual pass on the popup and the emoji/icon picker, which the screenshots didn't cover.

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 57.01% 593 / 1040
🔵 Statements 57.48% 626 / 1089
🔵 Functions 64.02% 121 / 189
🔵 Branches 52.71% 291 / 552
File CoverageNo changed files found.
Generated in workflow #472 for commit 5ae2097 by the Vitest Coverage Report Action

@sebastienfontaine

Copy link
Copy Markdown
Contributor Author
01-rules-empty 02-rule-form 03-rules-samples 04-rules-theme-dim 04-rules-theme-light 04-rules-theme-tabee 04-rules-theme-valentine 09-sidepanel groups help settings tab-hive

@sebastienfontaine
sebastienfontaine changed the base branch from chore/vite-8 to master October 14, 2026 18:23
- Tailwind 4 via @tailwindcss/postcss (autoprefixer no longer needed);
  tailwind.config.js moved to CSS (@theme, @plugin)
- daisyUI 5: same built-in themes (dim default, dark for prefers-dark)
  and the custom tabee theme in the v5 format
- renamed utilities (!important suffix, shrink-0, shadow-xs, rounded-sm, z-1)
- removed md:flex-0/flex-0: no-op in Tailwind 3, flex: 0 in Tailwind 4,
  which collapsed the rule form columns
- daisyUI renames: *-bordered removed (default), tabs-border, menu-active
- compat layer for the daisyUI 4 form classes (form-control, label,
  label-text, label-text-alt), full-width fields and tabs, tooltips
@github-actions

Copy link
Copy Markdown

📦 Extension Build Ready!

Version: 1.1.6

📥 Download Extension (tabee.zip)

Installation

  1. Download and extract the zip file
  2. Open Chrome → chrome://extensions/
  3. Enable "Developer mode" (top right)
  4. Click "Load unpacked" → Select the extracted folder

Status

  • ✅ All tests passed
  • ✅ Build successful
  • ✅ Ready for testing

🤖 Auto-generated by GitHub Actions

@sebastienfontaine
sebastienfontaine merged commit 773bb42 into master Oct 14, 2026
7 checks passed
@sebastienfontaine
sebastienfontaine deleted the chore/tailwind-4 branch October 14, 2026 18:24
@sebastienfontaine sebastienfontaine mentioned this pull request Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant