Dev Helpers
← Back

Use one custom property for coordinated colour

Use one custom property for coordinated colour with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    --accent: #0f766e;
    color: var(--accent);
    border: 2px solid var(--accent);
  }
</style>
<div class="demo">Use one custom property for coordinated colour</div>