Ten rules for calmer interfaces
Mar 12 · 5 min read
An "about the author" box for the end of blog posts, with an avatar, short bio and link to more posts.
<aside class="author-bio" aria-label="About the author">
<span class="author-bio-avatar" aria-hidden="true">JN</span>
<div>
<p class="author-bio-label">Written by</p>
<h3>Jordan Ng</h3>
<p>Writes about CSS architecture and design systems, and keeps a very long list of unread books.</p>
<a href="#">More posts by Jordan</a>
</div>
</aside>
.author-bio {
display: flex;
gap: 16px;
max-width: 340px;
padding: 18px 20px;
border-left: 4px solid #57534e;
border-radius: 4px 14px 14px 4px;
background: #fff;
color: #1c1917;
font-family: Georgia, "Times New Roman", serif;
}
.author-bio-avatar {
display: grid;
flex: none;
place-items: center;
width: 52px;
height: 52px;
border-radius: 50%;
background: #e7e5e4;
color: #44403c;
font: 700 16px system-ui, sans-serif;
}
.author-bio-label {
margin: 0;
color: #78716c;
font: 600 11px system-ui, sans-serif;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.author-bio h3 {
margin: 2px 0 6px;
font-size: 18px;
}
.author-bio p {
margin: 0;
color: #57534e;
font-size: 14px;
line-height: 1.5;
}
.author-bio a {
display: inline-block;
margin-top: 8px;
color: #1c1917;
font: 600 13px system-ui, sans-serif;
text-underline-offset: 3px;
}
.author-bio a:focus-visible {
outline: 2px solid #1c1917;
outline-offset: 2px;
}
This CSS Author Bio Card is 56 lines of pure CSS (1.0 KB) with no JavaScript and no dependencies. It uses CSS Grid, Flexbox and keyboard focus styles. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.
The colors in this snippet. Search and replace them to match your brand:
#57534e#fff#1c1917#e7e5e4#44403c#78716c<style> tag..author-bio class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.