[How To] Integrate Firefox with dark themes

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
minitux
Level 5
Level 5
Posts: 860
Joined: Tue Sep 12, 2017 10:05 am

[How To] Integrate Firefox with dark themes

Post by minitux » Wed Dec 06, 2017 3:27 am

Close Firefox, Browse the folder .mozilla in /home and follow the path ~/.mozilla/firefox/xyxyxyx.default enter in the directory xyxyxyx.default create a new folder and name it chrome (if there is already a folder with this name, rename the old one in chrome-old) and within this, create a new file named userContent.css and paste the following code

Code: Select all

@-moz-document url-prefix(about:blank) {*{background-color:#202020;}}
/*
* Use this css file to eliminate problems in Firefox
* when using dark themes that create dark on dark
* input boxes, selection menus and buttons. Put this
* in the ../firefox/default/chrome folder or your
* individual user firefox profile chrome folder.
*/
input {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
textarea {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
select {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
input[type="radio"],
input[type="checkbox"] {
border: 2px inset white ! important;
background-color: white ! important;
color: ThreeDFace ! important;
-moz-appearance: none !important;
}
*|*::-moz-radio {
background-color: white;
-moz-appearance: none !important;
}
button,
input[type="reset"],
input[type="button"],
input[type="submit"] {
border: 2px outset white;
background-color: #eeeeee;
color: black;
-moz-appearance: none !important;
}
body {
background-color: white;
color: black;
display: block;
margin: 8px;
-moz-appearance: none !important;
}
Save the file and close it and restart Firefox.

Post Reply

Return to “Tutorials”