{"id":50584995,"url":"https://github.com/phmatray/daisyblazor","last_synced_at":"2026-06-05T05:30:44.202Z","repository":{"id":362494160,"uuid":"1259309727","full_name":"phmatray/daisyblazor","owner":"phmatray","description":"A Tailwind CSS v4 + daisyUI v5 component library for Blazor — 60+ daisyUI-native components, a MudBlazor-compatible API, theming, dialogs, snackbars, dependency-free SVG charts, a CSS preset, and a dotnet new template.","archived":false,"fork":false,"pushed_at":"2026-06-04T13:02:02.000Z","size":1861,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T14:08:02.541Z","etag":null,"topics":["blazor","blazor-components","csharp","daisyui","dotnet","razor","tailwindcss","ui-components"],"latest_commit_sha":null,"homepage":"https://phmatray.github.io/daisyblazor/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phmatray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-04T11:35:15.000Z","updated_at":"2026-06-04T12:53:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/phmatray/daisyblazor","commit_stats":null,"previous_names":["phmatray/daisyblazor"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/phmatray/daisyblazor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2Fdaisyblazor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2Fdaisyblazor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2Fdaisyblazor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2Fdaisyblazor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phmatray","download_url":"https://codeload.github.com/phmatray/daisyblazor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phmatray%2Fdaisyblazor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33910207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","blazor-components","csharp","daisyui","dotnet","razor","tailwindcss","ui-components"],"created_at":"2026-06-05T05:30:43.510Z","updated_at":"2026-06-05T05:30:44.196Z","avatar_url":"https://github.com/phmatray.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🌼 DaisyBlazor\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eA Tailwind CSS v4 + daisyUI v5 component library for Blazor.\u003c/strong\u003e\u003cbr/\u003e\n  60+ daisyUI-native components, a MudBlazor-compatible API, theming, dialogs, snackbars,\n  dependency-free charts, a shippable CSS preset, and a \u003ccode\u003edotnet new\u003c/code\u003e template.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.nuget.org/packages/DaisyBlazor.Components\"\u003e\u003cimg alt=\"NuGet\" src=\"https://img.shields.io/nuget/v/DaisyBlazor.Components?logo=nuget\u0026label=DaisyBlazor.Components\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.nuget.org/packages/DaisyBlazor.Components\"\u003e\u003cimg alt=\"Downloads\" src=\"https://img.shields.io/nuget/dt/DaisyBlazor.Components?logo=nuget\u0026label=downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/phmatray/daisyblazor/actions/workflows/ci.yml\"\u003e\u003cimg alt=\"CI\" src=\"https://github.com/phmatray/daisyblazor/actions/workflows/ci.yml/badge.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\u003c/a\u003e\n  \u003cimg alt=\".NET 10\" src=\"https://img.shields.io/badge/.NET-10-512BD4?logo=dotnet\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://phmatray.github.io/daisyblazor/\"\u003e\u003cstrong\u003e📖 Documentation\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"https://phmatray.github.io/daisyblazor/getting-started/\"\u003eGetting started\u003c/a\u003e ·\n  \u003ca href=\"https://www.nuget.org/profiles/phmatray\"\u003eNuGet\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/screenshots/home.png\" alt=\"DaisyBlazor gallery — home\" width=\"900\"\u003e\n\u003c/p\u003e\n\n---\n\n## The problem it solves\n\nBlazor has no first-class Tailwind/daisyUI component story. Today you usually pick one of two paths,\nand both have real costs:\n\n- **Adopt a heavyweight component framework** (MudBlazor, Radzen, …) — you inherit its design language,\n  its CSS runtime, and its lock-in. Restyling to match a Tailwind/daisyUI design system fights the framework.\n- **Hand-roll daisyUI markup** — you write `\u003cbutton class=\"btn btn-primary\"\u003e` everywhere, then re-implement\n  theming, dialogs, toasts, form binding, and a Tailwind build by hand in every project.\n\n**DaisyBlazor closes that gap:**\n\n| Pain | DaisyBlazor |\n|------|-------------|\n| No native daisyUI components for Blazor | **60+ components** mapped to daisyUI's own taxonomy (Actions, Data display, Navigation, Feedback, Data input, Layout, Mockup). |\n| Migrating off MudBlazor is all-or-nothing | A **MudBlazor-compatible API** (`Button`, `Card`, `Table`, `IDialogService`, `ISnackbar`, `Icons.Material.*`) — migrate incrementally by renaming `MudX` → `X`. |\n| Wiring Tailwind + daisyUI + a class safelist is fiddly | A **shippable CSS preset** — one `@import` enables daisyUI, the themes, and the dynamic-class safelist. |\n| Theming/dark-mode is manual | A parameter-driven **`ThemeProvider`** with **35 built-in themes** + your own, dark mode, and SSR-safe persistence. |\n| Charts mean a heavy JS dependency | **Dependency-free SVG charts** that follow the active daisyUI theme — zero charting runtime. |\n| Starting a new app is boilerplate | `dotnet new daisyblazor` scaffolds a wired app in seconds. |\n\n## Quick start\n\nScaffold a new app:\n\n```bash\ndotnet new install DaisyBlazor.Templates\ndotnet new daisyblazor -o MyApp\ncd MyApp \u0026\u0026 npm install \u0026\u0026 dotnet run\n```\n\n…or add it to an existing Blazor app:\n\n```bash\ndotnet add package DaisyBlazor.Components\nnpm install -D tailwindcss @tailwindcss/cli daisyui\n```\n\n```csharp\n// Program.cs\nbuilder.Services.AddDaisyBlazor();\n```\n\n```css\n/* Styles/main.css — Tailwind v4 source globs are one line per extension (no { } brace groups). */\n@import \"tailwindcss\";\n@import \"daisyblazor/preset.css\";\n@source \"../**/DaisyBlazor.Components/**/*.razor\";\n@source \"../**/DaisyBlazor.Components/**/*.cs\";\n```\n\n```razor\n\u003cCard\u003e\n    \u003cCardContent\u003e\n        \u003ch2 class=\"card-title\"\u003eHello DaisyBlazor\u003c/h2\u003e\n        \u003cTabs\u003e\n            \u003cTab Title=\"One\"\u003eFirst panel\u003c/Tab\u003e\n            \u003cTab Title=\"Two\"\u003eSecond panel\u003c/Tab\u003e\n        \u003c/Tabs\u003e\n        \u003cButton Color=\"Color.Primary\" StartIcon=\"@Icons.Material.Filled.Check\"\u003eOK\u003c/Button\u003e\n    \u003c/CardContent\u003e\n\u003c/Card\u003e\n```\n\nFull setup (CSS pipeline, fonts, DI, theming) is in **[Getting started](https://phmatray.github.io/daisyblazor/getting-started/)**.\n\n## Packages\n\n| Package | Version | Description |\n|---|---|---|\n| **DaisyBlazor.Components** | [![nuget](https://img.shields.io/nuget/v/DaisyBlazor.Components?label=)](https://www.nuget.org/packages/DaisyBlazor.Components) | The component kit: daisyUI-native components + MudBlazor-compatible surface, `ThemeProvider`, dialog/snackbar services, and the CSS preset. |\n| **DaisyBlazor.Charts** | [![nuget](https://img.shields.io/nuget/v/DaisyBlazor.Charts?label=)](https://www.nuget.org/packages/DaisyBlazor.Charts) | Dependency-free SVG charts (line, area, bar, pie/donut, sparkline) themed by daisyUI. |\n| **DaisyBlazor.Templates** | [![nuget](https://img.shields.io/nuget/v/DaisyBlazor.Templates?label=)](https://www.nuget.org/packages/DaisyBlazor.Templates) | `dotnet new daisyblazor` starter template. |\n| **@daisyblazor/tailwind** | — | npm package shipping the Tailwind/daisyUI preset for non-.NET build pipelines. |\n\n## Screenshots\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd width=\"50%\"\u003e\u003cimg src=\"assets/screenshots/data-display.png\" alt=\"Data display components\"\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003eData display\u003c/b\u003e — cards, table, stats, timeline, chat, carousel…\u003c/sub\u003e\u003c/td\u003e\n    \u003ctd width=\"50%\"\u003e\u003cimg src=\"assets/screenshots/charts.png\" alt=\"Charts\"\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003eCharts\u003c/b\u003e — dependency-free SVG, theme-aware\u003c/sub\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd width=\"50%\"\u003e\u003cimg src=\"assets/screenshots/data-input.png\" alt=\"Data input components\"\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003eData input\u003c/b\u003e — inputs, select, range, rating, validation…\u003c/sub\u003e\u003c/td\u003e\n    \u003ctd width=\"50%\"\u003e\u003cimg src=\"assets/screenshots/home.png\" alt=\"Home\"\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003eTheming\u003c/b\u003e — 35 daisyUI themes, light \u0026 dark\u003c/sub\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nRun the live gallery yourself: `dotnet run --project samples/DaisyBlazor.Gallery`.\n\n## Repo layout\n\n```\nsrc/        DaisyBlazor.Components, DaisyBlazor.Charts, DaisyBlazor.Tailwind\nsamples/    DaisyBlazor.Gallery — a runnable showcase of every component\ntemplates/  DaisyBlazor.Templates — dotnet new template\nwebsite/    Astro Starlight documentation site (GitHub Pages)\ntests/      bUnit component tests\ndocs/       markdown source for the docs site\nscripts/    update-deps, build-css, pack\n```\n\n## Documentation\n\n📖 **\u003chttps://phmatray.github.io/daisyblazor/\u003e**\n\n- [Getting started](https://phmatray.github.io/daisyblazor/getting-started/) — install, CSS wiring, DI, fonts.\n- [Theming](https://phmatray.github.io/daisyblazor/theming/) — `ThemeProvider`, built-in \u0026 custom themes.\n- [CSS preset](https://phmatray.github.io/daisyblazor/css-preset/) — what `preset.css` ships and how to wire `@source`.\n- [Component reference](https://phmatray.github.io/daisyblazor/components/) — every component by daisyUI category.\n- [Charts](https://phmatray.github.io/daisyblazor/charts/) — the dependency-free SVG charts.\n- [Migrating from MudBlazor](https://phmatray.github.io/daisyblazor/migration/) — the `MudX` → `X` map.\n\n## Contributing \u0026 releasing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for the branch strategy (`main` / `release` / feature branches)\nand the automated release pipeline.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmatray%2Fdaisyblazor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphmatray%2Fdaisyblazor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmatray%2Fdaisyblazor/lists"}