diff --git a/palettes/vim/alduin/alduin.go b/palettes/vim/alduin/alduin.go new file mode 100644 index 0000000..ae0b8c8 --- /dev/null +++ b/palettes/vim/alduin/alduin.go @@ -0,0 +1,40 @@ +package alduin + +import ( + "sort" + "sync" + + "github.com/taigrr/go-colorpalettes/simplecolor" +) + +var ( + once sync.Once + colors = simplecolor.SimplePalette{ + 0x1c1c1c, + 0x2a2a2a, + 0x545454, + 0x5f5f87, + 0x666666, + 0x875f5f, + 0x87875f, + 0x878787, + 0x87afaf, + 0xaf1600, + 0xaf5f00, + 0xaf5f5f, + 0xaf875f, + 0xaf8787, + 0xafd7d7, + 0xdfaf87, + 0xdfdfaf, + 0xffdf87, + 0xffffff, + } +) + +func GetPalette() (sp simplecolor.SimplePalette) { + once.Do(func() { + sort.Sort(colors) + }) + return colors +} diff --git a/palettes/vim/skeleton.go.templ b/palettes/vim/skeleton.go.templ new file mode 100644 index 0000000..eecda7a --- /dev/null +++ b/palettes/vim/skeleton.go.templ @@ -0,0 +1,20 @@ +package skeleton + +import ( + "sort" + "sync" + + "github.com/taigrr/go-colorpalettes/simplecolor" +) + +var ( + once sync.Once + colors = simplecolor.SimplePalette{} +) + +func GetPalette() (sp simplecolor.SimplePalette) { + once.Do(func() { + sort.Sort(colors) + }) + return colors +}