Contenido discreto
Contenido discreto: tarjeta en CSS. Copia las reglas, o el prompt que reproduce el resultado.
Designing for quiet interfaces
Why the best screens are the ones you barely notice, and how to get there.
Read moreCSS
.card-001 {
width: 320px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 14px;
overflow: hidden;
font-family: system-ui,sans-serif;
color: #111827;
transition: transform .25s,box-shadow .25s
}
.card-001:hover {
transform: translateY(-4px);
box-shadow: 0 14px 30px rgba(17,24,39,.12)
}
.card-001__img {
height: 170px;
background: linear-gradient(135deg,#dbeafe,#a5b4fc)
}
.card-001__body {
padding: 18px 20px 20px
}
.card-001 h3 {
margin: 0 0 8px;
font-size: 18px;
line-height: 1.3
}
.card-001 p {
margin: 0 0 14px;
font-size: 14px;
line-height: 1.55;
color: #4b5563
}
.card-001 a {
font-size: 14px;
font-weight: 600;
color: #2563eb;
text-decoration: none
}
.card-001 a:hover {
text-decoration: underline
}
.card-001 :is(a,button,input,select,textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
HTML
<article class="card-001">
<div class="card-001__img"></div>
<div class="card-001__body">
<h3>Designing for quiet interfaces</h3>
<p>Why the best screens are the ones you barely notice, and how to get there.</p>
<a href="#">Read more</a>
</div>
</article>Prompt
Construye una tarjeta de contenido de 320px de ancho con fondo blanco #fff, borde 1px #e5e7eb, radio 14px, overflow hidden. Zona superior de 170px de alto rellena con un degradado a 135deg de #dbeafe a #a5b4fc como marcador de imagen. Cuerpo con padding 18px 20px 20px: título 18px en #111827, texto 14px en #4b5563 con line-height 1.55, luego un enlace 14px semibold en #2563eb. En hover eleva la tarjeta 4px y añade sombra 0 14px 30px rgba(17,24,39,.12), transición 250ms.