Before after metrics
Before after metrics: a CSS card. Copy the rules, or the prompt that rebuilds it.
Bundle size
Before412 KB
After96 KB
Container queries replaced 38 media-query blocks.
CSS
.card-096 {
width: 320px;
padding: 20px 22px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 16px;
font-family: system-ui,sans-serif;
color: #111827
}
.card-096 h3 {
margin: 0 0 14px;
font-size: 15px;
color: #6b7280;
font-weight: 600
}
.card-096__cols {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px
}
.card-096__cols div {
padding: 14px;
border-radius: 12px;
background: #f9fafb;
border: 1px solid #f3f4f6;
display: flex;
flex-direction: column;
gap: 4px;
transition: transform .2s
}
.card-096__cols div:hover {
transform: translateY(-2px)
}
.card-096__cols span {
font-size: 11px;
text-transform: uppercase;
letter-spacing: .08em;
color: #9ca3af
}
.card-096__cols b {
font-size: 24px;
font-weight: 800;
letter-spacing: -.02em;
color: #6b7280;
text-decoration: line-through;
text-decoration-thickness: 2px;
text-decoration-color: #d1d5db
}
.card-096__cols .card-096__after {
background: #ecfdf5;
border-color: #a7f3d0
}
.card-096__after b {
color: #047857;
text-decoration: none
}
.card-096 p {
margin: 14px 0 0;
font-size: 13px;
color: #6b7280
}
HTML
<article class="card-096">
<h3>Bundle size</h3>
<div class="card-096__cols">
<div><span>Before</span><b>412 KB</b></div>
<div class="card-096__after"><span>After</span><b>96 KB</b></div>
</div>
<p>Container queries replaced 38 media-query blocks.</p>
</article>Prompt
Create a 320px comparison card: white, 1px #e5e7eb border, 16px radius. A 15px gray heading "Bundle size", then two equal columns: "Before" on #f9fafb with a 24px extra-bold value "412 KB" in gray with a 2px line-through, and "After" on mint #ecfdf5 with a #a7f3d0 border and the value "96 KB" in green #047857. Uppercase 11px #9ca3af labels; columns lift 2px on hover. A 13px #6b7280 explanation line at the bottom.