(add yellow) |
(adjust colors, especially dark theme) |
||
Line 2: | Line 2: | ||
text-align: center; | text-align: center; | ||
--green-l: | --green-l: #a7f6b0; | ||
--red-l: # | --red-l: #fabfb9; | ||
--blue-l: # | --blue-l: #bfd4ff; | ||
--yellow-l: # | --yellow-l: #fff9ac; | ||
--green-d: | --green-d: #30623c; | ||
--red-d: # | --red-d: #5c312e; | ||
--blue-d: # | --blue-d: #383477; | ||
--yellow-d: # | --yellow-d: #5e5324; | ||
--green: | --green: var(--green-l); | ||
--red: var(--red-l); | --red: var(--red-l); | ||
--blue: var(--blue-l); | --blue: var(--blue-l); |
Revision as of 10:04, 14 February 2023
.colortable {
text-align: center;
--green-l: #a7f6b0;
--red-l: #fabfb9;
--blue-l: #bfd4ff;
--yellow-l: #fff9ac;
--green-d: #30623c;
--red-d: #5c312e;
--blue-d: #383477;
--yellow-d: #5e5324;
--green: var(--green-l);
--red: var(--red-l);
--blue: var(--blue-l);
--yellow: var(--blue-l);
}
@media screen and (prefers-color-scheme: dark) {
/* only timeless has a dark theme skin right now */
/* citizen is not here because it manages dark theme itself; adding it here will conflict with its light theme */
body.skin-timeless .colortable {
--green: var(--green-d);
--red: var(--red-d);
--blue: var(--blue-d);
--yellow: var(--yellow-d);
}
}
html.skin-citizen-dark .colortable {
--green: var(--green-d);
--red: var(--red-d);
--blue: var(--blue-d);
--yellow: var(--yellow-d);
}
body.skin-citizen .colortable td {
padding: 10px; /* default padding is 10px 20px 10px 0 but it looks weird with bg colors */
}
.ct-green { background-color: var(--green) }
.ct-red { background-color: var(--red) }
.ct-blue { background-color: var(--blue) }
.ct-yellow { background-color: var(--yellow) }