forced-colors

Recipe 5.2 Respect user preferences

Sample:

Code:

<style>
 button {
  border: none;
}

@media (forced-colors: active) {
   button {
    border: 1px solid transparent;
  }
}
</style>

<button>Button</button>