{"id":17760815,"url":"https://github.com/joshuar/go-templ-daisyui","last_synced_at":"2025-05-12T18:51:00.565Z","repository":{"id":259351941,"uuid":"877039316","full_name":"joshuar/go-templ-daisyui","owner":"joshuar","description":"Generate beautiful UIs with DaisyUI using Templ + Go","archived":false,"fork":false,"pushed_at":"2024-12-04T23:07:43.000Z","size":156,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-05T00:19:40.422Z","etag":null,"topics":["daisyui","go","golang","htmx","templating","web"],"latest_commit_sha":null,"homepage":"","language":"Go","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/joshuar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-23T01:30:16.000Z","updated_at":"2024-12-04T23:07:47.000Z","dependencies_parsed_at":"2024-11-25T09:18:01.156Z","dependency_job_id":null,"html_url":"https://github.com/joshuar/go-templ-daisyui","commit_stats":null,"previous_names":["joshuar/go-templ-daisyui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuar%2Fgo-templ-daisyui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuar%2Fgo-templ-daisyui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuar%2Fgo-templ-daisyui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuar%2Fgo-templ-daisyui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshuar","download_url":"https://codeload.github.com/joshuar/go-templ-daisyui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229673802,"owners_count":18105434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["daisyui","go","golang","htmx","templating","web"],"created_at":"2024-10-26T19:13:27.249Z","updated_at":"2025-05-12T18:50:59.926Z","avatar_url":"https://github.com/joshuar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n Copyright 2024 Joshua Rich \u003cjoshua.rich@gmail.com\u003e.\n SPDX-License-Identifier: MIT\n--\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n  \u003c!-- \u003cimg src=\"assets/logo.png\" alt=\"logo\" width=\"200\" height=\"auto\" /\u003e --\u003e\n  \u003ch1\u003eGo-Templ-DaisyUI\u003c/h1\u003e\n\n  \u003cp\u003e\n     Generate beautiful UIs with DaisyUI using Templ + Go.\n  \u003c/p\u003e\n\n\u003c!-- Badges --\u003e\n\u003cp\u003e\n  \u003ca href=\"https://github.com/joshuar/go-templ-daisyui/graphs/contributors\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/contributors/joshuar/go-templ-daisyui\" alt=\"contributors\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/last-commit/joshuar/go-templ-daisyui\" alt=\"last update\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/joshuar/go-templ-daisyui/network/members\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/forks/joshuar/go-templ-daisyui\" alt=\"forks\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/joshuar/go-templ-daisyui/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/joshuar/go-templ-daisyui\" alt=\"stars\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/joshuar/go-templ-daisyui/issues/\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/joshuar/go-templ-daisyui\" alt=\"open issues\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/joshuar/go-templ-daisyui/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/joshuar/go-templ-daisyui.svg\" alt=\"license\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch4\u003e\n    \u003c!-- \u003ca href=\"https://github.com/joshuar/go-templ-daisyui/\"\u003eView Demo\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e --\u003e\n    \u003ca href=\"https://github.com/joshuar/go-templ-daisyui\"\u003eDocumentation\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e\n    \u003ca href=\"https://github.com/joshuar/go-templ-daisyui/issues/\"\u003eReport Bug\u003c/a\u003e\n  \u003cspan\u003e · \u003c/span\u003e\n    \u003ca href=\"https://github.com/joshuar/go-templ-daisyui/issues/\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/h4\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u003c!-- Table of Contents --\u003e\n# 📜 Table of Contents\n\n- [📜 Table of Contents](#-table-of-contents)\n  - [🌟 About the Project](#-about-the-project)\n    - [🏗️ Tech Stack](#️-tech-stack)\n    - [🎯 Features](#-features)\n  - [🧰 Usage](#-usage)\n    - [Custom Classes](#custom-classes)\n  - [👋 Contributing](#-contributing)\n    - [🤝 Code of Conduct](#-code-of-conduct)\n  - [🧑‍⚖️ License](#️-license)\n\n\u003c!-- About the Project --\u003e\n## 🌟 About the Project\n\n\u003c!-- Screenshots\n### :camera: Screenshots\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://placehold.co/600x400?text=Your+Screenshot+here\" alt=\"screenshot\" /\u003e\n\u003c/div\u003e --\u003e\n\n\u003c!-- TechStack --\u003e\n### 🏗️ Tech Stack\n\n\u003cdetails\u003e\n  \u003csummary\u003eComponents\u003c/summary\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003ca href=\"https://go.dev/\"\u003eGo\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://templ.guide/\"\u003eTempl\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://daisyui.com/\"\u003eDaisyUI\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://htmx.org/\"\u003ehtmx\u003c/a\u003e\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/details\u003e\n\n\u003c!-- Features --\u003e\n### 🎯 Features\n\n- Generate DaisyUI components with builder functions, specifying optional features.\n- Render using Templ and/or htmx.\n\n## 🧰 Usage\n\nInclude as a module in your Go project:\n\n```go\nimport components \"github.com/joshuar/go-templ-daisyui\"\n```\n\n### Custom Classes\n\nComponents support custom classes by passing the following to their `Show()` method:\n\n- a list of strings\n- a single string with space-separated class values\n\nThe classes will be added to the Component enclosure element.\n\n\u003e [!NOTE]\n\u003e When adding custom classes, ensure you call the `Show()` method in a `.templ`\n\u003e file. This will ensure that CSS pre-processors (such as Tailwind) will see the\n\u003e classes and act appropriately. If you call the `Show()` method in a `.go`\n\u003e file, your classes may not get applied correctly.\n\n## 👋 Contributing\n\n\u003ca href=\"https://github.com/joshuar/go-templ-daisyui/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=joshuar/go-templ-daisyui\" alt=\"Contributor Badges\"/\u003e\n\u003c/a\u003e\n\nContributions are always welcome!\n\n\u003c!-- See `contributing.md` for ways to get started. --\u003e\n\n### 🤝 Code of Conduct\n\nPlease read the [Code of Conduct](https://github.com/joshuar/go-templ-daisyui/blob/master/CODE_OF_CONDUCT.md)\n\n\u003c!-- FAQ\n## :grey_question: FAQ\n\n- Question 1\n\n  + Answer 1\n\n- Question 2\n\n  + Answer 2 --\u003e\n\n## 🧑‍⚖️ License\n\nDistributed under the MIT License. See [LICENSE](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshuar%2Fgo-templ-daisyui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshuar%2Fgo-templ-daisyui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshuar%2Fgo-templ-daisyui/lists"}