v0.53.0
Latest release6 November 2026
The daisy addon is replaced by a new ui addon with its own elements, components and UnoCSS preset.
Added
- The
phlat/uiaddon, mounted by default.{ui name, ...}renders an element fromviews/name.latteand{component name, ...}renders one fromviews/components/name.latte. A paired tag fills the template's{block default}. A site overrides either insite/views/@ui/andsite/views/@ui/components/. - Elements:
accordion,alert,avatar,badge,breadcrumb,button,card,dropdown,field(input, textarea, select, checkbox, radio, switch, range),list,menu,progress,separator,skeleton,spinner,status,tableandtooltip. - Components:
tabs,pagination,modalandtoast.tabsload their panel from a:blockfragment,paginationlinks to?page=NforPage::paginate(), andmodalandtoastare fragments the server returns. - The
items()Latte function turns pages, strings and arrays into the shared item shape (title,description,href,icon,meta,active,open,items) thatbreadcrumb,list,menuandtabstake. assets/preset.mjs, the UnoCSS preset that styles the elements from HSL tokens (background,foreground,primary,border,radius, ...) with a light and a dark set,xsandxxlbreakpoints, acontainerutility andsuccess,warningandinfostatus colours.assets/ui.cssstyles plain tags (h1toh6,p,a, lists,blockquote,pre,code) at zero specificity, so bare HTML looks right and any class still wins.assets/ui.js, served from the addon's page asui.js, closes an open dropdown on Escape or an outside click and handles modal focus and toast removal.npm run build:uibundlesui.js,npm run build:ui:stylesandnpm run watch:ui:stylesbuild the site stylesheet with UnoCSS and LightningCSS, andtask phlat:watch:uirebuilds it when a ui template changes.
Changed
- The site stylesheet is built with UnoCSS and the
uipreset instead of Tailwind. The admin theme still uses Tailwind and DaisyUI.npm run build:stylesandnpm run watch:stylesare gone. phlat/config.jsonmountsphlat/uiinstead ofphlat/daisy.README.mdandSTYLE.mddescribe theuielements and the UnoCSS build.
Removed
- The
phlat/daisyaddon, its@daisy/...partials andPhlat\Daisy\DaisyExtension. Elements are now{ui button, title: 'Save' /}and takevariantandsizewith nocoloraxis. To migrate, rename each{include '@daisy/x.latte', ...}to{ui x, ...}({component x, ...}formodal,toast,tabsandpagination), replacecolor:withvariant:, move overrides fromsite/views/@daisy/tosite/views/@ui/, and remove"phlat/daisy"fromaddonsinsite/config.json.