Richardm
How to upgrade Daisy UI?
Hi,
I have a current Phoenix 1.8 project, and was just wandering what the best way of making sure that Daisy UI was at the latest version?
Thanks
Richard
Most Liked
sevenseacat
Oh I really disliked when people started creating Ruby gems to bundle JavaScript libraries. I hope Elixir doesn’t start trending that way.
FlyingNoodle
A 1.8 install should have this bit in your app.css:
/* daisyUI theme plugin. You can update this file by fetching the latest version with:
curl -sLO https://github.com/saadeghi/daisyui/releases/latest/download/daisyui-theme.js
We ship with two themes, a light one inspired on Phoenix colors and a dark one inspired
on Elixir colors. Build your own at: https://daisyui.com/theme-generator/ */
Is that what you mean?
garrison
DaisyUI is vendored directly into the installer templates and therefore directly into your app. Both daisyui.js and daisyui-theme.js can be upgraded with the commands specified in app.css, as suggested above.
It looks like they release a lot and the Phoenix installer version has not been upgraded since it was added (6 months ago), but of course the installer only affects new apps anyway.
Maybe it would be more user-friendly to have a wrapper Hex package like tailwind/esbuild?
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









