I’d love to be proven wrong on this, but I think there’s no reliable check you could use with css.
@sp-jordan-violet usually the way to go is to use color variables from your dark and light color schemes. You can check your current values using the browser inspector. I believe you can’t add new variables that will switch depending on color scheme. But there’s quite a lot of variables to pick from and you can use them in any custom declaration. E.g
.topic-avatar {
height: unset;
align-self: stretch;
background-image: linear-gradient(
to right,
transparent -40%,
var(--secondary) 80%
),
linear-gradient(
to bottom,
var(--tertiary-300) 0%,
var(--highlight) 50%,
var(--quaternary-low) 100%
);
}
could give you a post highlight like this
![]()
