title: Is it possible to use background-aware color choices?
body: <p>The <a href="https://rich.readthedocs.io/en/latest/markup.html" rel="nofollow noreferrer"><code>rich</code></a> project allows to specify console markup, including text color. However it seems that any color choices need to be hardcoded, e.g. using red for important messages:</p>
  <pre class="lang-py prettyprint-override"><code>from rich import print
  
  print('[red bold]This is a very important notification[/]')
  </code></pre>
  <p>This looks good on a terminal with light background color (e.g. Solarized light):</p>
  <p><a href="https://i.stack.imgur.com/ZEDhB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZEDhB.png" alt="red on light background" /></a></p>
  <p>However when the user has a dark background color, it makes it difficult to read (e.g. Solarized dark):</p>
  <p><a href="https://i.stack.imgur.com/JVKCc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JVKCc.png" alt="red on dark background" /></a></p>
  <p>As the developer of a command line application using <code>rich</code>, however, I cannot assume any background color for the users' terminals and hence hardcoding specific colors doesn't seem like a good idea (I don't want to modify the background color either, since the user probably chose it for a good reason). So I was wondering whether <code>rich</code> offers background-aware color choices (e.g. via themes, so I could just specify something like <code>category='important'</code>)?</p>