Hi, I created a test website on DigitalOcean to test at: http://casperblue.devops10.com/
The purpose was to change the Casper Theme to a Dark Blue color using Code Injection before I made the changes permanent in the source “screen.css” code.
I may have found the issue: Dark mode using @media tag and rewrites a lot of colors…Also, line 2834 does not seem right? comment below…
/*-------------- 12. Dark Mode ------------ */ @media (prefers-color-scheme: dark) {
body {
color: rgba(255, 255, 255, 0.75);
background: var(–darkmode);
}
img {
opacity: 0.9;
}
.site-header-background:before {
background: rgba(0,0,0,0.6);
}
{
background: var(--darkmode); //line 2834 does not seem right? whats being defined here?
}
.post-card,
.post-card:hover {
border-bottom-color: color(var(--darkmode) l(+8%));
}
It’s a lightness adjustment for the current color. 0% means black and 100% means white and it’s making current darkgrey color slightly darker. Then it’s used with postcss-color-function plugin to generate the color. Casper/gulpfile.js at main · TryGhost/Casper · GitHub