
ALT Text from upcoming blog post: # Presenting `mini_toast.ex` The basic idea of `mini_toast.ex` is that rather than being a library, itβs a simple file you can copy into any modern Phoenix/LiveView project, own it, add whatever styling and additional features you want, etc., and you have a pretty good starting point for your own toast implementation if youβd rather not use `LiveToast` and arenβt satisfied with any of the other options out there. > Note: The version Iβll present below utilizes colocated hooks added in LiveView 1.1, but if youβre on an earlier version you can just put the JS in your regular `app.js` file and everything else is the same. > Hereβs my minimalist starting point for you:

ALT label: animated focus rings source code: /* Shared keyboard focus, including exported controls inside custom elements. */ @layer base { :where(:focus-visible), ::part(button):focus-visible { outline: 2px solid var(--ring); outline-offset: 5px; animation: dizzy-focus-offset 100ms linear; } @media (prefers-reduced-motion: reduce) { :where(:focus-visible), ::part(button):focus-visible { animation: none; } } @media (forced-colors: active) { :where(:focus-visible), ::part(button):focus-visible { outline-color: Highlight; } } } @keyframes dizzy-focus-offset { from { outline-offset: 0; } to { outline-offset: 5px; } }











