Google Classroom Dark Mode Theme

A dark mode theme for Google Classroom. For all the students that prefer night over day.

< Feedback on Google Classroom Dark Mode Theme

Review: Good - script works

§
Posted: 25/08/2021

Best Google Classroom dark mode I've seen, but I just adjusted the colours to make it even darker, matching the Youtube dark mode. Great job!

§
Posted: 08/09/2021
Edited: 08/09/2021

For anyone who is curious:
(function() {
'use strict';

var style = `
body {
background: #0f0f0f;
color: #fff;
}

/* affun */
.FeRvI .jO7h3c {
background-color: #181818 !important;
}

.uyYuVb {
background-color: #181818 !important
}

.IzVHde {
background-color: #181818 !important;
}

.uqpvt {
background-color: #000000 !important;
}

.E5f6Vd {
border-color: #242424 !important
}

.RIDjNe {
border-color: #242424 !important
}

.jO7h3c {
color: #fff;
}

.BnYgFe {
transform: rotateZ(0deg) !important;
bottom: 0% !important;
}

.WbqQDb {
margin-right: -1rem !important;
}

html {
color-scheme: light;
}

html.dark {
color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
html:not([data-theme]) {
color-scheme: dark;
}
}

/* affun end */

/* help btn */
.K2mXPb {
color: #fff;
fill: #fff;
}

/* links */
a {
color: dodgerblue;
}
a:visited {
color: mediumorchid;
}

/* top bar */
.joJglb {
background: #181818;
border-bottom: none;
}
.joJglb, .joJglb.kLHn3 {
box-shadow: 0px 0px 6px 4px rgba(28, 28, 28, .4);
}

/* google apps */
.gb_qa svg, .gb_C[aria-expanded="true"] .gb_Ve {
fill: #fff;
}

/* icons */
.IqJTee, .ViCi4, .xSP5ic, .cjq2Db {
color: #fff;
}

/* classroom elems */
.Aopndd {
background: #181818;
border-color: #242424;
}
.SZ0kZe {
border-top: none !important;
}
.apFsO.onkcGd,
.apFsO.onkcGd:visited {
color: #fff;
}
.oBSRLe {
color: #fff;
}
.JPdR6b {
background: #181818;
box-shadow: 0px 0px 2px 1px rgba(28, 28, 28, .4);
}

/* nav menu */
.asQXV {
color: #fff;
}
.dDKhVc, .iLjzDc {
color: #afafaf;
}
.kCtYwe {
border-color: #242424 !important;
}
.ETRkCe {
background-color: #181818 !important;
}
.DShyMc-AaTFfe .Xi8cpb.qs41qe .LlcfK, .bFjUmb-Ysl7Fe, .VUoKZ {
background-color: #242424 !important;
}
.Xi8cpb:hover .LlcfK {
background-color: rgba(76, 76, 76, .5) !important;
}

/* calendar */
.Evt7cb, .Evt7cb:visited, .fKz7Od .TpQm9d {
color: #fff !important;
}
.BOW64 {
border-color: #242424 !important;
}
.wQuPk .JsqLM.N4XV7d {
color: #afafaf !important;
}
.ybOdnf .OA0qNb .LMgvRb[aria-selected="true"] {
background-color: rgba(76, 76, 76, .5) !important;
}
.ncFHed .MocG8c.KKjvXb {
background-color: #242424 !important;
}

/* todo page */
.Xp0OCe, .ncFHed {
background-color: #181818 !important;
}
.Xp0OCe {
border: none !important;
}
.HZ3kWc, .WOPwXe, .gJk24c, .asQXV-FGzYL {
color: #fff;
}
.MHxtic:not(:last-child), .LKqFXc {
border-color: #242424 !important;
}
.MHxtic:hover {
box-shadow: none !important;
background-color: #242424;
}

/* class page */
.d4Fe0d {
background-color: #181818 !important;
border-color: #242424 !important;
}
.EZrbnd, .A6dC2c, .O98Lj, .rpo4wf, .tLDEHd, .cSyPgb, .wZTANe .J1raN:hover, .udxSmc, .lziZub, .lziZub:visited {
color: #fff !important;
}
.sdDCme, .K6Ovqd, .T8rTjd, .Lzdwhd-BrZSOd, .onkcGd, .onkcGd:visited, .wZTANe .J1raN {
color: #ccc;
}
.VnOHwf-Tvm9db, .BEAGS:not(.RDPZE), .VnOHwf-Wvd9Cc, .CJXzee a:active,
.CJXzee a:focus, .CJXzee a:hover, .sdDCme, .K6Ovqd, .vnnr5e .snByac,
.vnnr5e .Aworge, .XpxsVb .Aworge, .UQuaGc, .wCDkmf, .ksaOtd {
color: #fff !important;
}
.MymH0d:hover .VBEdtc-Wvd9Cc, .l3F1ye:not(.RDPZE), .IMvYId, .IMvYId:visited, .nRLOzd:hover, .nRLOzd:hover *, .O98Lj, .Lzdwhd-BrZSOd {
color: #ccc !important;
}
.GWZ7yf, .hgjBDc, .vnnr5e .CIy9F, .qk0lee:focus::after {
background-color: #181818 !important;
box-shadow: none !important;
}
.vnnr5e .I9OJHe {
background-color: #181818 !important;
}
.ndcsBf.cjzpkc-Wvd9Cc {
border-color: #242424;
}
.Y5FYJe.RDPZE {
fill: #ccc;
color: #ccc;
}
.OZ6W0d:not(.RDPZE), .l3F1ye:not(.RDPZE) .TpQm9d, .wwnMtb:not(.RDPZE) {
fill: #fff !important;
color: #fff !important;
}
.ZoT1D:hover.idtp4e, .tUJKGd:not(.xp2dJ):not(.rZXyy):hover .idtp4e, .tUJKGd:not(.xp2dJ).ndcsBf .idtp4e, .V8apv, .P3W0Dd-Ysl7Fe:focus {
background-color: #242424 !important;
}
.Niache, .QTD2uf {
border-color: #181818 !important;
}
.UISY8d-Ysl7Fe:hover {
background-color: #181818 !important;
color: #ccc;
}
.eumXzf:after {
border-color: #fff !important;
}
.tUJKGd:not(:first-child), .ySjuvd .eqqrO, .s2g3Xd, .oleV8d, .ZNE4y, .PeGHgb.Q8U8uc .Ono85c+.oh9CFb, .O9YpHb, .u73Apc, .d6CWTd {
border-color: #242424 !important;
}
.lXuxY {
-webkit-box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.75);
-moz-box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.75);
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.75)
}
.BEAGS, .P02DYb, .ycbm1d {
border-color: #242424 !important;
}
.Y5sE8d:not(.RDPZE) {
background-color: #0f0f0f !important;
}
.Y5sE8d:not(.RDPZE):hover {
box-shadow: none !important;
}
.ksaOtd {
color: #1e8e3e;
}
.uO32ac {
border-color: #242424 !important;
}
.uQ3ESd {
background-color: #181818 !important;
}

/* dialog */
.iph-dialog {
background-color: #242424 !important;
}
.iph-dialog-title, .iph-dialog-content {
color: #fff !important;
}

/* join classroom */
.gKkZCe, .D3oBEe .n9IS1:before, .AeAAkf {
border-color: #242424;
}
.D3oBEe .qTs5Xc {
background-color: #181818;
}
.qTs5Xc, .poFWNe {
color: #fff;
}
.I7OXgf.ZEeHrd, .NZ9wdc, .i5sehe, .kox42c {
background-color: #0f0f0f !important;
}`;
var elem = document.createElement('style');
elem.innerText = style;
document.head.appendChild(elem);
})();

Post reply

Sign in to post a reply.