Dev Helpers
← Back

Swatch comparison seam

Swatch comparison seam with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    height: 5rem;
    background: linear-gradient(
      110deg,
      #334155 49%,
      white 49% 51%,
      #b45309 51%
    );
  }
</style>
<div class="demo" aria-label="Slate and copper colour sample"></div>