Coder Social home page Coder Social logo

rudde / dark-facebook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dtinth/dark-facebook

0.0 2.0 0.0 3.71 MB

A dark theme for Facebook. Available as a Stylish user skin and a custom theme in Social Fixer for Facebook.

Home Page: http://dtinth.github.com/dark-facebook/

Makefile 1.88% JavaScript 36.45% HTML 0.24% Ruby 0.66% Shell 0.22% CSS 60.54%

dark-facebook's Introduction

dark-facebook 2 Build Status

dark-facebook is a dark theme for facebook that you can install in your browser.

Click here to lend your support to: dark-facebook and make a donation at pledgie.com !

Usage

See the website

Contributing

Because facebook is a big website, your contribution would help this theme become more complete.

Please check out:

Development

  1. First, install Node.js.
  2. Download the source code.
  3. And run npm install to install the dependencies.
  4. Start the development server: node server.js
  5. Download and install the extensions for your browser:
  6. Disable the dark theme in Stylish/Social Fixer.
  7. When you go to Facebook, you should see: "Develop dark-facebook" button at the bottom-right corner of the screen. Click that button.
  8. Facebook should become dark.

History

The Second Generation

The first version suffers several serious problems:

  • It overrides the colors of every elements (making all elements transparent, and start adding colors from there).
    • First, it triggered facebook's High Contrast mode.
    • Also, a lot of unthemed components are totally unreadable.
  • All code is in one file, making it easy to write at first, but soon it became extremely unmaintainable, and it's not contribution-friendly.
  • Facebook likes to change CSS classes easily.

The Next Approach

  • Separate the component styles from facebook's selectors. Since facebook likes to change CSS classes, we should not depend on them too much. Our approach is to give each and every component a name, then have a "selector definition" file that maps a selector to appropriate component.
  • Work in multiple files, making it easier to search for things.
  • Better documentation. The selector definition file should contain human-readable and descriptive information about each component: What does this component refer to on facebook, and where to find it.
  • Contribution friendly. I should invest more time in making this project as documentation-friendly as possible.
  • No Global Override. This time, we will add dark styles to facebook, component by component.

dark-facebook's People

Contributors

dtinth avatar

Watchers

 avatar  avatar

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.