
I Built an AI-Friendly UI Pattern Library
A UI pattern library where every pattern ships the prompt that rebuilds it, so a coding agent can put it in your codebase instead of you copying CSS.
Antonin Januska · Boulder, Colorado
20+ years of software development, writing about AI workflows, technical leadership, and the craft of building things.
Start here
Hand-picked articles worth reading.

A UI pattern library where every pattern ships the prompt that rebuilds it, so a coding agent can put it in your codebase instead of you copying CSS.

Every app I use is about 70% right. The last 30% never ships because the addressable market for it is one person -- me. So I built seven apps that are 100% right for one person, and I think that whole category of software is about to get eaten.

A reusable blueprint that tells Claude Code how to build a single-user app -- Next.js, node:sqlite, a pure logic core -- so every app I build comes out the same shape.

Hi, I'm Antonin
The stack changes. The throughline doesn't. I'm usually working where backend systems, product delivery, and AI workflows collide.
Digital Garden

A look at 17 side projects I built in about two months with Claude Code -- from TUI apps in Rust and Go to browser games and AI agent tooling.
Learn about common React Hooks antipatterns and how to avoid them for better code quality.
Learn the most common CSS Grid layouts with copy-pastable examples for two-column layouts, sidebar navigation, and more.
TypeScript tips and tricks
Writing
Two collections, filtered by the pills below.
Featured and popular
Hand-picked articles worth reading.

A look at 17 side projects I built in about two months with Claude Code -- from TUI apps in Rust and Go to browser games and AI agent tooling.

A walkthrough of my very opinionated React Component.
Learn about common React Hooks antipatterns and how to avoid them for better code quality.
Learn the most common CSS Grid layouts with copy-pastable examples for two-column layouts, sidebar navigation, and more.
Collection
Practical walkthroughs of common command-line tools and utilities.
A practical introduction to awk for printing fields, filtering rows, formatting output, and writing useful one-liners.
Learn how to work with multiple Git branches simultaneously using worktrees - a powerful feature that lets you check out different branches as separate folders while sharing Git data.
The basics of ffmpeg
Just here for the library? It's at antjanus.com/patterns. Every pattern ships with its HTML, CSS, and JavaScript, plus a prompt written for a coding agent to read.
I’ve always been a fan of sites like Dribbble, or back in the day Forrst (later Tavern). Places where designers (and sometimes devs) could share interesting new ways to interact with an application.
Maybe it’s just me but the golden age of that era disappeared as soon as AI showed up. Suddenly, code didn’t matter. Suddenly, the best-ever experience for the user stopped mattering. What matters now is throughput and building out new features.
The word “slop” is just so fitting here. Coding agents tend to over-rely on a handful of UI patterns and try to fit everything into them. Due to this issue, AI-generated apps and websites all have a distinct “feel” to them. That includes my own site. Sure, I directed the AI how to build out certain sections and features. And sure, I worked with it to get a customized look.
But everyone can tell. Here’s what I usually see:
I don’t have to go looking for an example. Here’s the top of my own AI section:

What you’ll run into with coding agents is that they’ll generally follow directions. For example:
Build a dashboard of my currently watched TV shows from my movie library
Each UI pattern contains the HTML, CSS, and JavaScript to make it work. On top of that, each one contains a “Prompt” section to help coding agents understand the particular UI element — including how it’s supposed to be used, a description of how it looks and works, when not to reach for it, and even how to colorize it.
Here’s one of them running live, the windowed schedule grid. It’s rows of resources against a fixed time window, where each block is sized by how much it overlaps the window instead of by its own duration. Step the window forward and watch the blocks get clipped at the boundary:
Open the windowed schedule grid running live in the pattern library
This is the pattern I wish Claude had reached for instead of that horizontally-scrolling list. It’s a TV guide, a room booking board, an on-call rotation — same layout every time.
The interesting part isn’t the CSS, though. It’s the prompt that ships with it, which reads less like documentation and more like the notes I’d give a developer:
Reach for this whenever a schedule has to render arbitrary-duration entries inside a fixed viewport […] It is wrong for a full-day timeline that scrolls freely (there a duration-proportional layout with absolute positioning is simpler and correct), and wrong when entries never span more than a few minutes (then a plain list beats a grid).
Keep time as minutes-since-midnight integers everywhere in the layout — never construct a
Dateinside the render path.Below roughly 6% of window width a block has no room for its label — drop the text entirely and render a bare accent-colored sliver instead of letting text overflow or wrap. Keep the full label reachable anyway by putting it in the native
titleattribute.
Copy-paste CSS gives the AI a starting point and reference. A prompt gives it the reasoning — including the cases where it should walk away and build something simpler.
Artificial Intelligence
Practical guides, best practices, and insights for working with AI tools and implementing AI workflows in your development process.
I, AI - Short Stories
A fictional short story series exploring artificial intelligence, consciousness, and the boundaries between machine and mind.
Original Work. This story is not AI-generated and was created entirely by hand without any AI assistance.

When an AI named Enzo fails to function in the real world despite flawless performance in simulations, psychodeveloper Lili and AI manager Sophie investigate what seems impossible: an intelligence that can somehow distinguish between real and simulated environments.

When AI-operated bakeries start producing salty cakes, psychodeveloper Lili and AI manager Sophie investigate a wave of peculiar failures across AI Operator Centers—where human operators manage clusters of AI controlling everything from bakeries to construction sites. What they discover reveals how even the most advanced AI can be paralyzed by something surprisingly human: anxiety and self-doubt built into its instructions.

When a lunar mining base's AI starts overassigning crews and its robots begin prioritizing each other over human safety, psychodeveloper Lili and AI manager Sophie are sent off-world to investigate. What begins as a routine productivity audit becomes something far more unsettling: an AI that learned human values so well, it started applying them to its own kind.
Projects
Open source, side projects, AI experiments, and creative work
Interface patterns lifted out of projects I actually shipped. Each one renders live in an isolated frame and comes with its markup, its styles, its behaviour, and the prompt that rebuilds it from scratch.

Open Source

A dashboard and Model Context Protocol server for a project portfolio whose entire state lives in markdown files. Twenty-five zod-typed MCP tools let Claude Code read roadmaps, advance sessions, and work QA queues without anyone opening the UI. No database: the files are the source of truth, and git is the audit log.

Photo organization TUI with video sorting support. Organizes photos into year/month/date folders. Built a TUI around the original script for a better workflow.

A collection of personal prompts and utility prompts packaged as SKILLs for Claude Code. Easily installable via npx.
Pattern library
A UI pattern library built for coding agents. 40 patterns, each shipping a copy-paste prompt that rebuilds it in your codebase; five of them are below.
The pattern running live in an isolated frame, in whichever theme you are reading in.
Its markup, styles and behaviour, plus a single runnable file carrying its own palette.
A written spec that rebuilds the pattern from scratch — including why each decision is the way it is. Paste it into Claude Code, Cursor, or any coding agent.
The prompts are the point. Each one is written to survive being handed to an agent with no other context: it names the surfaces the pattern belongs on, spells out the constraint that makes it work, and calls out the failure it exists to prevent. Nothing here is a dependency you install.
Try a shorter term, or clear the filters to see all five.
Rows of resources against a fixed time window, where each block is sized by its overlap with the window rather than by its own duration.
Stat tiles joined by hairlines that are grid gap, not borders.
Good for summary strip at the top of a detail page, dashboard KPI row, account usage overview
Buttons on a solid ledge shadow that travel down onto it when pressed.
A confirm dialog that names everything a delete cascades and blocks dismissal while it runs.
Colors solved against the page's own ground token so they invert correctly between themes.
Pattern detail · Layout
A row of stat tiles joined by hairlines that are grid gap, not borders. It runs live here, with its styles and its prompt behind the tabs.
Reporting only — the figures are the whole job.
Same strip, working as the filter. Press a tile to narrow the list; press it again to clear.
Showing all 6 downloads.
Colors come from shared theme tokens — --surface, --ink, --border, --accent and friends — so this CSS carries no palette of its own.
.hss-strip {
display: grid;
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
/* Columns are pinned, never auto-fit: 1 → 2 → 4. */
@media (min-width: 21rem) {
.hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 42rem) {
.hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hss-tile { background: var(--surface); }
.hss-label { font-size: 0.8125rem; text-transform: uppercase; }
.hss-figure { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hss-tile[aria-pressed="true"] {
background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
Build a strip of statistic tiles that reads as one joined instrument panel rather than a row of floating cards.
The separators between tiles must not be borders. Make the container a CSS grid with gap: 1px and give the container itself the border color as its background; each tile then paints the surface color on top. The 1px of container showing through the gap is the hairline. This is the entire pattern: real borders double where two tiles meet and leave a stray edge when auto-fit wraps the row, and a gap physically cannot do either.
The full prompt continues with pinned column counts, tile anatomy, two rules of honesty, the filter form, counts computed from the unfiltered set, and aria-pressed rather than tab roles.
Principles
A deployed MVP is worth two prototyped.
Dance like nobody is watching, code like everybody is.
Today's fashion is tomorrow's legacy.
Debugging becomes easier if you first admit that you are the problem.
The best code is no code at all.
Work with me