# Design system - Library - [Start here](/library): The design system for Matrix OS. One set of tokens, components and rules for every surface, with copy-paste code for each. - **Foundations** - [Colors](/library/foundations/colors): Green is Matrix's brand tone, neutral drives action, coral warns of danger, teal confirms success and gold highlights. Every color on screen is a step of these brand scales; semantic tokens wrap the right step, so product code rarely reaches for a raw number. - [Elevation](/library/foundations/elevation): Elevation says how far a surface sits above the page. Seven steps up, one that casts upward, all tinted with the Matrix warm neutral. - [Iconography](/library/foundations/iconography): Matrix uses Lucide, 1,800+ crisp stroke icons drawn on a 24×24 grid. One Icon component sets the size and the stroke, so every icon matches. Click any icon to copy its import name. - [Logo](/library/foundations/logo): The Matrix rabbit, in three approved looks, with clear space, sizes and the app icons built from it. One canonical mark, never redrawn. - [Radius](/library/foundations/radius): Matrix is rounded but precise. Eight steps from a 2px corner to a full pill, chosen by the size of the element. Controls are 8px at every size; surfaces that hold them are 12px. - [Spacing](/library/foundations/spacing): Every gap, padding and border comes from one scale on the 4px grid. Fine steps for the inside of components, wide steps for page layout, and no value outside them. - [Typography](/library/foundations/typography): Geist, five sizes, three weights. Hierarchy comes from weight and whitespace, not from ever-bigger text. Bricolage Grotesque is kept for brand moments. - **Components** - [Avatar](/library/components/avatar): A circular identity for a person. A photo when there is one, otherwise initials, otherwise an icon. Agents are shown with the mascot, not an avatar. - [Badge](/library/components/badge): A small, non-interactive label for status or category. Six tints from the color system, three sizes, an optional dot or icon. - [Button](/library/components/button): Triggers an action. Four variants by emphasis, destructive versions for irreversible actions, and a link style. Neutral for actions, coral only for danger. - [Checkbox](/library/components/checkbox): Turns one option on or off, or picks several from a list. Outlined, with a dark check when selected. - [Dropdown menu](/library/components/dropdown-menu): A button-triggered list of actions. One size, 32px rows with 14px text and icons; rows grow to 40px on touch. - [Field](/library/components/field): The standard form unit. A label above the control, optional help text or an error below, with the spacing built in. - [Input](/library/components/input): Single-line text entry, with room for icons, text, keyboard hints and small buttons inside the field. - [Radio group](/library/components/radio-group): Picks exactly one of a few options you can see at once. - [Select](/library/components/select): Picks one value from a short, known list. Click and pick, no typing. Looks and sizes like Input. - [Switch](/library/components/switch): Turns a setting on or off, effective immediately. - [Tooltip](/library/components/tooltip): A short plain-text hint on hover or keyboard focus. What an icon button does, or the full text of a label that's cut off. A few words, never interactive. - Guides - [Guides](/guides): How the library's parts work together. Each guide settles one kind of decision, for the people and the AI agents building Matrix OS. - [Build with AI agents](/guides/ai-agents): How to set up Claude Code, Cursor or any coding agent so the UI it writes follows the Matrix design system. A rules block to paste, the order to work in, and the checklist before every pull request. - [Choosing a component](/guides/choosing-components): Start from what people need to do, then pick the component. One component per job, so the same task looks and works the same everywhere in Matrix OS. - [Color usage](/guides/color-usage): Each Matrix color means one thing. Neutral does the work, coral warns of danger, teal confirms, gold highlights and green is the brand. Pick by meaning, with semantic tokens. - [Using the logo](/guides/logo): Which rabbit look goes where, how big, with how much room, and the few things you never do to it. For screens, app icons and marketing. - [Actions](/guides/actions): How buttons, links and menus are placed so every screen has one clear next step. Emphasis by variant, neutral for actions, coral only when something will be destroyed. - [Forms](/guides/forms): How to build forms people get right the first time. Every control sits in a Field with a visible label, errors name the fix, and the spacing is built in.