Sure, there’s a couple of SCSS functions that you can use to check if you’re on a light or dark color palette.
You use them like this.
@if is-light-color-scheme() {
// CSS for light color palette
h1 {
color: green;
}
}
@if is-dark-color-scheme() {
// CSS for dark color palette
h1 {
color: red;
}
}