# Washi tape tag filter

> Washi tape tags on a notebook page: tick one and it sticks down flat, untick it and it peels back up.

- Category: [Filters](https://library.aimran.es/components/filters)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-f-washi-tags
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Paper journals and planners inspire this tag filter, where every option is a strip of patterned washi tape with torn ends on a ruled page with a red margin. Unselected strips float slightly lifted and faded with a soft shadow; selected ones press flat onto the paper. It runs on checkboxes and CSS alone, with a counter for stuck tags.

The first colour marks the focus ring and the counter, the second sets the paper. Edit the tape colours and gradient patterns in the code, keep the tags to one or two words, and use it for notes, recipes or bookmark apps.

## Code

### HTML

```html
<fieldset class="uvq05-wt"><legend>Tags</legend><div class="ts"><label style="--r:-2deg"><input type="checkbox"><span class="tp">Travel</span></label><label style="--r:1.5deg"><input type="checkbox" checked><span class="tp">Recipes</span></label><label style="--r:-1deg"><input type="checkbox"><span class="tp">Ideas</span></label><label style="--r:2deg"><input type="checkbox"><span class="tp">Reading</span></label><label style="--r:-1.5deg"><input type="checkbox" checked><span class="tp">Work</span></label><label style="--r:1deg"><input type="checkbox"><span class="tp">Garden</span></label></div><p class="ct"><span>Tags stuck:</span> <span class="n"></span></p></fieldset>
```

### CSS

```css
.uvq05-wt {
  --c1: #d1495b;
  --c2: #f7f3e8;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq05-wt {
  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;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  position: relative;
  width: 18em;
  padding: 1em 1em 1.1em 2.3em;
  border-radius: .4em;
  color: #2b2b2b;
  background: linear-gradient(90deg,transparent 1.5em,rgba(220,70,70,.5) 1.5em calc(1.5em + 1px),transparent 0),repeating-linear-gradient(transparent 0 1.55em,rgba(70,110,190,.22) 1.55em calc(1.55em + 1px)),var(--c2);
  box-shadow: 0 1.2em 2.2em -1.3em rgba(0,0,0,.5),inset 0 0 0 1px rgba(0,0,0,.06);
  counter-reset: uvq05-wt;
}

.uvq05-wt legend {
  float: left;
  width: 100%;
  margin: 0 0 .8em;
  padding: 0;
  font: 700 1.15em "Bradley Hand","Segoe Print","Marker Felt","Comic Sans MS",cursive;
}

.uvq05-wt .ts {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: .75em .55em;
}

.uvq05-wt label {
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 .4em .3em rgba(0,0,0,.2));
  transition: filter calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-wt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq05-wt input:checked {
  counter-increment: uvq05-wt;
}

.uvq05-wt .tp {
  display: block;
  padding: .45em 1.05em;
  font: 700 .9em "Bradley Hand","Segoe Print","Marker Felt","Comic Sans MS",cursive;
  color: #2b2b2b;
  clip-path: polygon(100.0% 0.0%,96.1% 16.7%,97.9% 33.3%,95.9% 50.0%,97.5% 66.7%,99.4% 83.3%,95.1% 100.0%,6.3% 100.0%,4.0% 83.3%,2.9% 66.7%,2.4% 50.0%,0.3% 33.3%,1.6% 16.7%,1.6% 0.0%);
  background: var(--pt),var(--tc);
  opacity: .55;
  transform: translateY(-.25em) rotate(calc(var(--r) * 2.4));
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1),opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-wt label:nth-of-type(1) {
  --tc: #7fc8c2;
  --pt: repeating-linear-gradient(90deg,rgba(255,255,255,.45) 0 .35em,transparent .35em .7em);
}

.uvq05-wt label:nth-of-type(2) {
  --tc: #f4a6a0;
  --pt: radial-gradient(rgba(255,255,255,.75) 22%,transparent 25%) 0 0/.6em .6em;
}

.uvq05-wt label:nth-of-type(3) {
  --tc: #f6d365;
  --pt: linear-gradient(rgba(0,0,0,.09) 1px,transparent 1px) 0 0/.5em .5em,linear-gradient(90deg,rgba(0,0,0,.09) 1px,transparent 1px) 0 0/.5em .5em;
}

.uvq05-wt label:nth-of-type(4) {
  --tc: #b8a1e3;
  --pt: repeating-linear-gradient(45deg,rgba(255,255,255,.42) 0 .2em,transparent .2em .55em);
}

.uvq05-wt label:nth-of-type(5) {
  --tc: #9cc5f0;
  --pt: linear-gradient(45deg,rgba(255,255,255,.38) 25%,transparent 25% 75%,rgba(255,255,255,.38) 75%) 0 0/.7em .7em,linear-gradient(45deg,rgba(255,255,255,.38) 25%,transparent 25% 75%,rgba(255,255,255,.38) 75%) .35em .35em/.7em .7em;
}

.uvq05-wt label:nth-of-type(6) {
  --tc: #a8d5a2;
  --pt: radial-gradient(circle at 50% 100%,transparent .22em,rgba(255,255,255,.55) .23em .32em,transparent .33em) 0 0/.7em .45em;
}

.uvq05-wt label:hover .tp {
  transform: translateY(-.4em) rotate(calc(var(--r) * 3));
}

.uvq05-wt label:active .tp {
  transform: scale(.94) rotate(var(--r));
}

.uvq05-wt label:has(input:checked) {
  filter: drop-shadow(0 .06em .06em rgba(0,0,0,.18));
}

.uvq05-wt input:checked+.tp {
  opacity: .9;
  transform: rotate(var(--r));
}

.uvq05-wt label:has(input:checked):hover .tp {
  transform: translateY(-.06em) rotate(var(--r));
}

.uvq05-wt label:has(input:focus-visible) {
  outline: 2px solid var(--c1);
  outline-offset: 4px;
  border-radius: .2em;
}

.uvq05-wt .ct {
  margin: 1em 0 0;
  font: 700 .9em "Bradley Hand","Segoe Print","Marker Felt","Comic Sans MS",cursive;
  color: #5a5246;
}

.uvq05-wt .n::before {
  content: counter(uvq05-wt);
  color: var(--c1);
}

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

### React

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

const css = `
.uvq05-wt {
  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;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  position: relative;
  width: 18em;
  padding: 1em 1em 1.1em 2.3em;
  border-radius: .4em;
  color: #2b2b2b;
  background: linear-gradient(90deg,transparent 1.5em,rgba(220,70,70,.5) 1.5em calc(1.5em + 1px),transparent 0),repeating-linear-gradient(transparent 0 1.55em,rgba(70,110,190,.22) 1.55em calc(1.55em + 1px)),var(--c2);
  box-shadow: 0 1.2em 2.2em -1.3em rgba(0,0,0,.5),inset 0 0 0 1px rgba(0,0,0,.06);
  counter-reset: uvq05-wt;
}

.uvq05-wt legend {
  float: left;
  width: 100%;
  margin: 0 0 .8em;
  padding: 0;
  font: 700 1.15em "Bradley Hand","Segoe Print","Marker Felt","Comic Sans MS",cursive;
}

.uvq05-wt .ts {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: .75em .55em;
}

.uvq05-wt label {
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 .4em .3em rgba(0,0,0,.2));
  transition: filter calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-wt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq05-wt input:checked {
  counter-increment: uvq05-wt;
}

.uvq05-wt .tp {
  display: block;
  padding: .45em 1.05em;
  font: 700 .9em "Bradley Hand","Segoe Print","Marker Felt","Comic Sans MS",cursive;
  color: #2b2b2b;
  clip-path: polygon(100.0% 0.0%,96.1% 16.7%,97.9% 33.3%,95.9% 50.0%,97.5% 66.7%,99.4% 83.3%,95.1% 100.0%,6.3% 100.0%,4.0% 83.3%,2.9% 66.7%,2.4% 50.0%,0.3% 33.3%,1.6% 16.7%,1.6% 0.0%);
  background: var(--pt),var(--tc);
  opacity: .55;
  transform: translateY(-.25em) rotate(calc(var(--r) * 2.4));
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1),opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-wt label:nth-of-type(1) {
  --tc: #7fc8c2;
  --pt: repeating-linear-gradient(90deg,rgba(255,255,255,.45) 0 .35em,transparent .35em .7em);
}

.uvq05-wt label:nth-of-type(2) {
  --tc: #f4a6a0;
  --pt: radial-gradient(rgba(255,255,255,.75) 22%,transparent 25%) 0 0/.6em .6em;
}

.uvq05-wt label:nth-of-type(3) {
  --tc: #f6d365;
  --pt: linear-gradient(rgba(0,0,0,.09) 1px,transparent 1px) 0 0/.5em .5em,linear-gradient(90deg,rgba(0,0,0,.09) 1px,transparent 1px) 0 0/.5em .5em;
}

.uvq05-wt label:nth-of-type(4) {
  --tc: #b8a1e3;
  --pt: repeating-linear-gradient(45deg,rgba(255,255,255,.42) 0 .2em,transparent .2em .55em);
}

.uvq05-wt label:nth-of-type(5) {
  --tc: #9cc5f0;
  --pt: linear-gradient(45deg,rgba(255,255,255,.38) 25%,transparent 25% 75%,rgba(255,255,255,.38) 75%) 0 0/.7em .7em,linear-gradient(45deg,rgba(255,255,255,.38) 25%,transparent 25% 75%,rgba(255,255,255,.38) 75%) .35em .35em/.7em .7em;
}

.uvq05-wt label:nth-of-type(6) {
  --tc: #a8d5a2;
  --pt: radial-gradient(circle at 50% 100%,transparent .22em,rgba(255,255,255,.55) .23em .32em,transparent .33em) 0 0/.7em .45em;
}

.uvq05-wt label:hover .tp {
  transform: translateY(-.4em) rotate(calc(var(--r) * 3));
}

.uvq05-wt label:active .tp {
  transform: scale(.94) rotate(var(--r));
}

.uvq05-wt label:has(input:checked) {
  filter: drop-shadow(0 .06em .06em rgba(0,0,0,.18));
}

.uvq05-wt input:checked+.tp {
  opacity: .9;
  transform: rotate(var(--r));
}

.uvq05-wt label:has(input:checked):hover .tp {
  transform: translateY(-.06em) rotate(var(--r));
}

.uvq05-wt label:has(input:focus-visible) {
  outline: 2px solid var(--c1);
  outline-offset: 4px;
  border-radius: .2em;
}

.uvq05-wt .ct {
  margin: 1em 0 0;
  font: 700 .9em "Bradley Hand","Segoe Print","Marker Felt","Comic Sans MS",cursive;
  color: #5a5246;
}

.uvq05-wt .n::before {
  content: counter(uvq05-wt);
  color: var(--c1);
}

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

export default function FWashiTags() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#d1495b",
          "--c2": "#f7f3e8",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq05-wt"><legend>Tags</legend><div className="ts"><label style={{ "--r": "-2deg" } as CSSProperties}><input type="checkbox" /><span className="tp">Travel</span></label><label style={{ "--r": "1.5deg" } as CSSProperties}><input type="checkbox" checked={true} /><span className="tp">Recipes</span></label><label style={{ "--r": "-1deg" } as CSSProperties}><input type="checkbox" /><span className="tp">Ideas</span></label><label style={{ "--r": "2deg" } as CSSProperties}><input type="checkbox" /><span className="tp">Reading</span></label><label style={{ "--r": "-1.5deg" } as CSSProperties}><input type="checkbox" checked={true} /><span className="tp">Work</span></label><label style={{ "--r": "1deg" } as CSSProperties}><input type="checkbox" /><span className="tp">Garden</span></label></div><p className="ct"><span>Tags stuck:</span> <span className="n"></span></p></fieldset>
      </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 “Washi tape tag filter” block (Filters) from AIMRAN Library to my project.

## What it is
Washi tape tags on a notebook page: tick one and it sticks down flat, untick it and it peels back up.

## Chosen settings
- Main color: #d1495b
- Secondary color: #f7f3e8
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Etiquetas"

## 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 = `
.uvq05-wt {
  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;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  position: relative;
  width: 18em;
  padding: 1em 1em 1.1em 2.3em;
  border-radius: .4em;
  color: #2b2b2b;
  background: linear-gradient(90deg,transparent 1.5em,rgba(220,70,70,.5) 1.5em calc(1.5em + 1px),transparent 0),repeating-linear-gradient(transparent 0 1.55em,rgba(70,110,190,.22) 1.55em calc(1.55em + 1px)),var(--c2);
  box-shadow: 0 1.2em 2.2em -1.3em rgba(0,0,0,.5),inset 0 0 0 1px rgba(0,0,0,.06);
  counter-reset: uvq05-wt;
}

.uvq05-wt legend {
  float: left;
  width: 100%;
  margin: 0 0 .8em;
  padding: 0;
  font: 700 1.15em "Bradley Hand","Segoe Print","Marker Felt","Comic Sans MS",cursive;
}

.uvq05-wt .ts {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: .75em .55em;
}

.uvq05-wt label {
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 .4em .3em rgba(0,0,0,.2));
  transition: filter calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-wt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq05-wt input:checked {
  counter-increment: uvq05-wt;
}

.uvq05-wt .tp {
  display: block;
  padding: .45em 1.05em;
  font: 700 .9em "Bradley Hand","Segoe Print","Marker Felt","Comic Sans MS",cursive;
  color: #2b2b2b;
  clip-path: polygon(100.0% 0.0%,96.1% 16.7%,97.9% 33.3%,95.9% 50.0%,97.5% 66.7%,99.4% 83.3%,95.1% 100.0%,6.3% 100.0%,4.0% 83.3%,2.9% 66.7%,2.4% 50.0%,0.3% 33.3%,1.6% 16.7%,1.6% 0.0%);
  background: var(--pt),var(--tc);
  opacity: .55;
  transform: translateY(-.25em) rotate(calc(var(--r) * 2.4));
  transition: transform calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1),opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-wt label:nth-of-type(1) {
  --tc: #7fc8c2;
  --pt: repeating-linear-gradient(90deg,rgba(255,255,255,.45) 0 .35em,transparent .35em .7em);
}

.uvq05-wt label:nth-of-type(2) {
  --tc: #f4a6a0;
  --pt: radial-gradient(rgba(255,255,255,.75) 22%,transparent 25%) 0 0/.6em .6em;
}

.uvq05-wt label:nth-of-type(3) {
  --tc: #f6d365;
  --pt: linear-gradient(rgba(0,0,0,.09) 1px,transparent 1px) 0 0/.5em .5em,linear-gradient(90deg,rgba(0,0,0,.09) 1px,transparent 1px) 0 0/.5em .5em;
}

.uvq05-wt label:nth-of-type(4) {
  --tc: #b8a1e3;
  --pt: repeating-linear-gradient(45deg,rgba(255,255,255,.42) 0 .2em,transparent .2em .55em);
}

.uvq05-wt label:nth-of-type(5) {
  --tc: #9cc5f0;
  --pt: linear-gradient(45deg,rgba(255,255,255,.38) 25%,transparent 25% 75%,rgba(255,255,255,.38) 75%) 0 0/.7em .7em,linear-gradient(45deg,rgba(255,255,255,.38) 25%,transparent 25% 75%,rgba(255,255,255,.38) 75%) .35em .35em/.7em .7em;
}

.uvq05-wt label:nth-of-type(6) {
  --tc: #a8d5a2;
  --pt: radial-gradient(circle at 50% 100%,transparent .22em,rgba(255,255,255,.55) .23em .32em,transparent .33em) 0 0/.7em .45em;
}

.uvq05-wt label:hover .tp {
  transform: translateY(-.4em) rotate(calc(var(--r) * 3));
}

.uvq05-wt label:active .tp {
  transform: scale(.94) rotate(var(--r));
}

.uvq05-wt label:has(input:checked) {
  filter: drop-shadow(0 .06em .06em rgba(0,0,0,.18));
}

.uvq05-wt input:checked+.tp {
  opacity: .9;
  transform: rotate(var(--r));
}

.uvq05-wt label:has(input:checked):hover .tp {
  transform: translateY(-.06em) rotate(var(--r));
}

.uvq05-wt label:has(input:focus-visible) {
  outline: 2px solid var(--c1);
  outline-offset: 4px;
  border-radius: .2em;
}

.uvq05-wt .ct {
  margin: 1em 0 0;
  font: 700 .9em "Bradley Hand","Segoe Print","Marker Felt","Comic Sans MS",cursive;
  color: #5a5246;
}

.uvq05-wt .n::before {
  content: counter(uvq05-wt);
  color: var(--c1);
}

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

export default function FWashiTags() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#d1495b",
          "--c2": "#f7f3e8",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq05-wt"><legend>Tags</legend><div className="ts"><label style={{ "--r": "-2deg" } as CSSProperties}><input type="checkbox" /><span className="tp">Travel</span></label><label style={{ "--r": "1.5deg" } as CSSProperties}><input type="checkbox" checked={true} /><span className="tp">Recipes</span></label><label style={{ "--r": "-1deg" } as CSSProperties}><input type="checkbox" /><span className="tp">Ideas</span></label><label style={{ "--r": "2deg" } as CSSProperties}><input type="checkbox" /><span className="tp">Reading</span></label><label style={{ "--r": "-1.5deg" } as CSSProperties}><input type="checkbox" checked={true} /><span className="tp">Work</span></label><label style={{ "--r": "1deg" } as CSSProperties}><input type="checkbox" /><span className="tp">Garden</span></label></div><p className="ct"><span>Tags stuck:</span> <span className="n"></span></p></fieldset>
      </div>
    </>
  );
}
```

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