Color Swatch
Show a color with its human-readable label.
Mero violet
#B9A5FF
HTML
<div class="rl-row">
<span class="rl-swatch" aria-hidden="true"
style="display:inline-block;width:2rem;height:2rem;border-radius:0.45rem;background:#b9a5ff"></span>
<span>Mero violet <code>#B9A5FF</code></span>
</div>Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<script defer src="/mero.js"></script>