title: Change the color of the background of a table cell based on the value using CSS/HTML/Python/SASS (but no JS)? No need to be dynamically
body: <p>I have a local HTML file with a table. A python script is updating the HTML using some input,so when I open it via browser,I see it,and when I manually(not automatic) press refresh, the new value appears,and my goal is to based on that update the color of the cell. Something like if the value is,say</p>
  
  <pre><code>&lt;td id="cell_1"&gt;Blue&lt;/td&gt;
  </code></pre>
  
  <p>The color will be blue:</p>
  
  <pre><code>#cell_1 {
      background-color: blue;
  }
  </code></pre>
  
  <p>But if the value is</p>
  
  <pre><code>&lt;td id="cell_1"&gt;Green&lt;/td&gt;
  </code></pre>
  
  <p>The color will be</p>
  
  <pre><code>#cell_1 {
      background-color: green;
  }
  </code></pre>
  
  <p>I know that this is possible using JS,but I'd prefer something using Python or SASS. I'm using Beautiful Soup to update the HTML,maybe there is a similar library to CSS? Thanks in advance</p>