morhetz / gruvbox-contrib Goto Github PK
View Code? Open in Web Editor NEWPorts of the gruvbox colorscheme
Ports of the gruvbox colorscheme
@morhetz Which one should I use? lol
I currently use both in my .Xresources file but I'm not sure which one does what?
In addition I'm also using the gruvbox_256palette.sh file in the main repository.
Would be cool if you could point out this kind of stuff in the readme so that future users aren't as confused. :)
OS: MacOS Big Sur
Platform: iTerm2
(https://github.com/morhetz/gruvbox-contrib/tree/master/iterm2)
I have installed some linux tools on MacOS with the command brew install coreutils
to show broken links with gls
.
I have the following setup in .zprofile
(or .zshrc
):
eval $(gdircolors)
alias ls='gls --color=auto -p'
Thus, broken links will be colored properly when I use ls
with the above setup.
The broken links color work fine in other color schemes. But it can not be seen in both Gruvbox Dark theme and Gruvbox Light theme on iTerm2.
Thank you very much.
I'm using St 0.7 and I needed to add the reverse cursor color to be able to compile.
static unsigned int defaultrcs = 0;
I made a quick gist for a Gruvbox dark theme for the Blink shell for iOS and thought others might be interested.
Hi @morhetz !
Great color theme!
I really appreciate the color pallete you created (I use it in vscode and console), so I used it in the game I developed, a minimalist Tetris clone. I hope you enjoy :)
Hello! I made a gruvbox clone for Code::Blocks
https://github.com/juppia/gruvbox_codeblocks/blob/master/gruvbox.conf
The colors in iTerm2 gruvbox-light.itermcolors
look quite off from the colors of the gruvbox color scheme in MacVim. Even just the background colors look noticeably dissimilar.
Additionally, the bright and normal colors are inverted and the black and white are swapped, probably from following the palette demo, which itself has inversions (see morhetz/gruvbox#146).
Further, a number of fields like the selection and selected text fields were not assigned and so were off compared to what one experiences with gruvbox in Vim.
I manually re-set all the colors by typing in the hex codes from the demo palette (fixing the inversions). Below is an export of the colors I arrived at in iTerm2. The colors are in "Calibrated" space as apposed to "sRGB" space. I don't know if that means these colors only work on my particular MacBook Pro, but I hope not. I don't know how to get iTerm2 to convert them to sRGB, if that's necessary. All I know is that after punching in the hex codes displayed on that palette, the colors are noticeably closer to โ if not identical to โ the colorscheme's appearance in MacVim.
I am on a 15-inch MacBookPro11,4 with OS X 10.11 El Capitan, using iTerm2 3.0.10 and MacVim homebrew version 8.0-114.
cc @fvgs
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.15993706881999969</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.16613791882991791</real>
<key>Red Component</key>
<real>0.17867125570774078</real>
</dict>
<key>Ansi 1 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.034902941435575485</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.5389401912689209</real>
</dict>
<key>Ansi 10 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.082894742488861084</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.53061914443969727</real>
<key>Red Component</key>
<real>0.52591603994369507</real>
</dict>
<key>Ansi 11 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.10328958928585052</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.53254079818725586</real>
<key>Red Component</key>
<real>0.80126690864562988</real>
</dict>
<key>Ansi 12 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.4586675763130188</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.45008346438407898</real>
<key>Red Component</key>
<real>0.21694663166999817</real>
</dict>
<key>Ansi 13 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.45103743672370911</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.29604318737983704</real>
<key>Red Component</key>
<real>0.62685638666152954</real>
</dict>
<key>Ansi 14 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.34128850698471069</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.55607825517654419</real>
<key>Red Component</key>
<real>0.34054014086723328</real>
</dict>
<key>Ansi 15 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.73338055610656738</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.93639552593231201</real>
<key>Red Component</key>
<real>0.97939503192901611</real>
</dict>
<key>Ansi 2 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.052511699497699738</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.3858717679977417</real>
<key>Red Component</key>
<real>0.3988109827041626</real>
</dict>
<key>Ansi 3 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.068556100130081177</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.38748690485954285</real>
<key>Red Component</key>
<real>0.64596939086914062</real>
</dict>
<key>Ansi 4 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.39446473121643066</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.3268389105796814</real>
<key>Red Component</key>
<real>0.05438985675573349</real>
</dict>
<key>Ansi 5 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.36767596006393433</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.170136958360672</real>
<key>Red Component</key>
<real>0.48193711042404175</real>
</dict>
<key>Ansi 6 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.27463468909263611</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.41390609741210938</real>
<key>Red Component</key>
<real>0.2062048614025116</real>
</dict>
<key>Ansi 7 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.37962067127227783</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.43934443593025208</real>
<key>Red Component</key>
<real>0.49889594316482544</real>
</dict>
<key>Ansi 8 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.31861674785614014</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.360250324010849</real>
<key>Red Component</key>
<real>0.40959125757217407</real>
</dict>
<key>Ansi 9 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.090684391558170319</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.05879192054271698</real>
<key>Red Component</key>
<real>0.74529051780700684</real>
</dict>
<key>Background Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.73338055610656738</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.93639552593231201</real>
<key>Red Component</key>
<real>0.97939503192901611</real>
</dict>
<key>Badge Color</key>
<dict>
<key>Alpha Component</key>
<real>0.5</real>
<key>Blue Component</key>
<real>0.056549370288848877</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.28100395202636719</real>
<key>Red Component</key>
<real>0.7928692102432251</real>
</dict>
<key>Bold Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>1</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>1</real>
<key>Red Component</key>
<real>1</real>
</dict>
<key>Cursor Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.73299998044967651</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.73299998044967651</real>
<key>Red Component</key>
<real>0.73299998044967651</real>
</dict>
<key>Cursor Guide Color</key>
<dict>
<key>Alpha Component</key>
<real>0.25</real>
<key>Blue Component</key>
<real>1</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.9100000262260437</real>
<key>Red Component</key>
<real>0.64999997615814209</real>
</dict>
<key>Cursor Text Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>1</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>1</real>
<key>Red Component</key>
<real>1</real>
</dict>
<key>Foreground Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.15993706881999969</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.16613791882991791</real>
<key>Red Component</key>
<real>0.17867125570774078</real>
</dict>
<key>Link Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.056549370288848877</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.28100395202636719</real>
<key>Red Component</key>
<real>0.7928692102432251</real>
</dict>
<key>Selected Text Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.50497335195541382</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.62249547243118286</real>
<key>Red Component</key>
<real>0.68568128347396851</real>
</dict>
<key>Selection Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.15993706881999969</real>
<key>Color Space</key>
<string>Calibrated</string>
<key>Green Component</key>
<real>0.16613791882991791</real>
<key>Red Component</key>
<real>0.17867125570774078</real>
</dict>
</dict>
</plist>
There are light/dark color schemes for those terminals in https://github.com/Mayccoll/Gogh
Works out of the box, doesn't need root and is easy to use ๐
Support for ConEmu would be nice
I have adapted gruvbox dark mode for i3-wm, i3blocks, conky, and a matching oomox gtk theme, it turned out so well I thought you or others may like to know about it. You can have it if you want. Thanks for making gruvbox!
According to https://github.com/morhetz/gruvbox/wiki/Terminal-specific , one of the methods to get urxvt256 to load the correct colors in terminal vim is to include the colors in my .Xresources and source it with xrdb, so that is what I did. The terminal accepts the first 16 colors, but the commands to change the colors beyond 16 are not heeded. I checked the palette before and after sourcing the bash script provided for the color corrections, and the changes that it applies are definitely still needed to get the correct color scheme in terminal vim.
The workaround in urxvt256 right now for me is to source the bash script in my .bashrc right now, but I thought I'd report that the method with .Xresources you mention isn't working with me. I'm on Debian Sid if that makes any difference.
Do you have any idea if there's something I'm missing for the Xresources method to work, or is it something on urxvt's end? I include my .Xresources just in case it helps
1 !URxvt.termName: rxvt-unicode-256color
2 URxvt.font: xft:Inconsolata-g:size=11:hinting=true:antialias=true
3 URxvt.letterSpace: -1
4 URxvt.loginShell: true
5 URxvt.scrollTtyKeypress: true.
6 URxvt.scrollTtyOutput: false
7 URxvt.scrollWithBuffer: false
8 URxvt.scrollBar: false
9 URxvt.fading: 30
10 URxvt.internalBorder: 0
11 URxvt.externalBorder: 0
12 URxvt.url-launcher: /usr/bin/firefox
13 URxvt.depth: 32
14 URxvt.intensityStyles: false
15
16 rofi.color-enabled: true
17 rofi.color-window: #000, #000, #000
18 rofi.color-normal: #111, #819396, #222, #008ed4, #ffffff
19 rofi.color-active: #002b37, #008ed4, #003643, #008ed4, #66c6ff
20 rofi.color-urgent: #002b37, #da4281, #003643, #008ed4, #890661
21 rofi.fake-transparency: true
22 rofi.lines: 3
23 rofi.bw: 0
24 rofi.opacity: "10"
25 rofi.hide-scrollbar: true
26 rofi.width: 30
27 rofi.terminal: urxvt
28 rofi.run-command: {cmd}
29 rofi.run-shell-command: {terminal} -e {cmd}
... Commented out Gruvbox Color Table for reference
78 #define dark0_hard #1d2021
79 #define dark0 #282828
80 #define dark0_soft #32302f
81 #define dark1 #3c3836
82 #define dark2 #504945
83 #define dark3 #665c54
84 #define dark4 #7c6f64
85 #define gray #928374
86 #define light0_hard #f9f5d7
87 #define light0 #fbf1c7
88 #define light0_soft #f2e5bc
89 #define light1 #ebdbb2
90 #define light2 #d5c4a1
91 #define light3 #bdae93
92 #define light4 #a89984
93 #define bright_red #fb4934
94 #define bright_green #b8bb26
95 #define bright_yellow #fabd2f
96 #define bright_blue #83a598
97 #define bright_purple #d3869b
98 #define bright_aqua #8ec07c
99 #define bright_orange #fe8019
100 #define neutral_red #cc241d
101 #define neutral_green #98971a
102 #define neutral_yellow #d79921
103 #define neutral_blue #458588
104 #define neutral_purple #b16286
105 #define neutral_aqua #689d6a
106 #define neutral_orange #d65d0e
107 #define faded_red #9d0006
108 #define faded_green #79740e
109 #define faded_yellow #b57614
110 #define faded_blue #076678
111 #define faded_purple #8f3f71
112 #define faded_aqua #427b58
113 #define faded_orange #af3a03
114
115 *background: light0
116 *foreground: dark0
117
118 *color0: light0
119 *color1: neutral_red
120 *color2: neutral_green
121 *color3: neutral_yellow
122 *color4: neutral_blue
123 *color5: neutral_purple
124 *color6: neutral_aqua
125 *color7: dark4
126 *color8: gray
127 *color9: faded_red
128 *color10: faded_green
129 *color11: faded_yellow
130 *color12: faded_blue
131 *color13: faded_purple
132 *color14: faded_aqua
133 *color15: dark1
134
135 URxvt.color234: dark0_hard
136 URxvt.color235: dark0
137 URxvt.color236: dark0_soft
138 URxvt.color237: dark1
139 URxvt.color239: dark2
140 URxvt.color241: dark3
141 URxvt.color243: dark4
142
143 URxvt.color244: gray
144 URxvt.color245: gray
145
146 URxvt.color230: light0_hard
147 URxvt.color229: light0
148 URxvt.color228: light0_soft
149 URxvt.color223: light1
150 URxvt.color250: light2
151 URxvt.color248: light3
152 URxvt.color246: light4
153
154 URxvt.color167: bright_red
155 URxvt.color142: bright_green
156 URxvt.color214: bright_yellow
157 URxvt.color109: bright_blue
158 URxvt.color175: bright_purple
159 URxvt.color108: bright_aqua
160 URxvt.color208: bright_orange
161
162 URxvt.color88: faded_red
163 URxvt.color100: faded_green
164 URxvt.color136: faded_yellow
165 URxvt.color24: faded_blue
166 URxvt.color96: faded_purple
167 URxvt.color66: faded_aqua
168 URxvt.color130: faded_orange
Kvantum is a SVG-style generator for QT5+. Would be nice to have gruvbox for kvantum.
hterm doesn't have a lot of complexity to its config, but you have to put colors in an array in the right order, which can be a PITA.
Here's what I did for the base light colored gruvbox theme:
[
"#cc241d",
"#98971a",
"#d79921",
"#458588",
"#b16286",
"#689d6a",
"#7c6f64",
"#928374",
"#9d0006",
"#79740e",
"#b57614",
"#076678",
"#8f3f71",
"#427b58",
"#3c3836",
]
It was fine to write this all out by hand for one of these, but I wasn't sure if there's some way I could potentially parse color.table
sensibly to generate these?
I don't want to write a ton of this by hand when I only use one theme myself.
(Also, as I'm sure others have said before, thanks for making gruvbox!)
iTerm2 build 3 has a different background color. I am using https://github.com/morhetz/gruvbox-contrib/blob/master/iterm2/gruvbox-dark.itermcolors for the iterm theme
Look at the following screenshot. Background colors are different
Using Tmux and two seperate panes
Is that expected? Btw, I am using the fish shell. At .config/fish/config.fish
. I have:
set -l GRUVBOX_SCRIPT ~/.vim/bundle/gruvbox/gruvbox_256palette.sh
if test -f $GRUVBOX_SCRIPT
bash $GRUVBOX_SCRIPT
end
Palette file that can be used with GIMP.
https://docs.gimp.org/2.10/en/gimp-concepts-palettes.html
https://github.com/GNOME/gimp/tree/master/data/palettes
Palette file that can be used by LibreOffice.
https://wiki.documentfoundation.org/Videos/Create_color_palette
konsole-gruvbox package is now available on AUR for Arch Linux users!
This supports the complete Konsole colors (Base, Bright, Faint)
Please add this info under README, if possible.
I'm not exactly sure what should be happening, cause it's no longer happening. lol
Before I used to have the gruvbox-dark.xresources
file inside my .Xresources
file i.e. I copied the contents of that file over to the config file, and now it doesn't work.
I also have the gruvbox-urxvt256.xresources
, which also doesn't work as far as I an see. I noticed because when I used the gruvbox_256palette.sh
the colors started displaying correctly. However my terminal isn't themed as Gruvbox, only Vim which knows where to point it's colors.
So what's the problem? I imagine it's something to do with my config. FYI I'm on Arch using urxvt with the rxvt-unicode-multi_display-256xresources
AUR package.
@morhetz It seems that on the color.table
file there are no 256-color version of the neutral colors. Is this on purpose or you just haven't gotten around to using these?
I'm improving the Gruvbox theme for Emacs but without these values I cannot continue. :/
Thanks! :)
Can i contribute to colors on MiXplorer theme on android?
Gruvbox is my favorite colorscheme on vim, I'd really love to see a theme for Gedit.
Hey iยดve create a small css file that lets you add the gruv box thema to your website.
May be you want to check it out or even add it here.
@https://github.com/TheZombie1999/Gruvbox_Css_ColorPalette
I'm thinking instead of a submodule it's just a link to my theme.
Otherwise we're going to have to keep updating the submodule over and over.
Just in the readme add a link. Is that OK?
The Xresources configurations do not explicitly set the cursor color (cursorColor
). This is unlike other configurations (like st for example) that do set the cursor color).
cursorColor (class CursorColor)
Specifies the color to use for the text cursor. The default is ``black.''
This leads to the incorrect cursor color being used (especially if -merge
is used for xrdb
).
I've been using fish shell in ubuntu 20.04 wsl and I've been looking to add the gruvbox theme, and I can't find any way to do so, please help me out here as I'm a newbie to changing config files and stuff.
I made a Gruvbox Awesome and Vimperator theme. How should those be added to this repo?
Thanks.
shell
{
var
{
isw11=sys.is11
}
set
{
theme
{
name = "modern"
background
{
color = #282828
opacity = 75
effect = 2
}
item
{
opacity = 90
prefix = 1
text
{
normal = #E5D8B3
select = #F9BC41
normal-disabled = #928374
select-disabled = #282828
}
back
{
select = #3C3836
select-disabled = #3C3836
}
}
border
{
enabled = false
size = 1
color = #F9BC41
opacity = 100
radius = 2
}
shadow
{
enabled = true
size = 5
opacity = 5
color = #11111b
}
separator
{
size = 1
color = #928374
}
symbol
{
normal = #E5D8B3
select = #83a598
normal-disabled = #8FBF7F
select-disabled = #F04B3C
}
image
{
enabled = true
color = [ #8FBF7F, #F04B3C, #F9BC41 ]
align = 2
// align: 0 = checked, 1 = image, 2 = both
}
}
exclude.where = !process.is_explorer
showdelay=200
}
images import 'imports/images.nss'
static
{
import 'imports/static.nss'
item(where=this.title.length > 25 menu=title.more_options)
}
dynamic
{
menu(mode="multiple" title="Pin/Unpin" image=icon.pin) { }
menu(mode="multiple" title=title.more_options image=icon.more_options) { }
import 'imports/file-manage.nss'
import 'imports/develop.nss'
import 'imports/goto.nss'
menu(type="taskbar" vis=key.shift() pos=0 title=app.name image=\uE249)
{
item(title="config" image=\uE10A cmd='"@app.cfg"')
item(title="manager" image=\uE0F3 admin cmd='"@app.exe"')
item(title="directory" image=\uE0E8 cmd='"@app.dir"')
item(title="version\t"[email protected] vis=label col=1)
item(title="docs" image=\uE1C4 cmd='https://nilesoft.org/docs')
item(title="donate" image=\uE1A7 cmd='https://nilesoft.org/donate')
}
import if(isw11, 'imports/taskbar.nss')
}
}
It has close to 6,000 downloads and 7 stars: https://atom.io/themes/gruvbox-syntax
There is a light version available but a dark variant would be really nice for the guys on the dark side!
Please see here
@morhetz just wanna ask if this repo is dead?
there is so much cool PR open .....
It there a way to set hard
contrast for iterm2 version of this nice colorscheme?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.