From 9abc923ab495bd2b24579eff3dab07ef0947d640 Mon Sep 17 00:00:00 2001 From: James Atkin Date: Sat, 7 Sep 2024 09:56:54 +0100 Subject: [PATCH 1/4] add dark medium palette --- palette/palettes.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/palette/palettes.go b/palette/palettes.go index 82630bc..ceafa34 100644 --- a/palette/palettes.go +++ b/palette/palettes.go @@ -17,6 +17,8 @@ var ( RAL gamut.Palette // CSS Named Color Palette CSS gamut.Palette + // EverforestDarkMedium Palette + EverforestDarkMedium gamut.Palette ) // AllPalettes returns a mix of all palettes defined in gamut @@ -26,5 +28,6 @@ func AllPalettes() gamut.Palette { MixedWith(Crayola). MixedWith(Resene). MixedWith(RAL). - MixedWith(CSS) + MixedWith(CSS). + MixedWith(EverforestDarkMedium) } From 68863ca810e66cd7470187761389d8345840667f Mon Sep 17 00:00:00 2001 From: James Atkin Date: Sat, 7 Sep 2024 09:57:45 +0100 Subject: [PATCH 2/4] commit palette file --- palette/everforest_dark_medium.go | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 palette/everforest_dark_medium.go diff --git a/palette/everforest_dark_medium.go b/palette/everforest_dark_medium.go new file mode 100644 index 0000000..d358f90 --- /dev/null +++ b/palette/everforest_dark_medium.go @@ -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"}, + }) +} From e58445380d0d3a344ba8c1fb2f117ba9d3ec9a92 Mon Sep 17 00:00:00 2001 From: James Atkin Date: Sat, 7 Sep 2024 10:00:47 +0100 Subject: [PATCH 3/4] add to readme --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 29f5ca0..ae610e7 100644 --- a/README.md +++ b/README.md @@ -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 | 26 | https://github.com/sainnhe/everforest | The function Colors lets you retrieve all colors in a palette: From 0fa11e957976cad4ec7bc42ae5b05c7a31c53c53 Mon Sep 17 00:00:00 2001 From: James Atkin Date: Sat, 7 Sep 2024 10:06:38 +0100 Subject: [PATCH 4/4] add other palettes --- README.md | 2 +- palette/everforest_dark_hard.go | 35 ++++++++++++++++++++++++++++++ palette/everforest_dark_soft.go | 35 ++++++++++++++++++++++++++++++ palette/everforest_light_hard.go | 35 ++++++++++++++++++++++++++++++ palette/everforest_light_medium.go | 35 ++++++++++++++++++++++++++++++ palette/everforest_light_soft.go | 35 ++++++++++++++++++++++++++++++ palette/palettes.go | 10 +++++++++ 7 files changed, 186 insertions(+), 1 deletion(-) create mode 100644 palette/everforest_dark_hard.go create mode 100644 palette/everforest_dark_soft.go create mode 100644 palette/everforest_light_hard.go create mode 100644 palette/everforest_light_medium.go create mode 100644 palette/everforest_light_soft.go diff --git a/README.md b/README.md index ae610e7..b2fecd7 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ a pull request! | RAL | 213 | https://en.wikipedia.org/wiki/List_of_RAL_colors | | Resene | 759 | http://www.resene.co.nz | | Monokai | 17 | | -| Everforest | 26 | https://github.com/sainnhe/everforest | +| Everforest | 156 | https://github.com/sainnhe/everforest | The function Colors lets you retrieve all colors in a palette: diff --git a/palette/everforest_dark_hard.go b/palette/everforest_dark_hard.go new file mode 100644 index 0000000..2542ae1 --- /dev/null +++ b/palette/everforest_dark_hard.go @@ -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"}, + }) +} diff --git a/palette/everforest_dark_soft.go b/palette/everforest_dark_soft.go new file mode 100644 index 0000000..e1e2877 --- /dev/null +++ b/palette/everforest_dark_soft.go @@ -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"}, + }) +} diff --git a/palette/everforest_light_hard.go b/palette/everforest_light_hard.go new file mode 100644 index 0000000..3033e8c --- /dev/null +++ b/palette/everforest_light_hard.go @@ -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"}, + }) +} diff --git a/palette/everforest_light_medium.go b/palette/everforest_light_medium.go new file mode 100644 index 0000000..ef0e075 --- /dev/null +++ b/palette/everforest_light_medium.go @@ -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"}, + }) +} diff --git a/palette/everforest_light_soft.go b/palette/everforest_light_soft.go new file mode 100644 index 0000000..5e4ef33 --- /dev/null +++ b/palette/everforest_light_soft.go @@ -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"}, + }) +} diff --git a/palette/palettes.go b/palette/palettes.go index ceafa34..1777b3d 100644 --- a/palette/palettes.go +++ b/palette/palettes.go @@ -17,8 +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