mirror of
https://github.com/taigrr/simplecolorpalettes.git
synced 2026-04-02 04:59:08 -07:00
Add alduin + skeleton template
This commit is contained in:
40
palettes/vim/alduin/alduin.go
Normal file
40
palettes/vim/alduin/alduin.go
Normal file
@@ -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
|
||||
}
|
||||
20
palettes/vim/skeleton.go.templ
Normal file
20
palettes/vim/skeleton.go.templ
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user