Search
Search pages, pieces and blocks.
Get started
1Add António
In the app's folder, new or existing, the same command. It looks before it writes: it keeps the app's own setup, adds the theme as its own file, antonio.css, imported once at the top of the app's CSS, and takes out only the stock theme António replaces. Anything of the app's own that clashes with António, it lists. Safe to run again.
npx antonio-ui initNight: put the dark class on the page's html element. Day is the default.
2Add pieces
A piece brings what it imports: other pieces, the icons and the hooks. To update, add it again.
npx antonio-ui add buttonnpx antonio-ui add allAn app never edits an António file: it wraps or composes the piece in a file of its own. The installer records what it writes, so it never replaces a file the app edited, or one that is not António's (the app's own, or a stock one), and says which of the app's imports a replacement would break. Nothing is written until the app says so.
npx antonio-ui add button --replaceAfter every add it type checks the app and shows only what the add broke. Pieces take asChild as well as render, so code written the asChild way works as it is.
3Set the brand
An app sets two tokens, Day and Night: its accent and the text on it. They carry Primary, the focus outline, the Slider range and today in calendars. Nothing else is set by an app. The starter brand.css lists the contrast checks, and the installer imports it after antonio.css.
npx antonio-ui add brand:root, .light {
--brand: #0f766e;
--brand-foreground: #ffffff;
}
.dark {
--brand: #5fb8ac;
--brand-foreground: #1f1f1e;
}With this brand.css
Day
Night
4For agents
/llms.txt says what António is, how to install it, the rules to follow and every page. Every Library, Foundations, Motion and Blocks page is also plain Markdown at its address plus .md, like /library/button.md.
On every Library, Foundations, Motion and Blocks page, Copy prompt at the top of the page copies a ready prompt: the install command, the imports, when to use the piece, its code and the one rule, tokens and pieces only.
Blocks follow the same rules, plus four habits of their own, in /llms.txt: pieces only, through their props.
António is built on open source work. Credits