
Critly
design concepts, skills and a check that help agents build better UI
critly is a design tool for building with agents. it's a library of design concepts, each with the rule, real numbers and a demo you can toggle, plus skills that let your agent build and review UI with them, and a check that measures the running app and fails with the fix named.
- design concepts, each with a demo
- 100
- rules the check runs by default
- 15
- agent skills, generated from the library
- 2
what it does
a library you can try
concepts across type, colour, spacing, motion, states, sound and performance, and now identity and marketing too, each with real numbers and an interactive demo.
native apps too
a mobile section for iOS and Android, with gestures, haptics, sheets, safe areas and the soft keyboard, for SwiftUI, Compose, Flutter and React Native.
skills for your agent
critly builds and reviews UI with the concepts, and critly-audit audits a whole app and sets up the check. before it picks a look, the agent builds two different first screens, compares them at real size and keeps the better one. this site was redone with them.
a check it can't skip
critly check opens your running app at phone and desktop widths, light and dark, and fails with the fix and the concept named, so an agent can't talk its way past it. a taste pass covers what no rule can fail, like how many boxes are on the first screen.
inside the app
why I built it
writing code costs almost nothing now. design is the slow part. agents build UI that works but feels generic, with default easings, no states past the happy path, and off-scale spacing.
rules in a prompt get read once and forgotten. I wanted principles an agent actually uses while it builds, and a check it can't argue with.
built with
- Next.jsevery concept page is content, so it's all served static.
- MDXone typed source feeds the site and generates the skills.
- MMotionthe demos need real springs.
- PPlaywrightthe check measures the rendered page in a real browser, not the source.
how it works
one source, two readers
concepts are MDX files. the same content builds the site for people and the skill files for agents, and a github action regenerates the skill whenever the content changes, so they never drift.
demos are the argument
each concept ships a wrong and a right version of the same component, so you feel the difference instead of reading about it.
one script, three places
the check's rules are one file and one dependency-free script. the same script runs from the cli, inside playwright tests, and in an agent's browser tool, and every rule links back to its concept.