Giter Club home page Giter Club logo

solarized-everything-css's Introduction

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. :)

Contents

Screenshots

GitHub

Dark

https://raw.githubusercontent.com/alphapapa/solarized-everything-css/screenshots/solarized-dark/github.png

Light

https://raw.githubusercontent.com/alphapapa/solarized-everything-css/screenshots/solarized-light/github.png

Wikipedia

Dark

https://raw.githubusercontent.com/alphapapa/solarized-everything-css/screenshots/solarized-dark/mediawiki.org.png

Light

https://raw.githubusercontent.com/alphapapa/solarized-everything-css/screenshots/solarized-light/mediawiki.org.png

Installation

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).

CSS files for each theme are in the css directory.

Files

  • theme-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 conflicts–but it still might work pretty well. It might be a lot better than adding a separate stylesheet for every site you visit…
  • theme-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.
  • theme-mediawiki-*.css For MediaWiki sites, like Wikipedia
  • theme-disqus-*.css For Disqus comments
  • theme-github-*.css For GitHub
  • theme-google-*.css For Google
  • theme-hackernews-*.css For Hacker News
  • theme-planet.emacsen.org-*.css For Planet Emacsen
  • theme-stackexchange-*.css For StackExchange sites. Not all sites are covered, but some of the main ones are. Patches welcome.
  • theme-sakai-*.css For sites hosted by sakai, a popular course management program.

Development

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 themes/*/*.styl should be theme specific colors. 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
    • theme: contains custom theme files. Each theme corresponds to a group of css files.
      • */{dark,light}.styl (in Makefile syntax: $$color.styl)
        • colors
        • Contents of {dark,light}.styl
    • styl (which loads styl/index.styl)
      • 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. Styles starting with _ will not be included in all-sites.styl

This way, the color value-name mappings are loaded first, after which those friendly names can be used in the files that actually style elements and pages.

New Themes

It’s easy to add your own themes:

  1. Copy an existing theme directory in the themes/ directory, giving it a new name.
  2. Modify it as required.
  3. Run make in the project root directory to build the CSS files.

Credits

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.

solarized-everything-css's People

Contributors

alphapapa avatar cal2195 avatar holzhaus avatar jgkamat avatar neeasade avatar non-jedi avatar realyuniquename avatar the-compiler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

solarized-everything-css's Issues

Automate screenshots

I've made some progress on generating screenshots automatically:

[see second comment]

It uses PhantomJS (which is in Debian). Call it like this:

$ phantomjs --ssl-protocol=any --web-security=false --ignore-ssl-errors=true screenshot.js \
http://www.github.com/alphapapa/solarized-everything-css \
test.png \
../css/solarized-dark/solarized-dark-github.css

Issues that remain:

  1. We may need a way to specify a URL other than the domain's front page. For example, the GitHub front page probably isn't what we'd want to display.
  2. Since so many sites are forcing HTTPS now, TLS/SSL errors can be a problem, depending on the system. These options seem to fix it, for GitHub at least.

pywal's template

Hello @alphapapa,
I find your project great and integrating it to pywal might be the ricer's bliss.

Maybe a pywal template out of one of the all-sites.css versions of solarized-everything-css is enough?

Do you have interest on coding it or can we base another repo from your code?

Cheers

Wikipedia dark has some issues

Wikipedia start page

Two elements on Wikipedia start page are left without solarized style. Also the popup list when one types search term is left unstyled. Probably not a big deal since the front page is not used that often, but maybe of interest anyway.

Conflicting styles?

When I activated all of the solarized light themes via Stylish (I'm using Chrome) the margins/spacing/alignment on Google gets messed up, pretty much making it unusable. I found that disabling the bigblow css theme sets everything back to normal.

Archlinux wiki

solarized-arch

It's a MediaWiki, but it looks like it uses a different side-menu.

Generate list of screenshots?

@jgkamat Now that the multi-theme branch is merged, I guess we should do something about the screenshots in the readme. Maybe display one or two in the main readme, like they are now, and then link to a page showing all of the screenshots? What do you think?

Wikipedia Solarized for various default skins

  • On, Preferences - Wikipedia, under appearance we can see that there are 5 default skins:
    • Vector
    • MinervaNeue
    • Modern
    • MonoBook
    • Timeless
  • Is it possible if you could provide solarized light theme for Timeless? I used the default theme that you provided and I guess that is for Vector skin (which I think is the default wikipedia skin). The provided CSS for the Timeless skin, leaves a lot of white area around (in the background) and does not solarize the background.

Sorry I am not familiar with CSS. Thanks if you could help me out. You can see that it just needs a minor tweak (notice the white background)!


Addendum: Timeless theme is the same as the Vector theme except that when zooming in the left pane (which is not that useful), gets hidden and moves to the top, while in Vector theme, the left pane also keeps zooming and occupies a lot of space!

more aggressive styles?

Hello and thank you for this project,

I found many pages resistant to the styles here, including common ones served from google and reddit. A few days ago I added more aggressive selectors to the darcula stylesheet and they vastly improved the effectiveness of the styles.

For example, these styles are at the top of the darcula css file I am using (reddit pages look outstanding with these),

html {
  background-color: #262626 !important;
}
html body,
html div,
html div * {
  background-color: #262626 !important;
  color: #909396 !important;
  text-shadow:none !important;
}
html body div * {
  border-color: #909396 !important;
  text-shadow:none !important;
}
html body div a {
  text-shadow:none !important;
  color: #ce4139 !important;
}
html body div a:visited {
  color: #b68800 !important;
}
html body input,
html body textarea {
  background-color: #2e2e2e !important;
  color: #909396 !important;
}

I recommend using 'stronger' names in the stylesheets here.

pull-request for google

/For video-cards and search button, color for light style/
g-inner-card {
background-color: #eee8d5;
}
.sbibod {
background-color: #eee8d5;
}

GitHub oddities

Just some minor stuff I noticed on GitHub:

solarized-bug-5
(when hovering issues)
solarized-bug-4
solarized-bug-3
solarized-bug-2
solarized-bug-1
solarized-pr
solarized-downloads
gh-1
gh-2
gh-pr
githubbranches

I tried to fix the "watching" and emoji menu one myself, without much luck so far (and running out of time, at least for today).

Grayscale versions?

I use darkreader with grayscale set to 100, anyone interest to make it grayscale versions of files in this repo?

Project name/organization?

@The-Compiler @jgkamat @cal2195

Hey guys,

If we're adding other themes besides Solarized, this is no longer just a Solarized project. Do we need to rename and/or reorganize the project? If so, do you have any ideas? I mentioned the possible name everything-everything-css, which is...well, unique, if a bit silly sounding. everything-css would be simpler, but seems a bit vague. anything-everything-css sort-of makes sense, but only if you already know what the idea is. Anyway, ideas are welcome. :)

bbs.archlinux.org new content indicators

the indicators on the Arch forums that tell you there's new content (comments, threads) don't function when using this style. instead, they display a solarized box, rather than the light or dark boxes they would normally display. this happens regardless of the selected FluxBB theme the user is using.
this is the way they're supposed to look:
20190401-192931
and this is how they look using the theme:
20190401-192939

Rules for site-specific files only?

Can we do something with stylus to make certain rules appear in the site-specific files only?

For example, for LWN I'd like to fix those:

lwn-bad-1
lwn-bad-5

However, that involves rules for span and a:hover - for obvious reasons, they shouldn't land in solarized-all-sites-*.css.

(Note: I'm not going to work on this in the short term - my browser can't do per-domain stylesheets yet anyways 😉)

Support non-Solarized themes?

@jgkamat @emraher

Hi there,

It's really cool that two people have now used this repo as a base to support other color themes! :)

I was thinking, it would probably be fairly easy to add support for other color themes besides Solarized so they could all be supported from a single repo and build process. That way we could all share the work keeping the site files up-to-date.

Of course, that might mean essentially starting a new repo. Maybe it should be called everything-everything-css? Haha.

Of course, there might occasionally be some minor conflicts about which colors to use. That is, all of the sites/*.styl files would have to be the same, regardless of the color theme, but the color names would be mapped to different color values depending on which color theme file was being used (we'd probably reorganize the files into themes/{solarized,darculized,dracula} directories). Most of the time this would be fine, but occasionally there might be a page element that needed tweaking to look good with a certain theme, and that would be hard or impossible to do.

But it might be worth that small sacrifice if it reduced the maintenance burden.

What do you all think? Would you be interested in this, or would you prefer to keep your variants separate?

Thanks.

Moodle

solarized-moodle

(I hope you don't mind me dumping stuff I notice here 😆 Planning to contribute a bit after my exams are done, if I'm still using this by then - really happy so far!)

BigBlow StyleSheet Conflicting with many sites in all-sites

The new BigBlow css file seems to be conflicting with many of my sites in the all-sites css file.

For example Before:
2017-10-08-163430_1029x621_scrot

After:
2017-10-08-163445_1059x788_scrot

Could the bigblow target please be excluded from the all-sites css file somehow?

(this is what caused the problems for me in the PR's I made).

Trouble getting started

I can confirm your installation section is apparently not idiot proof. I'm running Firefox and have just installed the Stylish add-on. I tried Stylish once before but gave up having not found a theme I could like. Yours looks tempting but I'm lost on how to use it. I made a git clone of your repo and then took a WAG by clicking on the S > Manage styles ... > Install from URLS ... > entered full path to my clone's styl/dark.styl with a prefix of "file://". I gave it a name of "Solarized-Everything" and then exactly nothing seemed different. :-(

I removed that attempt in the Stylish manager and retried with sites/all-sites.styl and still nothing.

Where did I go wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.