CSS has changed a lot in the last few years. Here's what actually matters.

Custom properties

They're not just variables — they're live, computed at paint time, not parse time.

:root {
  --accent: #4183c4;
}
  • Cascade normally
  • Inherit like any other property
  • Can be updated with JS via style.setProperty

Check the MDN reference for the full spec.