If both values in light-dark are the same (for example in autogenerated themes), replace the expression with the inner value.