diff --git a/README.md b/README.md index 8ff967d..c984823 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Currently the following themes are available: - `:ggplot2` - `:juno` - `:lime` +- `:onedark` - `:orange` - `:sand` - `:solarized` diff --git a/src/PlotThemes.jl b/src/PlotThemes.jl index b0fdae4..185d05a 100644 --- a/src/PlotThemes.jl +++ b/src/PlotThemes.jl @@ -47,6 +47,7 @@ include("ggplot2.jl") include("solarized.jl") include("sand.jl") include("lime.jl") +include("onedark.jl") include("orange.jl") include("wong.jl") include("juno.jl") diff --git a/src/onedark.jl b/src/onedark.jl new file mode 100644 index 0000000..23128dd --- /dev/null +++ b/src/onedark.jl @@ -0,0 +1,24 @@ +dark_palette = [ + colorant"#E06C75", # red + colorant"#98C379", # green + colorant"#61AFEF", # blue + colorant"#C678DD", # purple + colorant"#E5C07B", # yellow + colorant"#56B6C2", # teal + colorant"#ABB2BF" # grey +] +dark_bg = colorant"#373E4B" + +_themes[:onedark] = PlotTheme( + bg = dark_bg, + bginside = colorant"#282C34", + fg = colorant"#ADB2B7", + fgtext = colorant"#B1BED6", + fgguide = colorant"#B1BED6", + fglegend = colorant"#B1BED6", + legendfontcolor = colorant"#B1BED6", + legendtitlefontcolor = colorant"#B1BED6", + titlefontcolor = colorant"#B1BED6", + palette = expand_palette(dark_bg, dark_palette; lchoices = [57], cchoices = [100]), + colorgradient = :fire +)