Phoenix 1.8.0 release candidate 0 just game out this morning and I took a quick look at it. The main changes I can see are a new UI framework, Daisy UI and some changes in the auth generators, including a concept of scopes. No code in this video. More detail and source at: https://alchemist.camp/episodes/first...
To enable custom DaisyUI themes as I did in this video, edit the daisyui plugin line near the top of your app.css file in a newly generated Phoenix app like this:
@plugin "../vendor/daisyui" {
themes: light --default, dark --prefersdark, forest, acid, winter, emerald, cyberpunk;
}
Then edit your theme_toggle function in layouts.ex to use any of those theme names in place of "light" or "dark".