Square avatar ID
Square avatar ID: a CSS card. Copy the rules, or the prompt that rebuilds it.
- Name
- Theo Baptiste
- Role
- Staff engineer
- ID
- #04211
CSS
.card-014 {
display: grid;
grid-template-columns: 90px 1fr;
gap: 16px;
width: 300px;
padding: 16px;
background: #fff;
border: 2px solid #111;
border-radius: 6px;
font-family: ui-monospace,monospace;
color: #111
}
.card-014__photo {
height: 110px;
border: 2px solid #111;
background: repeating-linear-gradient(45deg,#111 0 2px,#fff 2px 8px)
}
.card-014 dl {
margin: 0;
display: grid;
grid-template-columns: auto 1fr;
gap: 6px 12px;
font-size: 12px;
align-content: start
}
.card-014 dt {
color: #888;
text-transform: uppercase;
letter-spacing: .06em
}
.card-014 dd {
margin: 0;
font-weight: 700
}
HTML
<article class="card-014">
<div class="card-014__photo"></div>
<dl>
<dt>Name</dt><dd>Theo Baptiste</dd>
<dt>Role</dt><dd>Staff engineer</dd>
<dt>ID</dt><dd>#04211</dd>
</dl>
</article>Prompt
Create a 300px ID-style card in a monospace font: white background, 2px solid #111 border, 6px radius, 16px padding, two-column grid (90px photo + details). The photo is a 110px tall box with 2px #111 border filled with a 45deg repeating stripe pattern (#111 2px, white 6px). Details are a definition list in a two-column grid: 12px uppercase gray #888 labels (Name, Role, ID) with bold #111 values.