[data-swatch]::before {
  background-color: rgba(var(--text-color) / 0.08);
}

[data-swatch="black"]:before { background-color: #000}[data-swatch="dark grey heather"]:before { background-color: #232323}[data-swatch="navy"]:before { background-color: #29335e}[data-swatch="true royal"]:before { background-color: #176cc1}

