Skip to content

feat(styled kit): tailwind v4 update #1122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 46 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
7f7aa56
chore: migration script
maiieul Jun 19, 2025
a8d6a75
fix: tailwind 4 @source
maiieul Jun 24, 2025
b3684b0
fix: global css using @source
maiieul Jul 19, 2025
da1c1cd
chore: transition theme
maiieul Aug 12, 2025
f96a086
chore: transform hsl() to oklch(from var(...) l c h)
maiieul Aug 12, 2025
cdbb438
fix: collapsible and accordion animations
maiieul Aug 13, 2025
75cd228
fix: modal is no longer centered by default
maiieul Aug 13, 2025
50f1a61
docs: headless modal margins
maiieul Aug 13, 2025
218ce1b
fix: border-width and stroke-width theme css variables
maiieul Aug 13, 2025
39e134b
fix: shadows and press animations
maiieul Aug 13, 2025
f030c22
docs: update modal code
maiieul Aug 13, 2025
d799109
chore: copy global.css for cli
maiieul Aug 13, 2025
ca18c77
refactor: cli install tailwind 4
maiieul Aug 14, 2025
d073fc4
chore: copy-css-config base global.css config appended
maiieul Aug 14, 2025
dba0fef
fix: qwik-ui, popover-polyfill layers order
maiieul Aug 14, 2025
cf4dd4b
refactor: add base @layer and @import to extract-theme
maiieul Aug 14, 2025
3331fbf
chore: remove tailwind.config.cjs cli handling
maiieul Aug 14, 2025
81addf0
fix: cli tests config
maiieul Aug 14, 2025
f0507ce
Merge branch 'main' into tailwind-v4-tailwind-merge
maiieul Aug 14, 2025
60dd99e
fix: component-tests
maiieul Aug 14, 2025
b7a4180
test: extract-theme-css
maiieul Aug 15, 2025
5d61f34
fix: CI cli-e2e
maiieul Aug 15, 2025
bef78a0
fix: shadows
maiieul Aug 15, 2025
9e707cd
chore: format all
maiieul Aug 15, 2025
653a313
chore: update components mdx
maiieul Aug 15, 2025
56b254a
chore: reset action.yml
maiieul Aug 15, 2025
87c4e6f
chore: remove tailwind.extend_template
maiieul Aug 15, 2025
493e46e
test: update setup-tailwind-generator.spec
maiieul Aug 15, 2025
fda924b
chore: fix extract-theme-css shadows extraction
maiieul Aug 15, 2025
639a681
chore: fix simple and brutalist shadows
maiieul Aug 15, 2025
011fb51
fix: extract-theme storke width
maiieul Aug 15, 2025
31669a4
update: styled install docs
maiieul Aug 15, 2025
6283534
chore: update extract-theme.css base theme
maiieul Aug 15, 2025
0d8a75e
chore: update styled install
maiieul Aug 15, 2025
3ad8d90
fix: CI utils snapshots
maiieul Aug 15, 2025
3d74301
chore: prettierrc tailwindStylesheet
maiieul Aug 17, 2025
e83a9cf
fix: extract-theme-css extra curly brace
maiieul Aug 23, 2025
35cda30
fix: let the cli install tw-animate-css instead of tailwindcss-animate
maiieul Aug 23, 2025
f3480eb
docs: update install deps
maiieul Aug 23, 2025
7152724
test: cli update snapshots
maiieul Aug 23, 2025
fdec682
test: utils:test update snapshots
maiieul Aug 23, 2025
419d4f4
chore: changesets
maiieul Aug 23, 2025
8b7d6d4
Merge branch 'main' into tailwind-v4-tailwind-merge
maiieul Aug 23, 2025
ded10d9
Merge branch 'main' into tailwind-v4-tailwind-merge
maiieul Aug 23, 2025
967d51b
Merge branch 'main' into tailwind-v4-tailwind-merge
maiieul Aug 23, 2025
27b8ac7
fix: cli package.json utils version
maiieul Aug 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fair-hoops-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@qwik-ui/headless': patch
---

fix: the accordion `offsetHeight` is now properly calculated with tailwind v4.
17 changes: 17 additions & 0 deletions .changeset/mean-books-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
'@qwik-ui/styled': minor
'qwik-ui': minor
---

feat: Qwik UI has now fully migrated and updated the global.css config and components to use tailwind v4. You can copy/paste the components into your project(s) or use the CLI.

## Migration guide:

- Make sure to commit any changes before you start the steps below
- Run the `npx @tailwindcss/upgrade` script and let it do most of the work for you
- Remove your tailwind.config.cjs and postcss.config.cjs
- install the @tailwindcss/vite package and pass it to your vite.config plugins array
- Copy paste the new css config base tokens, or use the `qwik-ui init` to get them, and adapt them to your project
- If you are in a monorepo, make sure to `@source “../../../path/to/your/components“;`
- Add `"w-full"` to Modal PanelVariants position.top and position.bottom; add `"m-auto"` to position.center
- If you didn't modify some components, you can re-copy/paste (or re-install them with the cli) for their most up to date version
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"trailingComma": "all",
"printWidth": 90,
"plugins": ["prettier-plugin-tailwindcss"],
"tailwindConfig": "./apps/website/tailwind.config.cjs",
"tailwindStylesheet": "./apps/website/src/global.css",
"tailwindFunctions": ["clsx", "cva"]
}
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
],
"tailwindCSS.experimental.configFile": "apps/website/src/global.css",
"editor.codeActionsOnSave": {
"source.removeUnusedImports": "explicit"
},
Expand Down
11 changes: 0 additions & 11 deletions apps/component-tests/postcss.config.cjs

This file was deleted.

Loading
Loading