initial commit
This commit is contained in:
commit
078bd90570
9 changed files with 374 additions and 0 deletions
12
tool/template.gotmpl
Normal file
12
tool/template.gotmpl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package catppuccin
|
||||
|
||||
import "github.com/charmbracelet/lipgloss"
|
||||
|
||||
type Palette struct {
|
||||
{{ range colorVars }}{{ "\t" }}{{ . }} lipgloss.Color{{ "\n" }}{{ end }}
|
||||
}
|
||||
{{ range $var, $p := palettes }}
|
||||
var {{ $var }} = Palette{
|
||||
{{ range $_, $c := $p.Colors }}{{ "\t" }}{{ .VarName }}: lipgloss.Color("{{ .Hex }}"),{{ "\n" }}{{ end }}
|
||||
}{{ end }}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue