A Material Dark Theme for Facebook
3 themes available : Oceanic, Darker, Palenight
Based on awesome VSCode Material Theme by Mattia Astorino
-
Install Stylus Extension for Chrome, for Firefox or for Opera
-
Install https://userstyles.org/styles/181736/material-dark-facebook
- You must have "new" Facebook enabled. (See how)
- You need to activate "Dark mode" (See link just above)
- Doesn't work on messenger currently
This theme is SUPER easy to customize ; you just need to change hue and/or saturation to get your own dark nuance. Thanks to new facebook theme and css vars, this color theme needs only 30 lines of css to work
Custom accent doesn't work everywhere for now. You can uncomment to test it but it won't apply everywhere.
If your eyes like it, I did the same on some other well-known websites with the same theme: https://userstyles.org/users/763420
The only thing changing between the three available themes are hue
and saturation
.
hue |
saturation |
|
---|---|---|
Oceanic | 200 | 19 |
Palenight | 229 | 20 |
Darker | 0 | 0 |
Thanks to hsl(a) colors, all necessary shades can be achieved in a very simple way.
:root{
--bg1: hsl(var(--hue), var(--saturation), 13%);
--bg2: hsl(var(--hue), var(--saturation), 15%);
--bg3: hsl(var(--hue), var(--saturation), 18%);
--bg4: hsl(var(--hue), var(--saturation), 21%);
--bg5: hsl(var(--hue), var(--saturation), 24%);
--bg6: hsl(var(--hue), var(--saturation), 27%);
--ov: hsla(var(--hue), var(--saturation), 70%, .18);
}
Contributions are very welcome! Feel free to suggest changes in a new issue or make a PR.