Skip to content

Instantly share code, notes, and snippets.

@theoriginalstove
Created May 7, 2022 03:22
Show Gist options
  • Select an option

  • Save theoriginalstove/89aa16316a756721816886398080dbd6 to your computer and use it in GitHub Desktop.

Select an option

Save theoriginalstove/89aa16316a756721816886398080dbd6 to your computer and use it in GitHub Desktop.
Gruvbox Material Dark Hard for Wezterm
local wezterm = require("wezterm")
return {
color_scheme = "gruvbox_material_dark_hard",
color_schemes = {
["gruvbox_material_dark_hard"] = {
foreground = "#D4BE98",
background = "#1D2021",
cursor_bg = "#D4BE98",
cursor_border = "#D4BE98",
cursor_fg = "#1D2021",
selection_bg = "#D4BE98" ,
selection_fg = "#3C3836",
ansi = {"#1d2021","#ea6962","#a9b665","#d8a657", "#7daea3","#d3869b", "#89b482","#d4be98"},
brights = {"#eddeb5","#ea6962","#a9b665","#d8a657", "#7daea3","#d3869b", "#89b482","#d4be98"},
},
},
}
@WindSoilder

Copy link
Copy Markdown

Hi, would you please share a gruvbox_material_light_hard? Thank you very much

@theoriginalstove

Copy link
Copy Markdown
Author

Hi, would you please share a gruvbox_material_light_hard? Thank you very much

I'll see if I can find some time to go through the original repo to map the colors out. I don't use light mode, so it might take some time.

I took a quick pass at some of the colors (mostly the foreground and background text). I'm sure the colors will require some tweaking.

local wezterm = require('wezterm')

return {
    font = wezterm.font("JetBrainsMono Nerd Font"),
    font_size = 15,
    warn_about_missing_glyphs=false,
    color_scheme = "gruvbox_material_dark_hard",
    color_schemes = {
        ["gruvbox_material_dark_hard"] = {
            foreground = "#D4BE98",
            background = "#1D2021",
            cursor_bg = "#D4BE98",
            cursor_border = "#D4BE98",
            cursor_fg = "#1D2021",
            selection_bg = "#D4BE98" ,
            selection_fg = "#3C3836",

            ansi = {"#1d2021","#ea6962","#a9b665","#d8a657", "#7daea3","#d3869b", "#89b482","#d4be98"},
            brights = {"#eddeb5","#ea6962","#a9b665","#d8a657", "#7daea3","#d3869b", "#89b482","#d4be98"}
        },
        ["gruvbox_material_dark_medium"] = {
        },
        ["gruvbox_material_dark_soft"] = {
        },
        ["gruvbox_material_light_hard"] = {
            foreground = "#654735",
            background = "#F9F5D7",
            cursor_bg = "#654735",
            cursor_border = "#654735",
            cursor_fg = "#F9F5D7",
            selection_bg = "#F3EAC7" ,
            selection_fg = "#4F3829",

            ansi = {"#1d2021","#ea6962","#a9b665","#d8a657", "#7daea3","#d3869b", "#89b482","#d4be98"},
            brights = {"#eddeb5","#ea6962","#a9b665","#d8a657", "#7daea3","#d3869b", "#89b482","#d4be98"}
        },
        ["gruvbox_material_light_medium"] = {
        },
        ["gruvbox_material_light_soft"] = {
        },
    },
}

@WindSoilder

Copy link
Copy Markdown

Thank you, I'll try it out:-D

@nlahmi

nlahmi commented May 15, 2024

Copy link
Copy Markdown

I've created a dark_medium variation:

["gruvbox_material_dark_medium"] = {
  foreground = "#D4BE98",
  background = "#282828",
  cursor_bg = "#D4BE98",
  cursor_border = "#D4BE98",
  cursor_fg = "#282828",
  selection_bg = "#D4BE98",
  selection_fg = "#45403d",
  
  ansi = { "#282828", "#ea6962", "#a9b665", "#d8a657", "#7daea3", "#d3869b", "#89b482", "#d4be98" },
  brights = { "#eddeb5", "#ea6962", "#a9b665", "#d8a657", "#7daea3", "#d3869b", "#89b482", "#d4be98" },
},

@theoriginalstove

Copy link
Copy Markdown
Author

Awesome and thanks @nlahmi !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment