# Expanding palette that copies hex

> Five color swatches widen as you pass over them; click one to copy its hex code and a drop of paint falls below.

- Category: [Microinteractions](https://library.aimran.es/components/microinteractions)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-mi27-swatch-copy
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Design systems and brand pages often list colors as static squares. This palette makes them tactile: each swatch widens with a spring when hovered or focused, its name turns horizontal and the hex code appears. Clicking copies the code, the label flips to Copied, and a drop of that color falls from the swatch and splashes underneath.

Edit the palette by changing the background and ink variables of each button; the ink keeps the text readable on light and dark swatches. Arrow keys move between colors. Use it in style guides, brand kits or a theme picker.

## Code

### HTML

```html
<div class="uvq15-swt"><p class="hd"><b>Autumn palette</b><small>Click a color to copy it</small></p><div class="row"><button type="button" class="sw" style="--c:#C2410C;--ink:#fff7ed"><b>Clay</b><span class="lb"><code>#C2410C</code><span class="ok">Copied</span></span></button><button type="button" class="sw" style="--c:#84A98C;--ink:#10231a"><b>Sage</b><span class="lb"><code>#84A98C</code><span class="ok">Copied</span></span></button><button type="button" class="sw" style="--c:#E9D8A6;--ink:#3d2f12"><b>Sand</b><span class="lb"><code>#E9D8A6</code><span class="ok">Copied</span></span></button><button type="button" class="sw" style="--c:#1D3557;--ink:#e0ecff"><b>Ink</b><span class="lb"><code>#1D3557</code><span class="ok">Copied</span></span></button><button type="button" class="sw" style="--c:#F28482;--ink:#3b0a0a"><b>Coral</b><span class="lb"><code>#F28482</code><span class="ok">Copied</span></span></button></div><p class="sr" aria-live="polite"></p></div>
```

### CSS

```css
.uvq15-swt {
  --c1: #111827;
  --c2: #ffffff;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq15-swt {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  width: 20em;
  padding-bottom: 2.6em;
}

.uvq15-swt .hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  margin: 0 0 .7em;
}

.uvq15-swt .hd small {
  font-size: .7em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq15-swt .row {
  position: relative;
  display: flex;
  gap: .3em;
  height: 9em;
}

.uvq15-swt .sw {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: .7em .6em;
  border-radius: .9em;
  color: var(--ink);
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  overflow: hidden;
  transition: flex calc(0.5s / var(--k)) cubic-bezier(.22,1,.36,1),transform .15s cubic-bezier(.25,.1,.25,1);
}

.uvq15-swt .sw:hover,.uvq15-swt .sw:focus-visible {
  flex: 3.4;
}

.uvq15-swt .row:not(:hover):not(:focus-within) .sw:first-child {
  flex: 3.4;
}

.uvq15-swt .sw:active {
  transform: scale(.97);
}

.uvq15-swt .sw:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.uvq15-swt .sw b {
  font-size: .85em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq15-swt .sw:hover b,.uvq15-swt .sw:focus-visible b,.uvq15-swt .row:not(:hover):not(:focus-within) .sw:first-child b {
  writing-mode: horizontal-tb;
  transform: none;
}

.uvq15-swt .lb {
  display: grid;
  font-size: .72em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
  perspective: 20em;
}

.uvq15-swt .sw:hover .lb,.uvq15-swt .sw:focus-visible .lb,.uvq15-swt .sw.cp .lb,.uvq15-swt .row:not(:hover):not(:focus-within) .sw:first-child .lb {
  opacity: 1;
}

.uvq15-swt .lb>* {
  grid-area: 1/1;
  font: 700 1em ui-monospace,"SF Mono",Menlo,monospace;
  backface-visibility: hidden;
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq15-swt .ok {
  transform: rotateX(-180deg);
}

.uvq15-swt .sw.cp code {
  transform: rotateX(180deg);
}

.uvq15-swt .sw.cp .ok {
  transform: none;
}

.uvq15-swt .dp {
  position: absolute;
  top: calc(100% - .4em);
  width: .9em;
  height: 1.1em;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  background: var(--c);
  pointer-events: none;
  animation: uvq15-swt-d calc(0.9s / var(--k)) cubic-bezier(.5,0,.7,.4) forwards;
}

@keyframes uvq15-swt-d {
  0% {
    transform: translate(-50%,0) scale(.3,.5);
  }
  25% {
    transform: translate(-50%,.2em) scale(.7,1.2);
  }
  70% {
    transform: translate(-50%,1.9em) scale(.65,1.1);
  }
  82% {
    transform: translate(-50%,2.1em) scale(2,.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%,2.1em) scale(2.6,.2);
  }
}

.uvq15-swt .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion:reduce) {
  .uvq15-swt,.uvq15-swt *,.uvq15-swt *::before,.uvq15-swt *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq15-swt").forEach(el => {
  const k=parseFloat(getComputedStyle(el).getPropertyValue("--k"))||1,rm=matchMedia("(prefers-reduced-motion:reduce)").matches;const row=el.querySelector(".row"),sws=[...el.querySelectorAll(".sw")],sr=el.querySelector(".sr"),tms=new Map();
const drip=b=>{if(rm)return;const d=document.createElement("i");d.className="dp";d.style.setProperty("--c",b.style.getPropertyValue("--c"));d.style.left=(b.offsetLeft+b.offsetWidth/2)+"px";row.appendChild(d);d.addEventListener("animationend",()=>d.remove())};
sws.forEach((b,i)=>{b.addEventListener("click",()=>{const h=b.querySelector("code").textContent;if(navigator.clipboard)navigator.clipboard.writeText(h).catch(()=>{});b.classList.remove("cp");void b.offsetWidth;b.classList.add("cp");clearTimeout(tms.get(b));tms.set(b,setTimeout(()=>b.classList.remove("cp"),1400/k));sr.textContent="Color copied";drip(b)});
b.addEventListener("keydown",e=>{const d=e.key==="ArrowRight"?1:e.key==="ArrowLeft"?-1:0;if(d){e.preventDefault();sws[(i+d+sws.length)%sws.length].focus()}})});return()=>tms.forEach(t=>clearTimeout(t))
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq15-swt {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  width: 20em;
  padding-bottom: 2.6em;
}

.uvq15-swt .hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  margin: 0 0 .7em;
}

.uvq15-swt .hd small {
  font-size: .7em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq15-swt .row {
  position: relative;
  display: flex;
  gap: .3em;
  height: 9em;
}

.uvq15-swt .sw {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: .7em .6em;
  border-radius: .9em;
  color: var(--ink);
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  overflow: hidden;
  transition: flex calc(0.5s / var(--k)) cubic-bezier(.22,1,.36,1),transform .15s cubic-bezier(.25,.1,.25,1);
}

.uvq15-swt .sw:hover,.uvq15-swt .sw:focus-visible {
  flex: 3.4;
}

.uvq15-swt .row:not(:hover):not(:focus-within) .sw:first-child {
  flex: 3.4;
}

.uvq15-swt .sw:active {
  transform: scale(.97);
}

.uvq15-swt .sw:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.uvq15-swt .sw b {
  font-size: .85em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq15-swt .sw:hover b,.uvq15-swt .sw:focus-visible b,.uvq15-swt .row:not(:hover):not(:focus-within) .sw:first-child b {
  writing-mode: horizontal-tb;
  transform: none;
}

.uvq15-swt .lb {
  display: grid;
  font-size: .72em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
  perspective: 20em;
}

.uvq15-swt .sw:hover .lb,.uvq15-swt .sw:focus-visible .lb,.uvq15-swt .sw.cp .lb,.uvq15-swt .row:not(:hover):not(:focus-within) .sw:first-child .lb {
  opacity: 1;
}

.uvq15-swt .lb>* {
  grid-area: 1/1;
  font: 700 1em ui-monospace,"SF Mono",Menlo,monospace;
  backface-visibility: hidden;
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq15-swt .ok {
  transform: rotateX(-180deg);
}

.uvq15-swt .sw.cp code {
  transform: rotateX(180deg);
}

.uvq15-swt .sw.cp .ok {
  transform: none;
}

.uvq15-swt .dp {
  position: absolute;
  top: calc(100% - .4em);
  width: .9em;
  height: 1.1em;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  background: var(--c);
  pointer-events: none;
  animation: uvq15-swt-d calc(0.9s / var(--k)) cubic-bezier(.5,0,.7,.4) forwards;
}

@keyframes uvq15-swt-d {
  0% {
    transform: translate(-50%,0) scale(.3,.5);
  }
  25% {
    transform: translate(-50%,.2em) scale(.7,1.2);
  }
  70% {
    transform: translate(-50%,1.9em) scale(.65,1.1);
  }
  82% {
    transform: translate(-50%,2.1em) scale(2,.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%,2.1em) scale(2.6,.2);
  }
}

.uvq15-swt .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion:reduce) {
  .uvq15-swt,.uvq15-swt *,.uvq15-swt *::before,.uvq15-swt *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const k=parseFloat(getComputedStyle(el).getPropertyValue("--k"))||1,rm=matchMedia("(prefers-reduced-motion:reduce)").matches;const row=el.querySelector(".row"),sws=[...el.querySelectorAll(".sw")],sr=el.querySelector(".sr"),tms=new Map();
const drip=b=>{if(rm)return;const d=document.createElement("i");d.className="dp";d.style.setProperty("--c",b.style.getPropertyValue("--c"));d.style.left=(b.offsetLeft+b.offsetWidth/2)+"px";row.appendChild(d);d.addEventListener("animationend",()=>d.remove())};
sws.forEach((b,i)=>{b.addEventListener("click",()=>{const h=b.querySelector("code").textContent;if(navigator.clipboard)navigator.clipboard.writeText(h).catch(()=>{});b.classList.remove("cp");void b.offsetWidth;b.classList.add("cp");clearTimeout(tms.get(b));tms.set(b,setTimeout(()=>b.classList.remove("cp"),1400/k));sr.textContent="Color copied";drip(b)});
b.addEventListener("keydown",e=>{const d=e.key==="ArrowRight"?1:e.key==="ArrowLeft"?-1:0;if(d){e.preventDefault();sws[(i+d+sws.length)%sws.length].focus()}})});return()=>tms.forEach(t=>clearTimeout(t))
}

export default function Mi27SwatchCopy() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#111827",
          "--c2": "#ffffff",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq15-swt"><p className="hd"><b>Autumn palette</b><small>Click a color to copy it</small></p><div className="row"><button type="button" className="sw" style={{ "--c": "#C2410C", "--ink": "#fff7ed" } as CSSProperties}><b>Clay</b><span className="lb"><code>#C2410C</code><span className="ok">Copied</span></span></button><button type="button" className="sw" style={{ "--c": "#84A98C", "--ink": "#10231a" } as CSSProperties}><b>Sage</b><span className="lb"><code>#84A98C</code><span className="ok">Copied</span></span></button><button type="button" className="sw" style={{ "--c": "#E9D8A6", "--ink": "#3d2f12" } as CSSProperties}><b>Sand</b><span className="lb"><code>#E9D8A6</code><span className="ok">Copied</span></span></button><button type="button" className="sw" style={{ "--c": "#1D3557", "--ink": "#e0ecff" } as CSSProperties}><b>Ink</b><span className="lb"><code>#1D3557</code><span className="ok">Copied</span></span></button><button type="button" className="sw" style={{ "--c": "#F28482", "--ink": "#3b0a0a" } as CSSProperties}><b>Coral</b><span className="lb"><code>#F28482</code><span className="ok">Copied</span></span></button></div><p className="sr" aria-live="polite"></p></div>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Expanding palette that copies hex” block (Microinteractions) from AIMRAN Library to my project.

## What it is
Five color swatches widen as you pass over them; click one to copy its hex code and a drop of paint falls below.

## Chosen settings
- Main color: #111827
- Secondary color: #ffffff
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Paleta de otoño"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq15-swt {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  width: 20em;
  padding-bottom: 2.6em;
}

.uvq15-swt .hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  margin: 0 0 .7em;
}

.uvq15-swt .hd small {
  font-size: .7em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq15-swt .row {
  position: relative;
  display: flex;
  gap: .3em;
  height: 9em;
}

.uvq15-swt .sw {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: .7em .6em;
  border-radius: .9em;
  color: var(--ink);
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  overflow: hidden;
  transition: flex calc(0.5s / var(--k)) cubic-bezier(.22,1,.36,1),transform .15s cubic-bezier(.25,.1,.25,1);
}

.uvq15-swt .sw:hover,.uvq15-swt .sw:focus-visible {
  flex: 3.4;
}

.uvq15-swt .row:not(:hover):not(:focus-within) .sw:first-child {
  flex: 3.4;
}

.uvq15-swt .sw:active {
  transform: scale(.97);
}

.uvq15-swt .sw:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.uvq15-swt .sw b {
  font-size: .85em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq15-swt .sw:hover b,.uvq15-swt .sw:focus-visible b,.uvq15-swt .row:not(:hover):not(:focus-within) .sw:first-child b {
  writing-mode: horizontal-tb;
  transform: none;
}

.uvq15-swt .lb {
  display: grid;
  font-size: .72em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
  perspective: 20em;
}

.uvq15-swt .sw:hover .lb,.uvq15-swt .sw:focus-visible .lb,.uvq15-swt .sw.cp .lb,.uvq15-swt .row:not(:hover):not(:focus-within) .sw:first-child .lb {
  opacity: 1;
}

.uvq15-swt .lb>* {
  grid-area: 1/1;
  font: 700 1em ui-monospace,"SF Mono",Menlo,monospace;
  backface-visibility: hidden;
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq15-swt .ok {
  transform: rotateX(-180deg);
}

.uvq15-swt .sw.cp code {
  transform: rotateX(180deg);
}

.uvq15-swt .sw.cp .ok {
  transform: none;
}

.uvq15-swt .dp {
  position: absolute;
  top: calc(100% - .4em);
  width: .9em;
  height: 1.1em;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  background: var(--c);
  pointer-events: none;
  animation: uvq15-swt-d calc(0.9s / var(--k)) cubic-bezier(.5,0,.7,.4) forwards;
}

@keyframes uvq15-swt-d {
  0% {
    transform: translate(-50%,0) scale(.3,.5);
  }
  25% {
    transform: translate(-50%,.2em) scale(.7,1.2);
  }
  70% {
    transform: translate(-50%,1.9em) scale(.65,1.1);
  }
  82% {
    transform: translate(-50%,2.1em) scale(2,.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%,2.1em) scale(2.6,.2);
  }
}

.uvq15-swt .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion:reduce) {
  .uvq15-swt,.uvq15-swt *,.uvq15-swt *::before,.uvq15-swt *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const k=parseFloat(getComputedStyle(el).getPropertyValue("--k"))||1,rm=matchMedia("(prefers-reduced-motion:reduce)").matches;const row=el.querySelector(".row"),sws=[...el.querySelectorAll(".sw")],sr=el.querySelector(".sr"),tms=new Map();
const drip=b=>{if(rm)return;const d=document.createElement("i");d.className="dp";d.style.setProperty("--c",b.style.getPropertyValue("--c"));d.style.left=(b.offsetLeft+b.offsetWidth/2)+"px";row.appendChild(d);d.addEventListener("animationend",()=>d.remove())};
sws.forEach((b,i)=>{b.addEventListener("click",()=>{const h=b.querySelector("code").textContent;if(navigator.clipboard)navigator.clipboard.writeText(h).catch(()=>{});b.classList.remove("cp");void b.offsetWidth;b.classList.add("cp");clearTimeout(tms.get(b));tms.set(b,setTimeout(()=>b.classList.remove("cp"),1400/k));sr.textContent="Color copied";drip(b)});
b.addEventListener("keydown",e=>{const d=e.key==="ArrowRight"?1:e.key==="ArrowLeft"?-1:0;if(d){e.preventDefault();sws[(i+d+sws.length)%sws.length].focus()}})});return()=>tms.forEach(t=>clearTimeout(t))
}

export default function Mi27SwatchCopy() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#111827",
          "--c2": "#ffffff",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq15-swt"><p className="hd"><b>Autumn palette</b><small>Click a color to copy it</small></p><div className="row"><button type="button" className="sw" style={{ "--c": "#C2410C", "--ink": "#fff7ed" } as CSSProperties}><b>Clay</b><span className="lb"><code>#C2410C</code><span className="ok">Copied</span></span></button><button type="button" className="sw" style={{ "--c": "#84A98C", "--ink": "#10231a" } as CSSProperties}><b>Sage</b><span className="lb"><code>#84A98C</code><span className="ok">Copied</span></span></button><button type="button" className="sw" style={{ "--c": "#E9D8A6", "--ink": "#3d2f12" } as CSSProperties}><b>Sand</b><span className="lb"><code>#E9D8A6</code><span className="ok">Copied</span></span></button><button type="button" className="sw" style={{ "--c": "#1D3557", "--ink": "#e0ecff" } as CSSProperties}><b>Ink</b><span className="lb"><code>#1D3557</code><span className="ok">Copied</span></span></button><button type="button" className="sw" style={{ "--c": "#F28482", "--ink": "#3b0a0a" } as CSSProperties}><b>Coral</b><span className="lb"><code>#F28482</code><span className="ok">Copied</span></span></button></div><p className="sr" aria-live="polite"></p></div>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
