Reference
DaisyUI starter patterns developers can actually reuse.
This page is not a component gallery. It is a small set of starter-grade patterns built from DaisyUI and Tailwind primitives that developers can copy, adapt, and remix inside real Astro projects.
How to use this page
- Start from the section closest to your use case.
- Copy the markup from the page source, then simplify it for your project.
- Prefer DaisyUI classes first, Tailwind layout utilities second, and custom CSS last.
Alerts and feedback states
DaisyUI alerts cover status messaging without extra wrappers. Use vertical-on-mobile alert layouts when actions and descriptions need to stay readable on narrow screens.
New message
<div role="alert" class="alert alert-info alert-vertical sm:alert-horizontal"> <button class="btn btn-sm">Open</button> </div> Cards and stats
Cards and stats are a strong default pair for pricing, feature summaries, changelogs, dashboards, and launch pages. Keep the layout simple and let DaisyUI provide the structure.
Starter launch checklist
A reusable card pattern for roadmap, release, or feature summary sections.
- Set the production URL in `astro.config.mjs`
- Replace placeholder legal and metadata content
- Ship a first post or delete the blog collection
Form and input patterns
Fieldsets, inputs, selects, toggles, and validation-friendly layouts are common starter needs. This section keeps the markup small while showing how DaisyUI can cover form scaffolding without custom wrappers.
<fieldset class="fieldset"> <input class="input w-full" /> <select class="select w-full">…</select> <textarea class="textarea h-24 w-full"></textarea> </fieldset>