-
Notifications
You must be signed in to change notification settings - Fork 15
Upgrade tailwind to v4 and daisy to v5 #1527
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
base: master
Are you sure you want to change the base?
Conversation
Test results 4 files 1 errors 351 suites 13m 6s ⏱️ For more details on these parsing errors and failures, see this check. Results for commit 327835e. ♻️ This comment has been updated with latest results. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1527 +/- ##
==========================================
- Coverage 78.34% 78.16% -0.19%
==========================================
Files 124 125 +1
Lines 5468 5495 +27
==========================================
+ Hits 4284 4295 +11
- Misses 1184 1200 +16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll have to update the docs for how to do themes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I try to make the styles via the Makefile (make tailwind
) I get:
tailwindcss -c src/argus/htmx/tailwindtheme/tailwind.config.js -i src/argus/htmx/tailwindtheme/styles.css -o src/argus/htmx/static/styles.css
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Error: Failed to find 'tailwindcss'
in [
CENSORED/src/argus/htmx/tailwindtheme/snippets
]
at /snapshot/tailwindcss/node_modules/postcss-import/lib/resolve-id.js:35:13
at async Promise.all (index 0)
at async LazyResult.runAsync (/snapshot/tailwindcss/node_modules/postcss/lib/lazy-result.js:261:11)
at async build (/snapshot/tailwindcss/lib/cli/build/index.js:49:9)
make: *** [Makefile:33: tailwind] Error 1
Remember to switch to new version of tailwind cli extra, I suggest https://github.com/dobicinaitis/tailwind-cli-extra/releases/tag/v2.0.0 |
Depends on #1524 |
Idea: make css snippets more pluggable. Fix: Finding defined themes to add to user theme dropdown. |
TODOs before this PR is considered completed:
|
It's probably |
ea6ac61
to
1a57c03
Compare
I have rebased this on the merged #1524 so that we can use the correct version of the standalone tailwind cli, I've set it to 2.1.37, the currently newest. |
There is no |
Newer compilers support different platforms. Added: * tailwindcss-extra-linux-arm64-musl * tailwindcss-extra-linux-x64-musl Gone: * tailwindcss-extra-linux-arm7 * tailwindcss-extra-windows-arm64.exe
cc5af6e
to
327835e
Compare
|
Scope and purpose
Fixes #1262
Depends on #1524
How to test
Make sure you have the right version of tailwind+daisy installed. While standing in the repo root, run:
This will replace the binary in src/argus/htmx/tailwindtheme/tailwindcss with a new binary and update various libraries. You shouldn't need to put the binary in your path if you use
make
.Run
make tailwind
to update styles as usual.Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to Argus can be found in the
Development docs.