A golang package and cli tool for generating styles using Tailwind CSS and DaisyUI
cmd | ||
generator | ||
.DS_Store | ||
go.mod | ||
go.sum | ||
LICENSE | ||
Makefile | ||
README.md |
DaisyUI + TailwindCSS Generator built with Go
Usage
As a CLI
- Run
go install codeberg.org/atridad/daisygen/generator
- Ensure your GO bin directory is in your PATH
- Run
daisygen -extensions html -directory ./pages/templates -output-dir ./public/css
(this is an example... use the values that make sense for your project) - ???
- Profit
As a Go package
- Import
codeberg.org/atridad/daisygen/generator
usinggo get codeberg.org/atridad/daisygen/generator
- Add
daisygen "codeberg.org/atridad/daisygen/generator"
to your imports - Use
daisygen.Generate("extention","directory","outputdirectory"
directly in your go code (ideally your mail.go file) - ???
- Profit