# Watercolor fill button

> Paint wicks up through the paper with a wet, uneven edge and leaves the label in white.

- Category: [Buttons](https://library.aimran.es/components/buttons)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-btn-watercolor
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Instead of a flat color sweep, this button fills like watercolor on cold press paper: an ultramarine wash rises from the bottom, an SVG turbulence filter keeps its edge wet and irregular, and a darker rim forms where the pigment collects, just like a real wash drying. A second pigment blooms in the lower corners. It suits art schools, stationery shops, illustration portfolios and slow living brands.

The main color is the main pigment and the secondary color is the bloom that mixes into it, so indigo with rose or sap green with ochre both read as paint. Speed sets how quickly the wash climbs, and the paper texture stays visible underneath.

## Code

### HTML

```html
<button class="uvq01-wtc" type="button"><svg class="fx" width="0" height="0" aria-hidden="true"><filter id="uvq01-wet" x="-20%" y="-20%" width="140%" height="140%"><feTurbulence type="fractalNoise" baseFrequency=".035 .07" numOctaves="3" seed="4" result="n"/><feDisplacementMap in="SourceGraphic" in2="n" scale="16" xChannelSelector="R" yChannelSelector="G"/></filter></svg><span class="wt" aria-hidden="true"><i></i></span><span class="t">Paint</span></button>
```

### CSS

```css
.uvq01-wtc {
  --c1: #2546b0;
  --c2: #c23b7a;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq01-wtc {
  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;
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
  user-select: none;
  padding: 1.1em 2.4em;
  border-radius: .45em;
  overflow: hidden;
  isolation: isolate;
  font-weight: 750;
  letter-spacing: .02em;
  color: var(--c1);
  background: radial-gradient(circle at 30% 40%,rgba(120,90,40,.07) 0 .6px,transparent 1.2px) 0 0/5px 5px,radial-gradient(circle at 70% 60%,rgba(120,90,40,.06) 0 .6px,transparent 1.2px) 2px 3px/7px 6px,#f7f1e3;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb,var(--c1) 30%,transparent),0 10px 22px -14px rgba(60,40,10,.5);
  transition: color calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(0.25s / var(--k)),transform calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-wtc .fx {
  position: absolute;
  width: 0;
  height: 0;
}

.uvq01-wtc .wt {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: url(#uvq01-wet);
}

.uvq01-wtc .wt i {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -20%;
  height: 150%;
  background: radial-gradient(55% 35% at 25% 88%,color-mix(in srgb,var(--c2) 80%,transparent),transparent 70%),radial-gradient(40% 30% at 80% 72%,color-mix(in srgb,var(--c2) 45%,transparent),transparent 70%),linear-gradient(0deg,var(--c1) 0 40%,color-mix(in srgb,var(--c1) 82%,transparent) 70%,color-mix(in srgb,var(--c1) 92%,#000) 84%,color-mix(in srgb,var(--c1) 35%,transparent) 89%,transparent 93%);
  opacity: .94;
  transform: translateY(102%);
  transition: transform calc(1.3s / var(--k)) cubic-bezier(.3,.7,.2,1);
}

.uvq01-wtc .t {
  position: relative;
}

.uvq01-wtc:hover,.uvq01-wtc:focus-visible {
  color: #fffaf0;
  transition: color calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(0.35s / var(--k)),transform calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-wtc:hover .wt i,.uvq01-wtc:focus-visible .wt i {
  transform: translateY(14%);
}

.uvq01-wtc:active {
  transform: scale(.97);
}

.uvq01-wtc:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

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

### React

```tsx
import type { CSSProperties } from "react";

const css = `
.uvq01-wtc {
  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;
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
  user-select: none;
  padding: 1.1em 2.4em;
  border-radius: .45em;
  overflow: hidden;
  isolation: isolate;
  font-weight: 750;
  letter-spacing: .02em;
  color: var(--c1);
  background: radial-gradient(circle at 30% 40%,rgba(120,90,40,.07) 0 .6px,transparent 1.2px) 0 0/5px 5px,radial-gradient(circle at 70% 60%,rgba(120,90,40,.06) 0 .6px,transparent 1.2px) 2px 3px/7px 6px,#f7f1e3;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb,var(--c1) 30%,transparent),0 10px 22px -14px rgba(60,40,10,.5);
  transition: color calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(0.25s / var(--k)),transform calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-wtc .fx {
  position: absolute;
  width: 0;
  height: 0;
}

.uvq01-wtc .wt {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: url(#uvq01-wet);
}

.uvq01-wtc .wt i {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -20%;
  height: 150%;
  background: radial-gradient(55% 35% at 25% 88%,color-mix(in srgb,var(--c2) 80%,transparent),transparent 70%),radial-gradient(40% 30% at 80% 72%,color-mix(in srgb,var(--c2) 45%,transparent),transparent 70%),linear-gradient(0deg,var(--c1) 0 40%,color-mix(in srgb,var(--c1) 82%,transparent) 70%,color-mix(in srgb,var(--c1) 92%,#000) 84%,color-mix(in srgb,var(--c1) 35%,transparent) 89%,transparent 93%);
  opacity: .94;
  transform: translateY(102%);
  transition: transform calc(1.3s / var(--k)) cubic-bezier(.3,.7,.2,1);
}

.uvq01-wtc .t {
  position: relative;
}

.uvq01-wtc:hover,.uvq01-wtc:focus-visible {
  color: #fffaf0;
  transition: color calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(0.35s / var(--k)),transform calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-wtc:hover .wt i,.uvq01-wtc:focus-visible .wt i {
  transform: translateY(14%);
}

.uvq01-wtc:active {
  transform: scale(.97);
}

.uvq01-wtc:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

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

export default function BtnWatercolor() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#2546b0",
          "--c2": "#c23b7a",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <button className="uvq01-wtc" type="button"><svg className="fx" width="0" height="0" aria-hidden="true"><filter id="uvq01-wet" x="-20%" y="-20%" width="140%" height="140%"><feTurbulence type="fractalNoise" baseFrequency=".035 .07" numOctaves="3" seed="4" result="n" /><feDisplacementMap in="SourceGraphic" in2="n" scale="16" xChannelSelector="R" yChannelSelector="G" /></filter></svg><span className="wt" aria-hidden="true"><i></i></span><span className="t">Paint</span></button>
      </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 “Watercolor fill button” block (Buttons) from AIMRAN Library to my project.

## What it is
Paint wicks up through the paper with a wet, uneven edge and leaves the label in white.

## Chosen settings
- Main color: #2546b0
- Secondary color: #c23b7a
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Pintar"

## 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
import type { CSSProperties } from "react";

const css = `
.uvq01-wtc {
  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;
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
  user-select: none;
  padding: 1.1em 2.4em;
  border-radius: .45em;
  overflow: hidden;
  isolation: isolate;
  font-weight: 750;
  letter-spacing: .02em;
  color: var(--c1);
  background: radial-gradient(circle at 30% 40%,rgba(120,90,40,.07) 0 .6px,transparent 1.2px) 0 0/5px 5px,radial-gradient(circle at 70% 60%,rgba(120,90,40,.06) 0 .6px,transparent 1.2px) 2px 3px/7px 6px,#f7f1e3;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb,var(--c1) 30%,transparent),0 10px 22px -14px rgba(60,40,10,.5);
  transition: color calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(0.25s / var(--k)),transform calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-wtc .fx {
  position: absolute;
  width: 0;
  height: 0;
}

.uvq01-wtc .wt {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: url(#uvq01-wet);
}

.uvq01-wtc .wt i {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -20%;
  height: 150%;
  background: radial-gradient(55% 35% at 25% 88%,color-mix(in srgb,var(--c2) 80%,transparent),transparent 70%),radial-gradient(40% 30% at 80% 72%,color-mix(in srgb,var(--c2) 45%,transparent),transparent 70%),linear-gradient(0deg,var(--c1) 0 40%,color-mix(in srgb,var(--c1) 82%,transparent) 70%,color-mix(in srgb,var(--c1) 92%,#000) 84%,color-mix(in srgb,var(--c1) 35%,transparent) 89%,transparent 93%);
  opacity: .94;
  transform: translateY(102%);
  transition: transform calc(1.3s / var(--k)) cubic-bezier(.3,.7,.2,1);
}

.uvq01-wtc .t {
  position: relative;
}

.uvq01-wtc:hover,.uvq01-wtc:focus-visible {
  color: #fffaf0;
  transition: color calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(0.35s / var(--k)),transform calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq01-wtc:hover .wt i,.uvq01-wtc:focus-visible .wt i {
  transform: translateY(14%);
}

.uvq01-wtc:active {
  transform: scale(.97);
}

.uvq01-wtc:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

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

export default function BtnWatercolor() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#2546b0",
          "--c2": "#c23b7a",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <button className="uvq01-wtc" type="button"><svg className="fx" width="0" height="0" aria-hidden="true"><filter id="uvq01-wet" x="-20%" y="-20%" width="140%" height="140%"><feTurbulence type="fractalNoise" baseFrequency=".035 .07" numOctaves="3" seed="4" result="n" /><feDisplacementMap in="SourceGraphic" in2="n" scale="16" xChannelSelector="R" yChannelSelector="G" /></filter></svg><span className="wt" aria-hidden="true"><i></i></span><span className="t">Paint</span></button>
      </div>
    </>
  );
}
```

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