Preview
HTML
<article>
<p class="thumb" aria-hidden="true">Aa</p>
<h1>Media</h1>
<p>The figure keeps its size. The text fills the rest.</p>
</article>
CSS
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
article {
display: grid;
grid-template-columns: auto 1fr;
column-gap: 1rem;
row-gap: 0.2rem;
align-items: start;
max-width: 26rem;
}
.thumb {
grid-row: 1 / span 2;
display: grid;
place-items: center;
width: 3.2rem;
height: 3.2rem;
margin: 0;
border-radius: 0.8rem;
background: var(--accent);
color: var(--on-accent);
font-weight: 800;
}
h1,
p {
margin: 0;
}
h1 {
font-size: 1.1rem;
}
Tailwind
<style>
:root {
--ink: #241c16;
--paper: #fffaf1;
--accent: #d4552b;
--accent-2: #4338ca;
--on-accent: #fff;
--muted: #6a6156;
--line: #d7ccb8;
--chip: #efe6d6;
}
.thumb {
grid-row: 1 / span 2;
}
</style>
<article class="grid [grid-template-columns:auto_1fr] gap-x-[1rem] gap-y-[0.2rem] items-start max-w-[26rem]">
<p class="thumb grid place-items-center w-[3.2rem] h-[3.2rem] m-0 rounded-[0.8rem] bg-[var(--accent)] text-[var(--on-accent)] font-extrabold m-0" aria-hidden="true">Aa</p>
<h1 class="m-0 text-[1.1rem]">Media</h1>
<p class="m-0">The figure keeps its size. The text fills the rest.</p>
</article>