Go to file
2017-11-14 01:12:46 -05:00
css Regenerate css 2017-10-19 21:00:32 -04:00
screenshots Update GitHub screenshots 2017-04-05 09:01:49 -05:00
sites Fix color of signed commit messages 2017-11-14 01:12:46 -05:00
styl {dark,light,github}.styl: Make file list prettier 2016-03-24 01:55:59 -05:00
LICENSE Add GPL license 2017-10-22 19:58:41 +02:00
Makefile Add generic.styl to COMMON_FILES 2015-10-14 16:09:45 -05:00
README.org Update license text in README 2017-10-22 20:03:24 +02:00

Solarized…Everything?

This is a small (growing?) collection of user-stylesheets based upon the Solarized theme (repo). It uses Stylus to generate the CSS. The home of this stylesheet is at https://github.com/alphapapa/solarized-everything-css.

Wouldn't it be nice if (almost) every web site looked Solarized? I thought so. So here is a start. :)

Screenshots

GitHub

Dark

/Archives/solarized-everything-css/media/commit/1aa30df9119c7143bb2d8f6ba1e4002d41638e4a/screenshots/github-dark.png

Light

/Archives/solarized-everything-css/media/commit/1aa30df9119c7143bb2d8f6ba1e4002d41638e4a/screenshots/github-light.png

Wikipedia

Dark

/Archives/solarized-everything-css/media/commit/1aa30df9119c7143bb2d8f6ba1e4002d41638e4a/screenshots/wikipedia-dark.png

Light

/Archives/solarized-everything-css/media/commit/1aa30df9119c7143bb2d8f6ba1e4002d41638e4a/screenshots/wikipedia-light.png

Installation   noexport_1

From userstyles.org

You may install some of the stylesheets directly in your browser from userstyles.org:

Manual

Install the stylesheet of your choice according to your browser's method (e.g. using the Stylish extension in Firefox).

Files
  • solarized-all-sites-*.css These have all the sites' styles smushed into one big file. Might work pretty well for most sites. If the collection grows, it might begin to have conflictsbut it still might work pretty well. It might be a lot better than adding a separate stylesheet for every site you visit…
  • solarized-generic-*.css These are intended to be generic, suitable for many simple sites. They probably won't do much for fancy, popular sites with lots of custom CSS, but for simple, mostly unstyled sites, they might work okay.
  • solarized-mediawiki-*.css For MediaWiki sites, like Wikipedia
  • solarized-disqus-*.css For Disqus comments
  • solarized-github-*.css For GitHub
  • solarized-google-*.css For Google
  • solarized-hackernews-*.css For Hacker News
  • solarized-planet.emacsen.org-*.css For Planet Emacsen
  • solarized-stackexchange-*.css For StackExchange sites. Not all sites are covered, but some of the main ones are. Patches welcome.
  • solarized-sakai-*.css For sites hosted by sakai, a popular course management program.

Development   noexport_1

To make changes, just edit the .styl files and run make. (You need to have Stylus installed, of course.)

Basically, nearly the only things that should be in dark.styl or light.styl should be changes to the color- variables that adjust it for light or dark. Everything else should go in sites/*.styl. Colors are defined as color- variables, and mixins are used to insert common CSS properties (like color, background, etc) with !important. Most changes can be made without inserting CSS properties directly into the selectors.

I highly recommend using Emacs with stylus-mode and outline-minor-mode, but, of course, you can use whatever you like. :)

It's a good idea to avoid the use of * selectors wherever possible. They tend to have unanticipated side-effects which can take time to track down.

Require tree

Stylus can be very confusing when it comes to importing/requiring sheets into other sheets. Unfortunately, the order in which they are imported does matter, as each one seems to be parsed and executed in-order, rather than importing them all at once and then having a global namespace.

This is how the sheets require in this project:

  • Makefile

    • styl/{dark,light}.styl (in Makefile syntax: $$color.styl)

      • colors
      • Contents of {dark,light}.styl
    • styl (which loads styl/index.styl)

      • generic

        • mixins
    • sites/*.styl: The site-specific sheets, as well as generic.styl, which applies to all of them, and also builds as a separate sheet for non-specific sites. all-sites.styl puts all of the site-specific sheets into one big CSS file, which some people may prefer over setting up custom CSS for each site in their browser.

This way, the Solarized color values are loaded first, followed by the dark- or light-themed mappings of those color values to friendly names, after which those friendly names can be used in the sheets that actually style elements and pages.

Credits

  • Thanks to Florian Bruhin for contributing the Reddit and DuckDuckGo sheets, as well as several fixes and improvements.
  • Thanks to Jay Kamat for contributing the Sakai stylesheet and several fixes and improvements.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/gpl-3.0.txt.