.parent {
  --accent: seagreen;
  color: black;
}

.child {
  --accent: tomato;
  margin: 0;
  color: inherit(--accent);
}