# Rost > A design system that started for my own needs and grew into a product of its own. Every component has a contract (YAML) that says what it is, every value it takes and when to use it. The tokens and the React components are built from those contracts. Components are copied into an app, not imported from a package. Each one that's in code is a registry item at https://rost.build/r/.json, and Rost's installer copies them in: `npx github:Runceanu/rost add button`. They're React with plain CSS, and need src/rost/fonts.css and src/rost/tokens.css imported once. The contracts are the source of truth: when the code and a contract disagree, the contract wins. ## Docs - [Install](https://rost.build/docs/install.md) - [How a contract works](https://rost.build/docs/contract.md) - [What's next](https://rost.build/docs/roadmap.md) - [Token coverage](https://rost.build/docs/tokens.md) - [Rost for agents](https://rost.build/docs/agents.md) - [Accessibility](https://rost.build/docs/accessibility.md) - [Rost in pen.dev](https://rost.build/docs/pen.md) - [Release notes](https://rost.build/docs/releases.md) ## Components - [Accordion](https://rost.build/components/accordion.md): Several things that open one by one, like questions and answers: Disclosures in a column, a line between each. Install: https://rost.build/r/accordion.json - [Avatar](https://rost.build/components/avatar.md): A person or a client as a small circle. Their photo, or their initials on grey when there's no photo. Install: https://rost.build/r/avatar.json - [AvatarGroup](https://rost.build/components/avatar-group.md): Who is involved, without a list. Medium Avatars overlapping by 8px, each ringed in the page colour, and how many more. Install: https://rost.build/r/avatar-group.json - [Badge](https://rost.build/components/badge.md): A small status marker: a coloured dot on its own, or an outlined label. The colour sits in the dot and the outline, never in the text. Install: https://rost.build/r/badge.json - [Banner](https://rost.build/components/banner.md): A notice across the top of a page or a section: what happened, a line on what to do, and maybe a way to do it. In four statuses, on a tint of the status's colour. Install: https://rost.build/r/banner.json - [BarChart](https://rost.build/components/bar-chart.md): A handful of figures side by side as bars, with a label under each: grey, and green for the one that matters now. For months, not for analysis. Install: https://rost.build/r/bar-chart.json - [Breadcrumb](https://rost.build/components/breadcrumb.md): Where this page sits, from the top down. Links to the pages above it, a small chevron between, and this page's name last. Install: https://rost.build/r/breadcrumb.json - [Button](https://rost.build/components/button.md): A 48px button with a label and, if it helps, an icon in front. In four levels of emphasis. Install: https://rost.build/r/button.json - [Calendar](https://rost.build/components/calendar.md): A month to pick a date from: its name between two arrows, the days of the week, and six weeks of CalendarDays. The arrow keys move a day or a week. Install: https://rost.build/r/calendar.json - [CalendarDay](https://rost.build/components/calendar-day.md): One day in a Calendar: a 40px square with its number. Green when picked, green text for today, grey for the months either side, faint when it can't be picked. Install: https://rost.build/r/calendar-day.json - [Card](https://rost.build/components/card.md): A plate that holds one thing together, like a summary, a setting or a figure. Filled grey, or just an edge. Install: https://rost.build/r/card.json - [Carousel](https://rost.build/components/carousel.md): A card for a carousel: a number, a title and a short description. Install: https://rost.build/r/carousel.json - [Checkbox](https://rost.build/components/checkbox.md): A choice that's on or off and waits for the form. A 20px box that fills green with a tick, and the words beside it. Install: https://rost.build/r/checkbox.json - [Chip](https://rost.build/components/chips.md): A small outlined label you can click, for filters and quick choices. Install: https://rost.build/r/chips.json - [Code](https://rost.build/components/code.md): Code in a sentence, or a block of it on its own plate. Install: https://rost.build/r/code.json - [Combobox](https://rost.build/components/combobox.md): One choice from a long list, found by typing. Select's field you can type in, and the matching options in a list under it. Install: https://rost.build/r/combobox.json - [ComboboxOption](https://rost.build/components/combobox-option.md): One option in a Combobox's list: a 40px row with its name. Green when it's highlighted, a green tick when it's the one picked. Install: https://rost.build/r/combobox-option.json - [Command](https://rost.build/components/command.md): A palette for doing anything from the keyboard: a search field over the page, and the commands under it in groups, narrowing as you type. Install: https://rost.build/r/command.json - [ContextMenu](https://rost.build/components/context-menu.md): DropdownMenu's plate, opened where you right-click instead of under a button. For the actions on a row or a card, as a shortcut. Install: https://rost.build/r/context-menu.json - [DateField](https://rost.build/components/date-field.md): A date, picked from a Calendar. Select's field, showing the date, and a Calendar in a Popover under it when it's pressed. Install: https://rost.build/r/date-field.json - [DescriptionList](https://rost.build/components/description-list.md): Facts about one thing, as pairs: a term and its value, a row each, with a line between. For an invoice's details or a client's. Install: https://rost.build/r/description-list.json - [Dialog](https://rost.build/components/dialog.md): A question or a short task that stops everything else until it's answered. A grey plate over the page with a title, a few words and its buttons. Install: https://rost.build/r/dialog.json - [Disclosure](https://rost.build/components/disclosure.md): A line that opens to show more, for things most people won't need. Install: https://rost.build/r/disclosure.json - [Divider](https://rost.build/components/divider.md): A thin line between things. Install: https://rost.build/r/divider.json - [DropdownMenu](https://rost.build/components/dropdown-menu.md): A button that opens a short list of actions: MenuItems on Popover's grey plate, with a thin line between groups. The arrow keys move through them, Esc closes it. Install: https://rost.build/r/dropdown-menu.json - [Dropzone](https://rost.build/components/dropzone.md): A place to drop a file, with a button for when dragging isn't handy: an arrow, what to drop, what's allowed, and Choose a file. Install: https://rost.build/r/dropzone.json - [EmptyState](https://rost.build/components/empty-state.md): What a screen says when there's nothing on it yet. One of Rost's drawings, a line saying why, a sentence on what to do, and the button that does it. Install: https://rost.build/r/empty-state.json - [Fieldset](https://rost.build/components/fieldset.md): A question with its choices: the question in medium paragraph type, the Radios or Checkboxes under it, and a line of help. Install: https://rost.build/r/fieldset.json - [Figure](https://rost.build/components/figure.md): A picture, a chart or a drawing with a line about it underneath: the media on a grey plate with 12px corners, the caption in label type. Install: https://rost.build/r/figure.json - [Floating effect](https://rost.build/components/effect-floating.md): The only drop shadow in the kit, for things that float above the page. - [Hero Media](https://rost.build/components/hero-media.md): A full-width hero: artwork pinned behind a 16px frame and dimmed, with the content on top. Install: https://rost.build/r/hero-media.json - [Icon](https://rost.build/components/icon.md): One of Rost's 23 glyphs, 24px, in the colour of the text around it. Install: https://rost.build/r/icon.json - [IconButton](https://rost.build/components/icon-button.md): A round button with only an icon, including a Project type for sitting on top of images. Install: https://rost.build/r/icon-button.json - [Illustration](https://rost.build/components/illustration.md): One of Rost's 24 small drawings, 72px, in two greys and a green that follow the theme. Install: https://rost.build/r/illustration.json - [InlineBanner](https://rost.build/components/inline-banner.md): A filled status pill with an icon and a label, in four statuses and two sizes. Install: https://rost.build/r/inline-banner.json - [Input](https://rost.build/components/input.md): A 56px text field with a floating label, an optional lock icon, a line of help text and an error state. Install: https://rost.build/r/input.json - [Kbd](https://rost.build/components/kbd.md): A key on the keyboard, written in the text. A small grey cap with the key's name in mono. Install: https://rost.build/r/kbd.json - [Legend](https://rost.build/components/legend.md): What a chart's colours mean: a small square of each, its name and, if it helps, its value, in a row that wraps. Install: https://rost.build/r/legend.json - [Link](https://rost.build/components/link.md): A link inside text. Green and underlined, or quiet in the text's own colour. Install: https://rost.build/r/link.json - [ListItem](https://rost.build/components/list-item.md): One row you can pick in a list or a nav. A label, an optional line under it, and optional icons and a status dot. Install: https://rost.build/r/list-item.json - [ListRow](https://rost.build/components/list-row.md): One line in a list you read, not pick: something small at the start, a title over a line of detail, a value at the end, a line under it. For a list of payments, deadlines or files. Install: https://rost.build/r/list-row.json - [Lock frame effect](https://rost.build/components/effect-lock-frame.md): An 8px blur over a locked project's thumbnail, the blurred view behind the lock. - [Menu effect](https://rost.build/components/effect-menu.md): Frosted glass, a 12px backdrop blur, for a nav or cards that sit over content. - [Menu](https://rost.build/components/menu.md): A navigation item: a label with a line underneath, used in the main nav. Install: https://rost.build/r/menu.json - [MenuItem](https://rost.build/components/menu-item.md): One action in a DropdownMenu: a 40px row with its words. Green when it's pointed at or has the focus, red for one that can't be undone. Install: https://rost.build/r/menu-item.json - [Navigation](https://rost.build/components/navigation.md): A side navigation on frosted glass. The logo at the top, the main items below it, one action at the bottom. Collapsed to icons, or open with labels. Install: https://rost.build/r/navigation.json - [NumberField](https://rost.build/components/number-field.md): A number you nudge: minus, the value, plus, in a 48px box with Input's colours. For counts and quantities, not for prices. Install: https://rost.build/r/number-field.json - [Pagination](https://rost.build/components/pagination.md): Moving through a long list a page at a time. Back and forward buttons with where you are between them. Install: https://rost.build/r/pagination.json - [Paper effect](https://rost.build/components/effect-paper.md): A sheet of dots behind a hero. It reacts to the cursor, buttons and clicks, can sketch components on itself, and never moves on its own. - [Popover](https://rost.build/components/popover.md): A small plate that opens over the page with more about something, and closes when you click away. Card's grey, with an edge and the floating shadow. Install: https://rost.build/r/popover.json - [Progress](https://rost.build/components/progress.md): How far along something is, as a thin bar that fills. Green as it goes, amber or red when it needs a look. Install: https://rost.build/r/progress.json - [ProgressRing](https://rost.build/components/progress-ring.md): Progress as a 40px ring, for where a bar won't fit: next to a Stat, in a card's corner. Green as it goes, amber or red when it needs a look. Install: https://rost.build/r/progress-ring.json - [Projects](https://rost.build/components/projects.md): One row in the project list: number, name, and industry, type and period on the right. Install: https://rost.build/r/projects.json - [Quote](https://rost.build/components/quote.md): Someone's words, pulled out of the text: a green rule on the left, the words in sub-title type, and who said them under it. Install: https://rost.build/r/quote.json - [Radio](https://rost.build/components/radio.md): One choice out of a few, all on show. A 20px circle with a dot in the picked one, and the words beside it. Install: https://rost.build/r/radio.json - [Rating](https://rost.build/components/rating.md): Stars out of five: a score to read, or one to give. Lit stars in the warning yellow, the rest in Input's edge grey. Install: https://rost.build/r/rating.json - [SearchField](https://rost.build/components/search-field.md): Search above a list: a 40px field with the search icon, Input's colours and focus ring, and a clear button once there's something in it. Install: https://rost.build/r/search-field.json - [Select](https://rost.build/components/select.md): One choice from a list that's too long to show. Input's filled field, with a chevron, and the browser's own list when it opens. Install: https://rost.build/r/select.json - [Sheet](https://rost.build/components/sheet.md): A panel that slides over the page from the right, for a task with more to it than a dialog: editing a client, an invoice's details. Install: https://rost.build/r/sheet.json - [Skeleton](https://rost.build/components/skeleton.md): Grey shapes where content is about to be, so the page doesn't jump when it arrives. A line of text, a circle or a block. Install: https://rost.build/r/skeleton.json - [Slider](https://rost.build/components/slider.md): A number picked by dragging, when about right is right: a 4px track, a green fill and a 20px thumb. The arrow keys move it a step at a time. Install: https://rost.build/r/slider.json - [Sparkline](https://rost.build/components/sparkline.md): Which way something has been going, as a small line with a dot at now. Green when that's good, red when it isn't, grey when it's neither. Install: https://rost.build/r/sparkline.json - [Spinner](https://rost.build/components/spinner.md): Something is working and you can't tell how long it'll take. A grey ring with a green quarter that turns. Install: https://rost.build/r/spinner.json - [Stat](https://rost.build/components/stat.md): One figure that matters, with what it is and how it moved. A label, the number in title type, and a line in green or red. Install: https://rost.build/r/stat.json - [Step](https://rost.build/components/step.md): One step of a Stepper: a 24px marker and its name. A green tick when done, a green ring when current, grey when it is still to come. Install: https://rost.build/r/step.json - [Stepper](https://rost.build/components/stepper.md): Where someone is in a few steps, and how many are left. The steps in a row, a short line between each. Install: https://rost.build/r/stepper.json - [Switch](https://rost.build/components/switch.md): A setting that's on or off and takes effect straight away. A pill track with a thumb that moves across. The label is SwitchField's. Install: https://rost.build/r/switch.json - [SwitchField](https://rost.build/components/switch-field.md): A Switch with its label beside it, on the left or the right. A click on the words flips it too. Install: https://rost.build/r/switch-field.json - [TabItem](https://rost.build/components/tab-item.md): One tab in a row of tabs. A label, optional icons before and after it, and a green underline when it's the one selected. Install: https://rost.build/r/tab-item.json - [Table](https://rost.build/components/table.md): Rows of the same kind of thing, side by side in columns, like the accounting app's payments. No box, a hairline between rows. Install: https://rost.build/r/table.json - [TableItem](https://rost.build/components/table-item.md): One cell of a TableRow. Its content with an optional line under it, and leading and trailing slots for a Badge or an icon. Install: https://rost.build/r/table-item.json - [TableRow](https://rost.build/components/table-row.md): One row of a Table, with a hairline under it. It can be a link or something you pick, through its header cell. Install: https://rost.build/r/table-row.json - [Tabs](https://rost.build/components/tabs.md): A row of tabs on a 1px line. One is selected, and its panel shows below. Install: https://rost.build/r/tabs.json - [Tag](https://rost.build/components/tags.md): A compact 20px label with small corners, for what a piece of content is about. Install: https://rost.build/r/tags.json - [TestimonialPicture](https://rost.build/components/testimonials-pics.md): The photo of the person behind a testimonial. Install: https://rost.build/r/testimonials-pics.json - [Testimonials](https://rost.build/components/testimonials.md): A testimonial you can open and close: name and role, with the quote underneath. Install: https://rost.build/r/testimonials.json - [Text](https://rost.build/components/text.md): Rost's type ramp as one component, from the 64px page title down to the 12px label. Install: https://rost.build/r/text.json - [Textarea](https://rost.build/components/textarea.md): A text field for several lines, with Input's label, help line, error and focus ring. Install: https://rost.build/r/textarea.json - [Thumb effect](https://rost.build/components/effect-thumb.md): The frosted panel on project thumbnails, a backdrop blur. - [Thumbs](https://rost.build/components/thumbs.md): A project thumbnail card, with the project name and details on a frosted panel at the bottom. Install: https://rost.build/r/thumbs.json - [Timeline](https://rost.build/components/timeline.md): What happened to something, in order: a column of TimelineItems, each a dot on a line with what happened and when. Install: https://rost.build/r/timeline.json - [TimelineItem](https://rost.build/components/timeline-item.md): One event in a Timeline: a 12px dot, a line down to the next event, what happened, when, and a sentence if it needs one. Install: https://rost.build/r/timeline-item.json - [Toast](https://rost.build/components/toast.md): A short message that something happened, with one thing you can do about it. Badge's dot, the words and a Borderless Button, on a floating plate. Install: https://rost.build/r/toast.json - [ToastStack](https://rost.build/components/toast-stack.md): Where toasts go when there's more than one. A column, newest at the bottom, fixed to the bottom of the window or in place. Install: https://rost.build/r/toast-stack.json - [Toggle](https://rost.build/components/toggle.md): A 40×40 icon button that stays on or off, alone or as one choice in a group. Install: https://rost.build/r/toggle.json - [ToggleGroup](https://rost.build/components/toggle-group.md): A row of Toggles where one is chosen, like a year switcher. Arrow keys move the choice, and the row is one stop for Tab. Install: https://rost.build/r/toggle-group.json - [Toolbar](https://rost.build/components/toolbar.md): A row of IconButtons that act on one thing, on a raised strip, with thin lines between the groups. The arrow keys move between them. Install: https://rost.build/r/toolbar.json - [Tooltip](https://rost.build/components/tooltip.md): A small label that explains something when you point at it or focus it. Install: https://rost.build/r/tooltip.json ## Blocks - [Sidebar](https://rost.build/blocks/sidebar/): An app's frame: Navigation down the left and the page beside it. On a phone the links move into a Sheet behind a Menu button. Install: https://rost.build/r/sidebar.json - [Login](https://rost.build/blocks/login/): Signing in: email, password and keep me signed in, on a Card in the middle of the page. It checks the fields are filled and shows the app's answer when it isn't a yes. Install: https://rost.build/r/login.json - [Dashboard](https://rost.build/blocks/dashboard/): A first page for an app: the Sidebar block, a row of Stats, a BarChart and a Table of what happened lately. Feed it numbers; it decides nothing about them. Install: https://rost.build/r/dashboard.json ## Optional - [Skill](https://rost.build/skill.md): how an agent should build with Rost. `npx github:Runceanu/rost skill` puts it in an app - [Registry index](https://rost.build/r/registry.json): every installable item and its files - [Tokens](https://rost.build/r/rost.json): tokens.css, fonts.css and conform.ts as a registry item - [Source](https://github.com/Runceanu/rost): contracts in contracts/, tokens in tokens/, components in src/components/