Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add the everforest colour palettes #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,20 @@ colors = gamut.Blends(color1, color2, 8)

## Palettes

Gamut comes with six curated color palettes: Wikipedia, Crayola, CSS, RAL,
Resene, and Monokai. The Wikipedia palette is an import of common colors from
Gamut comes with seven curated color palettes: Wikipedia, Crayola, CSS, RAL,
Resene, Monokai and Everforest. The Wikipedia palette is an import of common colors from
Wikipedia’s List of Colors. New curated palettes and importers are welcome. Send me
a pull request!

| Name | Colors | Source |
| --------- | -----: | ------------------------------------------------------------ |
| Wikipedia | 1609 | https://en.wikipedia.org/wiki/List_of_colors_(compact) |
| Crayola | 180 | https://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors |
| CSS | 147 | https://developer.mozilla.org/en-US/docs/Web/CSS/color_value |
| RAL | 213 | https://en.wikipedia.org/wiki/List_of_RAL_colors |
| Resene | 759 | http://www.resene.co.nz |
| Monokai | 17 | |
| Name | Colors | Source |
| ---------- | -----: | ------------------------------------------------------------ |
| Wikipedia | 1609 | https://en.wikipedia.org/wiki/List_of_colors_(compact) |
| Crayola | 180 | https://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors |
| CSS | 147 | https://developer.mozilla.org/en-US/docs/Web/CSS/color_value |
| RAL | 213 | https://en.wikipedia.org/wiki/List_of_RAL_colors |
| Resene | 759 | http://www.resene.co.nz |
| Monokai | 17 | |
| Everforest | 156 | https://github.com/sainnhe/everforest |

The function Colors lets you retrieve all colors in a palette:

Expand Down
35 changes: 35 additions & 0 deletions palette/everforest_dark_hard.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package palette

import "github.com/muesli/gamut"

func init() {
EverforestDarkHard.AddColors(
gamut.Colors{
{"bg_dim", gamut.Hex("#1E2326"), "Background Dim"},
{"bg0", gamut.Hex("#272E33"), "Background 0"},
{"bg1", gamut.Hex("#2E383C"), "Background 1"},
{"bg2", gamut.Hex("#374145"), "Background 2"},
{"bg3", gamut.Hex("#414B50"), "Background 3"},
{"bg4", gamut.Hex("#495156"), "Background 4"},
{"bg5", gamut.Hex("#4F5B58"), "Background 5"},
{"bg_visual", gamut.Hex("#4C3743"), "Background Visual"},
{"bg_red", gamut.Hex("#493B40"), "Background Red"},
{"bg_green", gamut.Hex("#3C4841"), "Background Green"},
{"bg_blue", gamut.Hex("#384B55"), "Background Blue"},
{"bg_yellow", gamut.Hex("#45443C"), "Background Yellow"},
{"fg", gamut.Hex("#D3C6AA"), "Foreground"},
{"red", gamut.Hex("#E67E80"), "Red"},
{"orange", gamut.Hex("#E69875"), "Orange"},
{"yellow", gamut.Hex("#DBBC7F"), "Yellow"},
{"green", gamut.Hex("#A7C080"), "Green"},
{"aqua", gamut.Hex("#83C092"), "Aqua"},
{"blue", gamut.Hex("#7FBBB3"), "Blue"},
{"purple", gamut.Hex("#D699B6"), "Purple"},
{"grey0", gamut.Hex("#7A8478"), "Grey 0"},
{"grey1", gamut.Hex("#859289"), "Grey 1"},
{"grey2", gamut.Hex("#9DA9A0"), "Grey 2"},
{"statusline1", gamut.Hex("#A7C080"), "Statusline 1"},
{"statusline2", gamut.Hex("#D3C6AA"), "Statusline 2"},
{"statusline3", gamut.Hex("#E67E80"), "Statusline 3"},
})
}
35 changes: 35 additions & 0 deletions palette/everforest_dark_medium.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package palette

import "github.com/muesli/gamut"

func init() {
EverforestDarkMedium.AddColors(
gamut.Colors{
{"bg_dim", gamut.Hex("#232A2E"), "Background Dim"},
{"bg0", gamut.Hex("#2D353B"), "Background 0"},
{"bg1", gamut.Hex("#343F44"), "Background 1"},
{"bg2", gamut.Hex("#3D484D"), "Background 2"},
{"bg3", gamut.Hex("#475258"), "Background 3"},
{"bg4", gamut.Hex("#4F585E"), "Background 4"},
{"bg5", gamut.Hex("#56635f"), "Background 5"},
{"bg_visual", gamut.Hex("#543A48"), "Background Visual"},
{"bg_red", gamut.Hex("#514045"), "Background Red"},
{"bg_green", gamut.Hex("#425047"), "Background Green"},
{"bg_blue", gamut.Hex("#3A515D"), "Background Blue"},
{"bg_yellow", gamut.Hex("#4D4C43"), "Background Yellow"},
{"fg", gamut.Hex("#D3C6AA"), "Foreground"},
{"red", gamut.Hex("#E67E80"), "Red"},
{"orange", gamut.Hex("#E69875"), "Orange"},
{"yellow", gamut.Hex("#DBBC7F"), "Yellow"},
{"green", gamut.Hex("#A7C080"), "Green"},
{"aqua", gamut.Hex("#83C092"), "Aqua"},
{"blue", gamut.Hex("#7FBBB3"), "Blue"},
{"purple", gamut.Hex("#D699B6"), "Purple"},
{"grey0", gamut.Hex("#7A8478"), "Grey 0"},
{"grey1", gamut.Hex("#859289"), "Grey 1"},
{"grey2", gamut.Hex("#9DA9A0"), "Grey 2"},
{"statusline1", gamut.Hex("#A7C080"), "Statusline 1"},
{"statusline2", gamut.Hex("#D3C6AA"), "Statusline 2"},
{"statusline3", gamut.Hex("#E67E80"), "Statusline 3"},
})
}
35 changes: 35 additions & 0 deletions palette/everforest_dark_soft.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package palette

import "github.com/muesli/gamut"

func init() {
EverforestDarkSoft.AddColors(
gamut.Colors{
{"bg_dim", gamut.Hex("#293136"), "Background Dim"},
{"bg0", gamut.Hex("#333C43"), "Background 0"},
{"bg1", gamut.Hex("#3A464C"), "Background 1"},
{"bg2", gamut.Hex("#434F55"), "Background 2"},
{"bg3", gamut.Hex("#4D5960"), "Background 3"},
{"bg4", gamut.Hex("#555F66"), "Background 4"},
{"bg5", gamut.Hex("#5D6B66"), "Background 5"},
{"bg_visual", gamut.Hex("#5C3F4F"), "Background Visual"},
{"bg_red", gamut.Hex("#59464C"), "Background Red"},
{"bg_green", gamut.Hex("#48584E"), "Background Green"},
{"bg_blue", gamut.Hex("#3F5865"), "Background Blue"},
{"bg_yellow", gamut.Hex("#55544A"), "Background Yellow"},
{"fg", gamut.Hex("#D3C6AA"), "Foreground"},
{"red", gamut.Hex("#E67E80"), "Red"},
{"orange", gamut.Hex("#E69875"), "Orange"},
{"yellow", gamut.Hex("#DBBC7F"), "Yellow"},
{"green", gamut.Hex("#A7C080"), "Green"},
{"aqua", gamut.Hex("#83C092"), "Aqua"},
{"blue", gamut.Hex("#7FBBB3"), "Blue"},
{"purple", gamut.Hex("#D699B6"), "Purple"},
{"grey0", gamut.Hex("#7A8478"), "Grey 0"},
{"grey1", gamut.Hex("#859289"), "Grey 1"},
{"grey2", gamut.Hex("#9DA9A0"), "Grey 2"},
{"statusline1", gamut.Hex("#A7C080"), "Statusline 1"},
{"statusline2", gamut.Hex("#D3C6AA"), "Statusline 2"},
{"statusline3", gamut.Hex("#E67E80"), "Statusline 3"},
})
}
35 changes: 35 additions & 0 deletions palette/everforest_light_hard.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package palette

import "github.com/muesli/gamut"

func init() {
EverforestLightHard.AddColors(
gamut.Colors{
{"bg_dim", gamut.Hex("#F2EFDF"), "Background Dim"},
{"bg0", gamut.Hex("#FFFBEF"), "Background 0"},
{"bg1", gamut.Hex("#F8F5E4"), "Background 1"},
{"bg2", gamut.Hex("#F2EFDF"), "Background 2"},
{"bg3", gamut.Hex("#EDEADA"), "Background 3"},
{"bg4", gamut.Hex("#E8E5D5"), "Background 4"},
{"bg5", gamut.Hex("#BEC5B2"), "Background 5"},
{"bg_visual", gamut.Hex("#F0F2D4"), "Background Visual"},
{"bg_red", gamut.Hex("#FFE7DE"), "Background Red"},
{"bg_green", gamut.Hex("#F3F5D9"), "Background Green"},
{"bg_blue", gamut.Hex("#ECF5ED"), "Background Blue"},
{"bg_yellow", gamut.Hex("#FEF2D5"), "Background Yellow"},
{"fg", gamut.Hex("#5C6A72"), "Foreground"},
{"red", gamut.Hex("#F85552"), "Red"},
{"orange", gamut.Hex("#F57D26"), "Orange"},
{"yellow", gamut.Hex("#DFA000"), "Yellow"},
{"green", gamut.Hex("#8DA101"), "Green"},
{"aqua", gamut.Hex("#35A77C"), "Aqua"},
{"blue", gamut.Hex("#3A94C5"), "Blue"},
{"purple", gamut.Hex("#DF69BA"), "Purple"},
{"grey0", gamut.Hex("#A6B0A0"), "Grey 0"},
{"grey1", gamut.Hex("#919B84"), "Grey 1"},
{"grey2", gamut.Hex("#7D8778"), "Grey 2"},
{"statusline1", gamut.Hex("#8DA101"), "Statusline 1"},
{"statusline2", gamut.Hex("#5C6A72"), "Statusline 2"},
{"statusline3", gamut.Hex("#F85552"), "Statusline 3"},
})
}
35 changes: 35 additions & 0 deletions palette/everforest_light_medium.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package palette

import "github.com/muesli/gamut"

func init() {
EverforestLightMedium.AddColors(
gamut.Colors{
{"bg_dim", gamut.Hex("#F6F0E1"), "Background Dim"},
{"bg0", gamut.Hex("#FFF9E8"), "Background 0"},
{"bg1", gamut.Hex("#F9F3E4"), "Background 1"},
{"bg2", gamut.Hex("#F4EFDF"), "Background 2"},
{"bg3", gamut.Hex("#EFEBDA"), "Background 3"},
{"bg4", gamut.Hex("#EBE6D5"), "Background 4"},
{"bg5", gamut.Hex("#D2DAC2"), "Background 5"},
{"bg_visual", gamut.Hex("#F0F2D4"), "Background Visual"},
{"bg_red", gamut.Hex("#FFE4DD"), "Background Red"},
{"bg_green", gamut.Hex("#F1F4D7"), "Background Green"},
{"bg_blue", gamut.Hex("#EAF4ED"), "Background Blue"},
{"bg_yellow", gamut.Hex("#FDF1D4"), "Background Yellow"},
{"fg", gamut.Hex("#646A73"), "Foreground"},
{"red", gamut.Hex("#F85552"), "Red"},
{"orange", gamut.Hex("#F57D26"), "Orange"},
{"yellow", gamut.Hex("#DFA000"), "Yellow"},
{"green", gamut.Hex("#8DA101"), "Green"},
{"aqua", gamut.Hex("#35A77C"), "Aqua"},
{"blue", gamut.Hex("#3A94C5"), "Blue"},
{"purple", gamut.Hex("#DF69BA"), "Purple"},
{"grey0", gamut.Hex("#A6B0A0"), "Grey 0"},
{"grey1", gamut.Hex("#919B84"), "Grey 1"},
{"grey2", gamut.Hex("#7D8778"), "Grey 2"},
{"statusline1", gamut.Hex("#8DA101"), "Statusline 1"},
{"statusline2", gamut.Hex("#646A73"), "Statusline 2"},
{"statusline3", gamut.Hex("#F85552"), "Statusline 3"},
})
}
35 changes: 35 additions & 0 deletions palette/everforest_light_soft.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package palette

import "github.com/muesli/gamut"

func init() {
EverforestLightSoft.AddColors(
gamut.Colors{
{"bg_dim", gamut.Hex("#FAF4E6"), "Background Dim"},
{"bg0", gamut.Hex("#FFFAE8"), "Background 0"},
{"bg1", gamut.Hex("#F9F5E5"), "Background 1"},
{"bg2", gamut.Hex("#F4F1E0"), "Background 2"},
{"bg3", gamut.Hex("#F0EDDB"), "Background 3"},
{"bg4", gamut.Hex("#ECE8D6"), "Background 4"},
{"bg5", gamut.Hex("#D8DEBF"), "Background 5"},
{"bg_visual", gamut.Hex("#F0F2D4"), "Background Visual"},
{"bg_red", gamut.Hex("#FFE3DD"), "Background Red"},
{"bg_green", gamut.Hex("#F0F3D6"), "Background Green"},
{"bg_blue", gamut.Hex("#E9F3EC"), "Background Blue"},
{"bg_yellow", gamut.Hex("#FDF0D4"), "Background Yellow"},
{"fg", gamut.Hex("#6C707A"), "Foreground"},
{"red", gamut.Hex("#F85552"), "Red"},
{"orange", gamut.Hex("#F57D26"), "Orange"},
{"yellow", gamut.Hex("#DFA000"), "Yellow"},
{"green", gamut.Hex("#8DA101"), "Green"},
{"aqua", gamut.Hex("#35A77C"), "Aqua"},
{"blue", gamut.Hex("#3A94C5"), "Blue"},
{"purple", gamut.Hex("#DF69BA"), "Purple"},
{"grey0", gamut.Hex("#A6B0A0"), "Grey 0"},
{"grey1", gamut.Hex("#919B84"), "Grey 1"},
{"grey2", gamut.Hex("#7D8778"), "Grey 2"},
{"statusline1", gamut.Hex("#8DA101"), "Statusline 1"},
{"statusline2", gamut.Hex("#6C707A"), "Statusline 2"},
{"statusline3", gamut.Hex("#F85552"), "Statusline 3"},
})
}
15 changes: 14 additions & 1 deletion palette/palettes.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ var (
RAL gamut.Palette
// CSS Named Color Palette
CSS gamut.Palette
// EverforestDarkHard Palette
EverforestDarkHard gamut.Palette
// EverforestDarkMedium Palette
EverforestDarkMedium gamut.Palette
// EverforestDarkSoft Palette
EverforestDarkSoft gamut.Palette
// EverforestLightHard Palette
EverforestLightHard gamut.Palette
// EverforestLightMedium Palette
EverforestLightMedium gamut.Palette
// EverforestLightSoft Palette
EverforestLightSoft gamut.Palette
)

// AllPalettes returns a mix of all palettes defined in gamut
Expand All @@ -26,5 +38,6 @@ func AllPalettes() gamut.Palette {
MixedWith(Crayola).
MixedWith(Resene).
MixedWith(RAL).
MixedWith(CSS)
MixedWith(CSS).
MixedWith(EverforestDarkMedium)
}