-
Notifications
You must be signed in to change notification settings - Fork 2
Discussion #1
Comments
I think GitHub's frameworks is a combination of primer plus whatever magical styles they add while compressing the css. |
I just had a great idea (I think): Create a script that pull the latest stylesheets from GitHub, transform colors (eg |
Above idea would of course mean we need a build step, but if we get it automated like that, I'm willing to accept it 😆 |
That is essentially what I did in the GitHub-Dark's working branch... in the The resulting file is about the same size as what we have now. |
Hi, I don't mean to intrude, but I stumbled upon your project, and I saw you talking about build systems, CSS variables, etc. You might be interested in the system I set up with Stylus and https://github.com/alphapapa/solarized-everything-css I've found this makes re-theming GitHub very quick and easy--so much better than writing raw CSS code. And it's very flexible; you might be able to implement most of your changes just by making a |
@alphapapa hob do you create |
Yes, when I see an element on the page that needs adjusting, I use the browser inspector to figure out which selector to use, then I add it to |
Ah, well my ideal solution would not require such manual maintenance. It would go something like this:
That stylesheet would then serve as the base and we then tack on another style with customizations to make it look good, possibly through |
That's an interesting idea. It could save a lot of manual work. I'll have to keep an eye on this project. :) |
Can i see a screenshot of the current state? :D |
I don't think much has been done yet. Regardless, I'd imagine it'll look the same, just put in a more optimized and maintainable package. |
If you want to see the style from this repository, you can copy-paste the github.css style into Stylish. We haven't updated it in quite some time because we didn't finish our discussion about the alternative method, which is currently in the working branch of the GitHub-Dark repo which pretty much does what Silverwind described in this comment above. To view that file, copy-paste the style from the github-darkv2.css file (last updated in May 2016). |
Oh so its mainly a backend update? |
Yes, but a bunch of new styles have been added... like the projects page, etc since then. |
Finished my auto-generation script that pulls rules from Github based on given CSS declarations: |
Did a bit of work, you should be able to The file itself is generated through a Handlebars template, but we can switch to something more suited too, if you like. Maybe Sass with partials, but I don't have much experience with those. @Mottie if you want, you can start including new color mappings here. Let's see how far we can get with this approach. |
Oh, and I guess it might be better to move those two variables to a YAML file for easier maintenance. |
I think I'll go with SCSS partials. Gives us syntax highlighting and linting over those Handlebars templates which aren't really suited for CSS work. |
Wow, awesome work! I have a lot of learning to do as well. |
Okay, so current todo is:
I'm not totally happy with having a build step, but it's pretty much unavoidable with the autogenerated rules. |
Another interesting style: https://github.com/cquanu/github-dark |
Preliminary Work notes:
#008080
to make sure we're actually styling the tags.--tsp-18-40
(transparent#181818
and40%
).The text was updated successfully, but these errors were encountered: