Dark Theme UserChrome.css
Dear all,
I polished a userchrome.css file to create a dark theme for Zotero. This is the best I could do by myself.
There's things that are still not working, so if you guys want to help maybe we could finish polishing this to create a nice dark theme?
This is based on a stylish theme that was mentioned in the previous thread: https://forums.zotero.org/discussion/70647/dark-theme-for-main-zotero-window-black-background-white-text
Here's the .css:
/*:::::::::::::::::::::::::::::::::::::::::::::::::::: Zotero :::::::::::::::::::::::::::::::::::::::::::::::::::*/
#main-window[stylish-url="chrome://zotero/content/tab.xul"] #nav-bar { visibility: visible !important }
#main-window[stylish-url="chrome://zotero/content/tab.xul"] #customToolbars
#main-window[stylish-url="chrome://zotero/content/tab.xul"] #PersonalToolbar { visibility: collapse!important }
/*#PersonalToolbar {visibility: hidden !important;}*/
/*#navigator-toolbox:hover > #PersonalToolbar {visibility: visible !important;}*/
/*#main-window[stylish-url="chrome://zotero/content/tab.xul"] #BookmarkslToolbar { visibility: hidden!important; }*/
* {border: 0 !important; }
#zotero-tb, #zotero-toolbar, #navigator-toolbox { background: #323234 !important;
color: #FFFFFF !important; }
menu { color: white !important;
}
#manage-attachments-menu, #developer-menu, #layout-menu, #note-font-size-menu, #font-size-menu{ color: black !important;
}
/*NOT WORKING
#debug-output-logging-menu { color: black !important;
}
#new-item-menu { color: black !important;
}
#more-menu { color: black !important;
}
*/
#zotero-splitter{ background: #323234 !important; }
#zotero-pane{ background: #323234 !important;
color: #aaa !important; }
grippy{ opacity: .5 !important; }
#zotero-items-tree treechildren::-moz-tree-row(highlighted) { background: #323234 !important;
color: #FFFFFF !important; }
#zotero-items-tree treechildren::-moz-tree-row {
height: 30px !important;
}
#zotero-collections-tree treechildren::-moz-tree-row {
height: 30px !important;
}
#heading_wrapper {
color: #fff;
background-color: #7E7E7E !important;
}
#navigator-toolbox{ color: #FFFFFF !important; }
#zotero-collections-tree treechildren::-moz-tree-row(hover),
#zotero-items-tree treechildren::-moz-tree-row(hover) { background: #7E7E7E !important;
color: #FFFFFF !important; border: 0 !important;}
treechildren{ background: #323234 !important;
color: #FFFFFF !important; }
/*Panel with paper descriptions*/
tabpanel { background: #474749 !important;
color: #FFFFFF !important; }
tab[selected="true"]{ background: #474749 !important;
border-top: 3px solid #0a84ff !important;}
tab{ -moz-appearance: none !important;
color: #eee !important;
background: #323234 !important;
border-top: 0px solid #0a84ff !important;
border-left: 0px solid rgba(127,127,127,0.2) !important;
border-right: 1px solid #1d1d1d !important;
border-radius: 0px !important;
border-bottom-left-radius: 0px !important;
border-bottom-right-radius: 0px !important; }
tab:hover{ color: #FFFFFF !important;
background: #7E7E7E !important;
box-shadow: inset 0px 0px 0px !important;
border-radius: 0px 0px 0 0 !important; }
#item-type-menu
{
-moz-appearance: none;
color: white !important;
height: 1.5em !important;
min-height: 1.5em !important;
padding: 0 0 0 2px !important;
margin: 1px 5px 0 1px !important;
max-height: 1.5em !important;
border: 1px solid transparent;
background-color: transparent;
}
#zotero-date-field-status
{
color: #ffffff !important;
padding: 0 10px 0 1px !important;
}
/*:::::::::::::::::::::::::::::::::::::::::::::::::::: Zotero :::::::::::::::::::::::::::::::::::::::::::::::::::*/
I have a couple of questions, hopefully someone can answer:
I couldn't theme the drop-down menu boxes, therefore I just reverted the color of the menu elements in there to black.
However, the New Item, Debug Output Logging and More menus did not adopt the black text again. I need help to find how to change them to black or make the menus black and revert the color of the other menus in the drop-down to white.
I also can't seem to change the tags box nor the color of an item selection from that baby blue (or from the collections for that matter).
Hopefully more users want to build upon this.
All the best
I polished a userchrome.css file to create a dark theme for Zotero. This is the best I could do by myself.
There's things that are still not working, so if you guys want to help maybe we could finish polishing this to create a nice dark theme?
This is based on a stylish theme that was mentioned in the previous thread: https://forums.zotero.org/discussion/70647/dark-theme-for-main-zotero-window-black-background-white-text
Here's the .css:
/*:::::::::::::::::::::::::::::::::::::::::::::::::::: Zotero :::::::::::::::::::::::::::::::::::::::::::::::::::*/
#main-window[stylish-url="chrome://zotero/content/tab.xul"] #nav-bar { visibility: visible !important }
#main-window[stylish-url="chrome://zotero/content/tab.xul"] #customToolbars
#main-window[stylish-url="chrome://zotero/content/tab.xul"] #PersonalToolbar { visibility: collapse!important }
/*#PersonalToolbar {visibility: hidden !important;}*/
/*#navigator-toolbox:hover > #PersonalToolbar {visibility: visible !important;}*/
/*#main-window[stylish-url="chrome://zotero/content/tab.xul"] #BookmarkslToolbar { visibility: hidden!important; }*/
* {border: 0 !important; }
#zotero-tb, #zotero-toolbar, #navigator-toolbox { background: #323234 !important;
color: #FFFFFF !important; }
menu { color: white !important;
}
#manage-attachments-menu, #developer-menu, #layout-menu, #note-font-size-menu, #font-size-menu{ color: black !important;
}
/*NOT WORKING
#debug-output-logging-menu { color: black !important;
}
#new-item-menu { color: black !important;
}
#more-menu { color: black !important;
}
*/
#zotero-splitter{ background: #323234 !important; }
#zotero-pane{ background: #323234 !important;
color: #aaa !important; }
grippy{ opacity: .5 !important; }
#zotero-items-tree treechildren::-moz-tree-row(highlighted) { background: #323234 !important;
color: #FFFFFF !important; }
#zotero-items-tree treechildren::-moz-tree-row {
height: 30px !important;
}
#zotero-collections-tree treechildren::-moz-tree-row {
height: 30px !important;
}
#heading_wrapper {
color: #fff;
background-color: #7E7E7E !important;
}
#navigator-toolbox{ color: #FFFFFF !important; }
#zotero-collections-tree treechildren::-moz-tree-row(hover),
#zotero-items-tree treechildren::-moz-tree-row(hover) { background: #7E7E7E !important;
color: #FFFFFF !important; border: 0 !important;}
treechildren{ background: #323234 !important;
color: #FFFFFF !important; }
/*Panel with paper descriptions*/
tabpanel { background: #474749 !important;
color: #FFFFFF !important; }
tab[selected="true"]{ background: #474749 !important;
border-top: 3px solid #0a84ff !important;}
tab{ -moz-appearance: none !important;
color: #eee !important;
background: #323234 !important;
border-top: 0px solid #0a84ff !important;
border-left: 0px solid rgba(127,127,127,0.2) !important;
border-right: 1px solid #1d1d1d !important;
border-radius: 0px !important;
border-bottom-left-radius: 0px !important;
border-bottom-right-radius: 0px !important; }
tab:hover{ color: #FFFFFF !important;
background: #7E7E7E !important;
box-shadow: inset 0px 0px 0px !important;
border-radius: 0px 0px 0 0 !important; }
#item-type-menu
{
-moz-appearance: none;
color: white !important;
height: 1.5em !important;
min-height: 1.5em !important;
padding: 0 0 0 2px !important;
margin: 1px 5px 0 1px !important;
max-height: 1.5em !important;
border: 1px solid transparent;
background-color: transparent;
}
#zotero-date-field-status
{
color: #ffffff !important;
padding: 0 10px 0 1px !important;
}
/*:::::::::::::::::::::::::::::::::::::::::::::::::::: Zotero :::::::::::::::::::::::::::::::::::::::::::::::::::*/
I have a couple of questions, hopefully someone can answer:
I couldn't theme the drop-down menu boxes, therefore I just reverted the color of the menu elements in there to black.
However, the New Item, Debug Output Logging and More menus did not adopt the black text again. I need help to find how to change them to black or make the menus black and revert the color of the other menus in the drop-down to white.
I also can't seem to change the tags box nor the color of an item selection from that baby blue (or from the collections for that matter).
Hopefully more users want to build upon this.
All the best
/*:::::::::::::::::::::::::::::::::::::::::::::::::::: Zotero :::::::::::::::::::::::::::::::::::::::::::::::::::
#main-window[stylish-url="chrome://zotero/content/tab.xul"] #nav-bar { visibility: visible !important }
#main-window[stylish-url="chrome://zotero/content/tab.xul"] #customToolbars
#main-window[stylish-url="chrome://zotero/content/tab.xul"] #PersonalToolbar { visibility: collapse!important }
/*#PersonalToolbar {visibility: hidden !important;}*/
/*#navigator-toolbox:hover > #PersonalToolbar {visibility: visible !important;}*/
/*#main-window[stylish-url="chrome://zotero/content/tab.xul"] #BookmarkslToolbar { visibility: hidden!important; }*/
* {border: 0 !important; }
/*change background color and text color of zotero toolbar and menubar*/
#zotero-tb, #zotero-toolbar, #navigator-toolbox { background: #323234 !important;
color: #FFFFFF !important; }
#zotero-toolbar {border-bottom: 1px solid #1d1d1d !important;}
/*change color of menu items to white*/
menu { color: white !important; }
/*change color of menu items in drop down menus back to black*/
#manage-attachments-menu, #developer-menu, #layout-menu, #note-font-size-menu, #font-size-menu, #debug-output-menu { color: black !important; }
/*NOT WORKING
#new-item-menu { color: black !important;
}
#new-menu { color: black !important;
}*/
#zotero-splitter{ background: #323234 !important; }
#zotero-pane{ background: #323234 !important;
color: #aaa !important; }
grippy{ opacity: .5 !important; }
#heading_wrapper {
color: #fff;
background-color: #7E7E7E !important;
}
/*change background and color of collections and items panes*/
treechildren{ background: #323234 !important;
color: #FFFFFF !important; }
/*increase spacing between rows in collections and items*/
#zotero-collections-tree treechildren::-moz-tree-row { height: 30px !important; }
/*change background and color of collections when hovering*/
#zotero-collections-tree treechildren::-moz-tree-row(hover) { background: #7E7E7E !important;
color: #FFFFFF !important; border: 0 !important; }
/*increase spacing between rows in collections and items*/
#zotero-items-tree treechildren::-moz-tree-row { height: 30px !important; }
/*change background and color of items when hovering*/
#zotero-items-tree treechildren::-moz-tree-row(hover) { background: #7E7E7E !important;
color: #FFFFFF !important; border: 0 !important; }
/*change background and color of items when selecting*/
#zotero-items-tree treechildren::-moz-tree-row(selected) { background: #474749 !important;
color: #FFFFFF !important; border: 0 !important; }
#zotero-items-tree treechildren::-moz-tree-cell-text(selected) {
color: #FFFFFF !important; border: 0 !important; }
/*change background and color of columns field selector*/
#zotero-items-tree treecol, .treecol-image { -moz-appearance: none !important;
background: #474749 !important;
color: #FFFFFF !important;
border-bottom: 1px solid #1d1d1d !important;
border-right: 1px solid #1d1d1d !important; }
/*Panel with item descriptions*/
tabpanel { background: #474749 !important;
color: #FFFFFF !important; }
tab[selected="true"]{ background: #474749 !important;
border-top: 3px solid #0a84ff !important;}
tab{ -moz-appearance: none !important;
color: #eee !important;
background: #323234 !important;
border-top: 0px solid #0a84ff !important;
border-left: 0px solid rgba(127,127,127,0.2) !important;
border-right: 1px solid #1d1d1d !important;
border-radius: 0px !important;
border-bottom-left-radius: 0px !important;
border-bottom-right-radius: 0px !important; }
tab:hover{ color: #FFFFFF !important;
background: #7E7E7E !important;
box-shadow: inset 0px 0px 0px !important;
border-radius: 0px 0px 0 0 !important; }
/*define color of item type field*/
#item-type-menu
{
-moz-appearance: none;
color: white !important;
height: 1.5em !important;
min-height: 1.5em !important;
padding: 0 0 0 2px !important;
margin: 1px 5px 0 1px !important;
max-height: 1.5em !important;
border: 1px solid transparent;
background-color: transparent;
}
/*define color of date-field-status*/
#zotero-date-field-status
{
color: #ffffff !important;
padding: 0 10px 0 1px !important;
}
Anyone interested in a dark theme compatible with Windows 10 can download it here:
https://github.com/Rosmaninho/Zotero-Dark-Theme
Then start Zotero and see how it looks. If it looks bad then just delete the file.
Already uploaded it to Github.
You're welcome to change them on your side. I tried to document the file as much as possible to facilitate it for other people to play around and costumize to their heart's content.
I'm happy that at least one other person is enjoying it. :)
If you can find a way to fix that please tell me!
It's that, and the Preferences dialog. I couldn't make it darker and use white text because I had problems with the labels. So I made it as dark as possible while keeping dark text legible. But since that's not something constantly used hopefully it's okay like this.
But if you find a work-around that then please tell me. I tried my best.
https://github.com/Rosmaninho/Zotero-Dark-Theme
and here:
https://github.com/notidentical/Zotero-Material-Dark-Theme
can someone give update about the CSS changes? so the authors can fix their nice themes?
many Thanks!
You can make this (and any other theme) work in Zotero Beta 7 by setting the appropriate flag:
- Go to Edit → Settings
- Click on Advanced
- Scroll down, find and click on "Config Editor".
- search for the flag "toolkit.legacyUserProfileCustomizations.stylesheets" and set it to True.
- Restart Zotero
That should make the theme work again.