@property --accent {
  syntax: "<color>";
  inherits: false;
  initial-value: steelblue;
}

.box {
  margin: 0;
  padding: 1rem;
  color: white;
  background: var(--accent);
  font: 0.875rem system-ui, sans-serif;
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  to {
    --accent: tomato;
  }
}