๐Ÿงช Pseudoelementos Especiales en Tailwind CSS

๐Ÿ”น ::placeholder

Clase Tailwind Equivalente CSS Ejemplo
placeholder-red-400 ::placeholder { color: #f87171 ; }

๐Ÿ”น ::file-selector-button

Clase Tailwind Equivalente CSS Ejemplo
file:bg-blue-500 file:text-white file:rounded ::file-selector-button { background: #3b82f6; color: #fff; border-radius: .25rem; } Estilo normal Estilo aplicado al boton

๐Ÿ”น ::marker

Clase Tailwind Equivalente CSS Ejemplo
marker:text-pink-500 marker:text-2xl ::marker { color: #ec4899; font-size: 1.5rem; }
  • Elemento uno
  • Elemento dos
  • Elemento tres

๐Ÿ”น ::selection

Clase Tailwind Equivalente CSS Ejemplo
selection:bg-yellow-300 selection:text-white ::selection { background: #fde68a; color: #fff; }

Selecciona este texto para ver el efecto de ::selection.