Skip to content

Instantly share code, notes, and snippets.

@Perlence
Last active August 15, 2021 06:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Perlence/06c5c6db3222ce74c462 to your computer and use it in GitHub Desktop.
Save Perlence/06c5c6db3222ce74c462 to your computer and use it in GitHub Desktop.
Solarized Light and Dark themes for Firefox Reader
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("about:reader") {
body.light {
color: #657b83; /* base00 */
background-color: #fdf6e3; /* base3 */
}
body.dark {
color: #839496; /* base0 */
background-color: #002b36; /* base03 */
}
a,
a:visited,
a:hover,
a:active {
color: #268bd2; /* blue */
}
*::-moz-selection {
background-color: #b58900; /* orange */
color: #fdf6e3; /* base3 */
text-shadow: none;
}
/* Override some controls and content styles based on color scheme */
body.light > .container > .header > .domain {
border-bottom-color: #657b83 !important; /* base00 */
}
body.dark > .container > .header > .domain {
border-bottom-color: #839496 !important; /* base0 */
}
body.light blockquote {
-moz-border-start: 2px solid #657b83 !important; /* base00 */
}
body.dark blockquote {
-moz-border-start: 2px solid #839496 !important; /* base0 */
}
}
@lamyergeier
Copy link

@Perlence How to use this css? Do I need to save this file somewhere? I am on Ubuntu 20.04.2

@Perlence
Copy link
Author

Perlence commented Aug 14, 2021

Hey @anishmittal2020, the way it used to work is by creating a style in Stylus and copying the code there. However, it no longer works like that because Firefox has stopped allowing the extensions to access "system" pages, one of which is "about:reader".

There may be other ways to change the built-in styles. However, I think, the style above won't work as is, because the layout of the reader has probably changed since 2015.

@lamyergeier
Copy link

So, you don't use Solarized themes for Firefox reader anymore?

@Perlence
Copy link
Author

No, I don't.

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