# Silkware Design System > The components, foundations and patterns every Silkware application is built on, for the people and the agents who build them. Components install from the shadcn registry under the @silkware namespace: add "@silkware": "https://design.silkware.dev/r/{name}.json" to the registries in components.json, then run `npx shadcn@latest add @silkware/`. Each link below is the page as plain markdown, with its examples inlined as code. The same page for people is at https://design.silkware.dev/docs followed by the same path. Pattern blocks render full page at https://design.silkware.dev/view/. ## Get started - [Introduction](https://design.silkware.dev/llms/index.md): The Silkware Design System is the set of components, foundations and patterns that every Silkware application is built on. - [Installation](https://design.silkware.dev/llms/installation.md): Start a new application on the Silkware Design System, from an empty folder to a build that passes. - [Theming](https://design.silkware.dev/llms/theming.md): Rebrand the system for a client by editing app/globals.css alone, choosing the layer that gives the outcome you want. - [Dark mode](https://design.silkware.dev/llms/dark-mode.md): How dark mode is wired with next-themes, how to add a toggle, how to give one section its own mode and how to treat images in dark. - [Registry](https://design.silkware.dev/llms/registry.md): What the Silkware registry holds, how to install from it, update what you installed, and how to host it. - [MCP](https://design.silkware.dev/llms/mcp.md): Connect the shadcn MCP server to the Silkware registry so a coding agent can browse, search and install components. - [Agents](https://design.silkware.dev/llms/agents.md): How coding agents discover, install and use the Silkware Design System, and how to keep what they build honest. - [Changelog](https://design.silkware.dev/llms/changelog.md): What each release of the Silkware Design System contains and what it does not do yet. ## Foundations - [Principles](https://design.silkware.dev/llms/foundations/principles.md): The five brand rules behind every Silkware interface, how tokens carry each one, and the few rules the system cannot enforce on its own. - [Colour](https://design.silkware.dev/llms/foundations/color.md): The three layers of colour in Silkware, every semantic token with its role, and the rules that keep crimson to one job per screen. - [Typography](https://design.silkware.dev/llms/foundations/typography.md): One family, three weights and Tailwind's standard text scale with Silkware's line heights and tracking, plus a small editorial layer for marketing pages. - [Typeset](https://design.silkware.dev/llms/foundations/typeset.md): One stylesheet for rendered text, from documentation to streaming agent replies, set in the Silkware theme through three presets. - [Spacing](https://design.silkware.dev/llms/foundations/spacing.md): Tailwind's four pixel scale for space inside components, and five named layout tokens for the space between them. - [Sizing](https://design.silkware.dev/llms/foundations/sizing.md): How tall controls are as shipped, which sizes to pair, and how to size a screen or a region for fingers with touch-controls. - [Radius](https://design.silkware.dev/llms/foundations/radius.md): One variable sets the corner scale. Controls are 6px, cards are 12px, and nothing is a pill. - [Elevation](https://design.silkware.dev/llms/foundations/elevation.md): Surfaces at rest are flat and parted by tone or a hairline. Only what floats above the page gets a shadow. - [Iconography](https://design.silkware.dev/llms/foundations/iconography.md): Lucide icons at the brand stroke weight, the brand arrow, the state square, and when an icon is better left out. - [Breakpoints](https://design.silkware.dev/llms/foundations/breakpoints.md): Tailwind's default breakpoints, which of them the components use, and how to build layouts that work from 320px to 1920px. - [Modes](https://design.silkware.dev/llms/foundations/modes.md): Light and dark, the two ways to switch them, and how to nest a dark band in a light page or a light panel in a dark one. - [Motion](https://design.silkware.dev/llms/foundations/motion.md): Overlays, menus and panels move with Animate UI, everything else on one ease, and reduced motion removes it all. - [Logo](https://design.silkware.dev/llms/foundations/logo.md): The Silkware mark, the S symbol beside the lowercase name, with where to get it, how to colour it and what never to do to it. - [Imagery](https://design.silkware.dev/llms/foundations/imagery.md): What a Silkware picture shows, how it carries the brand, and the rules for corners, edges, text on a picture, dark mode and alt text. ## Components - [Button](https://design.silkware.dev/llms/components/button.md): Starts an action, such as saving a form, sending an order or opening a dialog. - [Button Group](https://design.silkware.dev/llms/components/button-group.md): Joins related buttons, inputs and menus into one connected control with shared edges. - [Toggle](https://design.silkware.dev/llms/components/toggle.md): A two-state button that turns a setting or a filter on and off and stays pressed. - [Toggle Group](https://design.silkware.dev/llms/components/toggle-group.md): A set of toggles that work together, for choosing one option or several from a short row. - [Calendar](https://design.silkware.dev/llms/components/calendar.md): Shows a month grid so people can pick a date, several dates or a range of dates. - [Checkbox](https://design.silkware.dev/llms/components/checkbox.md): Lets people turn one option on or off, or pick any number of options from a list. - [Combobox](https://design.silkware.dev/llms/components/combobox.md): Combines a text input with a filtered list, so people can search a long list and pick from it. - [Date Picker](https://design.silkware.dev/llms/components/date-picker.md): A button that opens a calendar in a popover, so people can fill a date field in a form. - [Field](https://design.silkware.dev/llms/components/field.md): Combines a label, a control, a description and an error into one form field, and groups fields into forms. - [Input](https://design.silkware.dev/llms/components/input.md): Takes a single line of text, such as a supplier name, an order number or an email address. - [Input Group](https://design.silkware.dev/llms/components/input-group.md): Adds icons, units, text and buttons to the edges of an input or a textarea. - [Input OTP](https://design.silkware.dev/llms/components/input-otp.md): Takes a short one-time code, such as a six-digit verification code, in separate boxes that fill as you type or paste. - [Label](https://design.silkware.dev/llms/components/label.md): Names a form control in words, so that people and assistive technology know what it asks for. - [Native Select](https://design.silkware.dev/llms/components/native-select.md): Chooses one option from a list with the browser's own select, styled to match the system. - [Questionnaire](https://design.silkware.dev/llms/components/questionnaire.md): Asks one question at a time, with choices or free text, and collects the answers in a native form. - [Radio Group](https://design.silkware.dev/llms/components/radio-group.md): Lets people choose exactly one option from a short list that is all visible at once. - [Select](https://design.silkware.dev/llms/components/select.md): Lets people pick one option, or several, from a list that opens from a button. - [Slider](https://design.silkware.dev/llms/components/slider.md): Picks a number, or a range of numbers, by dragging a thumb along a track. - [Switch](https://design.silkware.dev/llms/components/switch.md): Turns a setting on or off, with an effect that applies as soon as it is flipped. - [Textarea](https://design.silkware.dev/llms/components/textarea.md): Takes several lines of text, such as a receiving note, a reason or a message to a supplier. - [Alert Dialog](https://design.silkware.dev/llms/components/alert-dialog.md): Interrupts the user with an action that needs a decision before work can continue. - [Command](https://design.silkware.dev/llms/components/command.md): A searchable list of actions and pages, shown inline or in a dialog, that people drive from the keyboard. - [Context Menu](https://design.silkware.dev/llms/components/context-menu.md): Opens a list of actions at the pointer when the user right clicks, long presses or uses the context menu key on an element. - [Dialog](https://design.silkware.dev/llms/components/dialog.md): Opens a window over the page for a task or a piece of information that needs focus before the user goes back to the page. - [Drawer](https://design.silkware.dev/llms/components/drawer.md): Slides a panel from any edge that the user can drag away, built for touch and for short tasks. - [Dropdown Menu](https://design.silkware.dev/llms/components/dropdown-menu.md): Opens a list of actions from a button, for commands that do not need a place of their own on the page. - [Hover Card](https://design.silkware.dev/llms/components/hover-card.md): Previews the content behind a link or a name when the user rests the pointer or focus on it. - [Menubar](https://design.silkware.dev/llms/components/menubar.md): A persistent bar of menus for an application that has many commands, in the style of a desktop app. - [Popover](https://design.silkware.dev/llms/components/popover.md): Shows interactive content next to the control that opened it, without leaving the page. - [Sheet](https://design.silkware.dev/llms/components/sheet.md): Slides a panel in from the edge of the screen for a secondary task that keeps the page in view. - [Tooltip](https://design.silkware.dev/llms/components/tooltip.md): Names or briefly explains a control when the user hovers over it or focuses it. - [Breadcrumb](https://design.silkware.dev/llms/components/breadcrumb.md): Shows the path from the top of the app to the current page as a row of links. - [Navigation Menu](https://design.silkware.dev/llms/components/navigation-menu.md): A row of links and menus for moving between the main sections of an app or site. - [Pagination](https://design.silkware.dev/llms/components/pagination.md): Moves between pages of a long list with numbered links and previous and next controls. - [Sidebar](https://design.silkware.dev/llms/components/sidebar.md): A vertical panel for the main navigation of an app, with groups, submenus and collapsible modes. - [Tabs](https://design.silkware.dev/llms/components/tabs.md): Switches between related views of the same content without leaving the page. - [Accordion](https://design.silkware.dev/llms/components/accordion.md): Stacks headings that each show or hide a section of content. - [Aspect Ratio](https://design.silkware.dev/llms/components/aspect-ratio.md): Holds a box at a fixed width to height ratio so media does not shift the layout. - [Card](https://design.silkware.dev/llms/components/card.md): Groups the content and actions of one subject on a surface of its own. - [Carousel](https://design.silkware.dev/llms/components/carousel.md): Shows a set of similar items in a row or a column that people move through with buttons, keys or a swipe. - [Collapsible](https://design.silkware.dev/llms/components/collapsible.md): Shows or hides one block of content from a single trigger. - [Direction](https://design.silkware.dev/llms/components/direction.md): Tells the components inside it to lay out left to right or right to left, and to read the locale's conventions. - [Resizable](https://design.silkware.dev/llms/components/resizable.md): Splits an area into panels whose sizes the user changes by dragging a handle or using the keyboard. - [Scroll Area](https://design.silkware.dev/llms/components/scroll-area.md): Gives a block of content a fixed size and lets it scroll inside that box. - [Separator](https://design.silkware.dev/llms/components/separator.md): Draws a thin line that divides groups of content. - [Avatar](https://design.silkware.dev/llms/components/avatar.md): Identifies a person or an organisation with an image, or with initials when there is no image. - [Badge](https://design.silkware.dev/llms/components/badge.md): Labels an item with a short word, such as a category, a count or a tag. - [Chart](https://design.silkware.dev/llms/components/chart.md): Draws bar, line, area and pie charts with Recharts, coloured from the theme's chart tokens. - [Code Block](https://design.silkware.dev/llms/components/code-block.md): Shows code, terminal output, logs and diffs, with an optional title, line numbers, highlighting and a copy button. - [Data Table](https://design.silkware.dev/llms/components/data-table.md): Builds a table with sorting, filtering, pagination, row selection and column visibility from the Table component and TanStack Table. - [Item](https://design.silkware.dev/llms/components/item.md): Lays out one entry of a list with an icon or image, a title, a description and actions. - [Kbd](https://design.silkware.dev/llms/components/kbd.md): Shows a key or a shortcut, so people can read which keys to press. - [Table](https://design.silkware.dev/llms/components/table.md): Shows records in rows and columns that people can scan, compare and act on. - [Typography](https://design.silkware.dev/llms/components/typography.md): Sets headings, text, labels, captions, code, figures, lists, quotes and tables from Tailwind's standard text scale with Silkware's line heights and tracking. - [Alert](https://design.silkware.dev/llms/components/alert.md): Puts a message in the page that stays until the situation changes, such as a hold, a failure or a draft state. - [Empty](https://design.silkware.dev/llms/components/empty.md): Fills a view that has no content yet, and tells people what to do next. - [Progress](https://design.silkware.dev/llms/components/progress.md): Shows how far a task that takes a while has come, such as an upload, an import or a sync. - [Skeleton](https://design.silkware.dev/llms/components/skeleton.md): Holds the place of content that is still loading, in the shape it will take. - [Spinner](https://design.silkware.dev/llms/components/spinner.md): Shows that something is loading when you cannot say how long it will take. - [Toast](https://design.silkware.dev/llms/components/toast.md): Shows a short message that appears over the page, then disappears by itself, such as a confirmation after an action. - [Attachment](https://design.silkware.dev/llms/components/attachment.md): Shows a file or an image that belongs to a message or a form, with its name, details, upload state and actions. - [Bubble](https://design.silkware.dev/llms/components/bubble.md): Holds one turn of a conversation, with a visual weight that tells the reader who is speaking and what kind of message it is. - [Marker](https://design.silkware.dev/llms/components/marker.md): Marks a point in a stream of content, such as a date, a status line or a step the agent took, without taking the weight of a message. - [Message](https://design.silkware.dev/llms/components/message.md): Lays out one row of a conversation, with an avatar, a sender line, the message itself and a footer for status and actions. - [Message Scroller](https://design.silkware.dev/llms/components/message-scroller.md): Scrolls a conversation the way readers expect, following new messages only when they are at the end and never moving them against their intent. - [Trace](https://design.silkware.dev/llms/components/trace.md): Shows one step of work an agent did, is doing or will do, as a single line that can expand to the detail. ## AI Elements - [AI Elements](https://design.silkware.dev/llms/ai-elements.md): Patterns for conversations with an agent, built from the Silkware components and copied into your project. - [Chain of Thought](https://design.silkware.dev/llms/ai-elements/chain-of-thought.md): The agent's steps as one summary line that opens into each search, read and result, with failures marked. - [Chat](https://design.silkware.dev/llms/ai-elements/chat.md): The thread of a conversation with the agent, with a scroller that keeps the reader's place while a reply streams. - [Checkpoint](https://design.silkware.dev/llms/ai-elements/checkpoint.md): A marker after a turn that lets the person return the conversation to that point. - [Confirmation](https://design.silkware.dev/llms/ai-elements/confirmation.md): Asks the person to approve or deny a tool call before the agent runs it. - [Context](https://design.silkware.dev/llms/ai-elements/context.md): A button that shows how much of the model's context window is used, with a breakdown on hover or focus. - [File Tree](https://design.silkware.dev/llms/ai-elements/file-tree.md): Shows a folder structure that opens and closes, with one file selected. - [Inline Citation](https://design.silkware.dev/llms/ai-elements/inline-citation.md): A small source chip placed inside a sentence that shows the page behind the claim on hover or focus. - [Message](https://design.silkware.dev/llms/ai-elements/message.md): One turn of the conversation, the person's or the agent's, with the actions that belong to it. - [Model Selector](https://design.silkware.dev/llms/ai-elements/model-selector.md): A menu in the prompt field that lets the person choose which model answers, grouped by provider. - [Plan](https://design.silkware.dev/llms/ai-elements/plan.md): Shows the steps an agent intends to take and how far it has got through them. - [Prompt Input](https://design.silkware.dev/llms/ai-elements/prompt-input.md): The field where the person writes to the agent, with attachments, model and effort choices and a send button. - [Queue](https://design.silkware.dev/llms/ai-elements/queue.md): Lists the work an agent has left and the work it has finished, in two collapsible groups. - [Reasoning](https://design.silkware.dev/llms/ai-elements/reasoning.md): A line for the agent's thinking that opens while it thinks and closes when it is done. - [Sources](https://design.silkware.dev/llms/ai-elements/sources.md): The pages and documents the agent used, as a collapsed list under its answer. - [Stack Trace](https://design.silkware.dev/llms/ai-elements/stack-trace.md): Shows an error with the frames from your own code first and the framework frames folded away. - [Subagent](https://design.silkware.dev/llms/ai-elements/subagent.md): Shows another agent working on a sub-task, with its own steps and a report. - [Suggestion](https://design.silkware.dev/llms/ai-elements/suggestion.md): A row of ready-made prompts the person can send with one press. - [Task](https://design.silkware.dev/llms/ai-elements/task.md): Shows one piece of work as a titled group of steps that finish one after another. - [Terminal](https://design.silkware.dev/llms/ai-elements/terminal.md): Shows a command the agent ran, with its output streaming in and its exit code. - [Test Results](https://design.silkware.dev/llms/ai-elements/test-results.md): Summarises a test run by suite and by test, and opens the error of each failure. - [Tool](https://design.silkware.dev/llms/ai-elements/tool.md): Shows a tool call the agent made, from pending to finished, with its input and output on request. ## Patterns - [Navigation](https://design.silkware.dev/llms/patterns/navigation.md): Gets people to the part of Silkware they need and tells them where they are. - [Forms](https://design.silkware.dev/llms/patterns/forms.md): Collects structured input with clear labels, inline validation and a form-level summary when the server says no. - [Dashboards](https://design.silkware.dev/llms/patterns/dashboards.md): Shows how work is going and what waits on a person, in one page that is read in under a minute. - [Tables](https://design.silkware.dev/llms/patterns/tables.md): Lets people scan, sort, select and act on many records of the same kind. - [Filters](https://design.silkware.dev/llms/patterns/filters.md): Narrows a long list to the records a person needs, and always shows what is narrowing it. - [Authentication](https://design.silkware.dev/llms/patterns/authentication.md): Lets a person sign in, recover access and create an account without losing their way or their data. - [Settings](https://design.silkware.dev/llms/patterns/settings.md): Lets people change how a product works for them or for their company, safely and in one place. - [Loading states](https://design.silkware.dev/llms/patterns/loading-states.md): Shows that work is in progress, keeps the page stable and tells people how long to expect. - [Empty states](https://design.silkware.dev/llms/patterns/empty-states.md): Explains why there is nothing to show and offers the next step. - [Error states](https://design.silkware.dev/llms/patterns/error-states.md): Tells people what happened, keeps their work and gives them a way forward. ## Guidelines - [Information hierarchy](https://design.silkware.dev/llms/guidelines/information-hierarchy.md): How to order a Silkware screen so the person sees the one thing that needs them first. - [Component usage](https://design.silkware.dev/llms/guidelines/component-usage.md): Which component to use for which job, and the rules for composing screens from them. - [Accessibility](https://design.silkware.dev/llms/guidelines/accessibility.md): What the system guarantees, what you must still provide, and how to test that a screen works for everyone. - [Responsive design](https://design.silkware.dev/llms/guidelines/responsive-design.md): How Silkware layouts adapt from a 320px phone to a 1920px monitor without a second design. - [UX writing](https://design.silkware.dev/llms/guidelines/ux-writing.md): How Silkware's voice applies to interface text, from a button label to what an agent reports.