I want to include a font of my choice in Firefox Reader View Styling.
Please let me know if Firefox uses a local CSS file for styling or it is located somewhere else?
Moreover What is the CSS File name Firefox uses for Reader View and how can I edit the same.
Thanks in Advance!
You find the CSS file for the "Firefox Reader View" under the path
cd /home/$USER/.mozilla/firefox/<PROFILE_FOLDER>/chrome/userContent.css
only if you already did set it up:
about:support
.Show Folder
.chrome
.chrome
and create a new plain-text file called userContent.css
userContent.css
according to your CSS preferences.toolkit.legacyUserProfileCustomizations.stylesheets
in about:config
, cf. Firefox 69: userChrome.css and userContent.css disabled by default.In my case it looked like the following:
cd /home/$USER/.mozilla/firefox/<PROFILE_FOLDER>/
mkdir chrome
cd ./chrome
touch userContent.css
CSS-Example:
@-moz-document url-prefix("about:reader") {
body.dark {
color: salmon !important;
background-color: black !important;
}
body.light {
color: #222 !important;
background-color: #EEE !important;
}
body.sepia {
color: #5B4636 !important;
background-color: #F4ECD8 !important;
}
body.serif {
font-family: serif !important;
}
body.sans-serif {
font-family: sans-serif !important;
}
}
See this Reference for further explanations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With