# cherry > Documentation for cherry 2.0, an open source React design system in plain CSS: accessible components, light and dark mode from one brand color, zero styling runtime and Server Components ready. Every page link below points to a markdown mirror; drop the .md suffix for the HTML version. Full corpus in one file: https://docs.cherry.al/llms-full.txt Agent skill: https://docs.cherry.al/skill.md MCP server (streamable HTTP; tools: search_docs, get_doc, list_docs): https://docs.cherry.al/api/mcp ## Guide ### Getting Started - [Introduction](https://docs.cherry.al/index.md): cherry 2.0 is a themeable React design system in plain CSS: zero styling runtime, Server Components ready, WCAG 2.2 AA. - [Installation](https://docs.cherry.al/installation.md): Install cherry 2.0 and set it up in Next.js, Vite or any React app: stylesheet, init script, router links, fonts and server-side mode. - [Skill for AI agents](https://docs.cherry.al/ai-skill.md): Install the cherry-react agent skill so coding agents use cherry components, exact props, tokens and accessibility rules. ### Customization - [Dark mode](https://docs.cherry.al/dark-mode.md): Light, dark and system modes in cherry 2.0: the init script, useColorMode, ThemeToggle, per-section modes and where the preference is stored. - [Brands](https://docs.cherry.al/brands.md): Build a cherry brand from one accent color with createBrand, or override the paired --cherry-l-* and --cherry-d-* color slots in CSS. - [Colors](https://docs.cherry.al/colors.md): Every cherry 2.0 color token as swatches: semantic colors for light and dark mode, and the raw palette they point to. - [Tokens](https://docs.cherry.al/tokens.md): Every non-color --cherry-* design token in cherry 2.0: spacing, radius, elevation, focus rings, motion, layout and typography. - [Styling](https://docs.cherry.al/styling.md): Customize cherry with plain CSS: @layer cherry, className overrides without !important, stable classes and data attributes, and your own components. ### Resources - [Accessibility](https://docs.cherry.al/accessibility.md): What cherry 2.0 guarantees for WCAG 2.2 AA, how it is tested, the keyboard patterns, and what your app must provide. - [Migrating from 1.x](https://docs.cherry.al/migration.md): Move from cherry-styled-components to cherry 2.0 (@cherry-design-system/react): setup, props, toasts, layout and styling, with before and after code. - [Changelog](https://docs.cherry.al/changelog.md): Release notes for every version of cherry 2.0, the @cherry-design-system/react package. ## Components ### Overview - [Overview](https://docs.cherry.al/components.md): Every component in Cherry 2.0, grouped by category, with a short note on what each one does and a link to its page. ### Actions - [Button](https://docs.cherry.al/components/button.md): Button component for actions: five variants, three sizes, leading and trailing icons, full width and a loading state. - [ConfirmButton](https://docs.cherry.al/components/confirm-button.md): Two-step destructive action button: the first click reveals Confirm and Cancel, the second runs the action. - [IconButton](https://docs.cherry.al/components/icon-button.md): Square icon-only button with ghost, outline and solid variants, three sizes and toggle support through aria-pressed. - [Link](https://docs.cherry.al/components/link.md): Underlined text link with default and muted variants and an external mode that opens a new tab and announces it. - [ToggleGroup](https://docs.cherry.al/components/toggle-group.md): Segmented control: a single-select radio group with a sliding pill, or a multi-select group of pressed buttons. ### Forms - [AvatarDropzone](https://docs.cherry.al/components/avatar-dropzone.md): Round profile picture picker: click, keyboard or drop an image, preview it, and remove it with a labelled button. - [Checkbox](https://docs.cherry.al/components/checkbox.md): Checkbox on a native input with a visible label, three sizes, an indeterminate state and an error state. - [Combobox](https://docs.cherry.al/components/combobox.md): Text input with a filterable listbox: type to narrow the options, arrow keys to move, Enter to select. - [Dropzone](https://docs.cherry.al/components/dropzone.md): Drag-and-drop file area around a real file input, with type, size and count limits, plus FileItem rows for uploads. - [Field](https://docs.cherry.al/components/field.md): Wraps a form control with a label, hint and error message, and wires the ids and ARIA attributes for you. - [Input](https://docs.cherry.al/components/input.md): Single-line text input with three sizes, a leading icon slot, a suffix slot and an error state wired to Field. - [NumberField](https://docs.cherry.al/components/number-field.md): Numeric input with decrement and increment buttons, min and max clamping, step snapping and spinbutton keyboard support. - [OTPInput](https://docs.cherry.al/components/otp-input.md): One-time code input with single-character slots, paste and SMS autofill support, and an optional separator. - [Password](https://docs.cherry.al/components/password.md): Password input with an animated show and hide toggle, controlled or uncontrolled visibility and Field support. - [Radio](https://docs.cherry.al/components/radio.md): Native radio buttons grouped by RadioGroup, with shared name, value, size and error state, and arrow key navigation. - [Range](https://docs.cherry.al/components/range.md): Slider on a native range input with a filled track, three sizes and full keyboard and touch support. - [Select](https://docs.cherry.al/components/select.md): Native select with a placeholder option, three sizes and a styled, animated picker where the browser supports it. - [Textarea](https://docs.cherry.al/components/textarea.md): Multi-line text input that grows with its content, with an optional row cap and a character count. - [Toggle](https://docs.cherry.al/components/toggle.md): On/off switch built on a native checkbox with role switch, usable without client JavaScript. ### Date and time - [Calendar](https://docs.cherry.al/components/calendar.md): Inline month grid for picking a single date or a date range, with min and max limits, disabled days and locale support. - [DatePicker](https://docs.cherry.al/components/date-picker.md): Input-like trigger that opens a Calendar in a popover, submits YYYY-MM-DD with forms and works inside Field. - [DateTimePicker](https://docs.cherry.al/components/date-time-picker.md): Day and time in one popover: a Calendar beside a column of time slots, confirmed with Cancel and Apply. - [TimePicker](https://docs.cherry.al/components/time-picker.md): Time field that opens a list of time slots or hour and minute columns, with step, min, max and 12 or 24-hour clocks. ### Layout - [Card](https://docs.cherry.al/components/card.md): A surface for grouping content, with outline, elevated and filled variants, padding sizes, an icon tile, a title and a description. - [Container](https://docs.cherry.al/components/container.md): A centered page column with the container max width and responsive padding, rendered as a plain div with no client JavaScript. - [Flex](https://docs.cherry.al/components/flex.md): Flexbox row or column with responsive direction, alignment, wrap and gap props, plus Stack for vertical lists. No client JavaScript. - [Grid](https://docs.cherry.al/components/grid.md): CSS grid of equal columns with a responsive column count and gap, plus Col for cells that span several columns. No client JavaScript. - [Separator](https://docs.cherry.al/components/separator.md): A 1px horizontal or vertical rule with an optional centered label, announced as a separator or hidden when decorative. ### Navigation - [Breadcrumb](https://docs.cherry.al/components/breadcrumb.md): Breadcrumb trail rendered as a nav landmark with an ordered list, chevron or slash separators, and the last entry marked as the current page. - [Menu](https://docs.cherry.al/components/menu.md): Menu button that opens a list of actions anchored to its trigger, with groups, separators, shortcuts, danger items and full keyboard support. - [NavPill](https://docs.cherry.al/components/nav-pill.md): Top navigation pill with a sliding highlight, optional sticky or fixed placement, route tracking and in-page section tracking. - [Pagination](https://docs.cherry.al/components/pagination.md): Page navigation with numbered or compact layouts, rendered as plain links for Server Components or as buttons with a change handler. - [Sidebar](https://docs.cherry.al/components/sidebar.md): App sidebar with header and footer slots, titled or collapsible groups of items, badges and an icon-rail collapsed state. No client JavaScript. - [Stepper](https://docs.cherry.al/components/stepper.md): Progress through a multi-step flow as an ordered list, horizontal or vertical, with completed, current and upcoming states. - [Tabs](https://docs.cherry.al/components/tabs.md): Tabs with pill or underline styles, a sliding indicator, keyboard navigation and panels matched to tabs by value. ### Overlays - [Modal](https://docs.cherry.al/components/modal.md): Modal dialog on the native dialog element with a title, description, body, footer, three sizes and platform focus trapping. - [Popover](https://docs.cherry.al/components/popover.md): Floating panel on the native popover attribute, anchored to its trigger with CSS anchor positioning and opened without client JavaScript. - [SearchDialog](https://docs.cherry.al/components/search-dialog.md): Command-palette search on a native dialog: a combobox input over grouped results, keyboard navigation, an optional preview panel and status. - [Sheet](https://docs.cherry.al/components/sheet.md): Panel that slides in from the left, right or bottom edge on the native dialog element, with a scrolling body and a pinned footer. - [Toast](https://docs.cherry.al/components/toast.md): Transient notifications with ToastProvider, Toaster and the useToast hook: show, update, dismiss and promise toasts with status colors and actions. - [Tooltip](https://docs.cherry.al/components/tooltip.md): Short hint shown on hover and keyboard focus, linked to its trigger with aria-describedby and anchored in the top layer. ### Feedback - [Badge](https://docs.cherry.al/components/badge.md): A small status pill with eight tones, two sizes and an optional leading dot, for labels such as Live, Beta or Failed. - [Banner](https://docs.cherry.al/components/banner.md): A full-width announcement bar with an icon, a trailing action and an optional dismiss button that collapses it away. - [Callout](https://docs.cherry.al/components/callout.md): An inline message box for supplementary, cautionary or critical notes, with five status variants and a default icon each. - [EmptyState](https://docs.cherry.al/components/empty-state.md): A placeholder for an empty list, a search with no results or a first run, with an icon, title, description and actions. - [Progress](https://docs.cherry.al/components/progress.md): A linear progress bar with an optional label and percentage, three colors, two thicknesses and an indeterminate mode. - [Skeleton](https://docs.cherry.al/components/skeleton.md): A shimmering loading placeholder shaped as text lines, a circle or a rectangle, to hold the layout while content loads. - [Spinner](https://docs.cherry.al/components/spinner.md): A spinning loader icon in four sizes that announces a busy state, or stays silent when nearby text already says it. - [Tag](https://docs.cherry.al/components/tag.md): A value chip in three variants and two sizes that can be removed, shrinking and fading out before your list drops it. ### Data display - [Accordion](https://docs.cherry.al/components/accordion.md): A stack of disclosures built on native details and summary, in card or inline style, with one-at-a-time or multiple open. - [Avatar](https://docs.cherry.al/components/avatar.md): A round avatar with an image, initials or icon fallback and a presence dot, plus AvatarGroup for overlapping rows with a +N counter. - [CodeBlock](https://docs.cherry.al/components/code-block.md): A framed code listing with a file name, language tag, copy button, line numbers and highlighted lines. - [InlineCode](https://docs.cherry.al/components/inline-code.md): An inline code chip in the mono typeface, for function names, props and short values inside running text. - [Kbd](https://docs.cherry.al/components/kbd.md): A keyboard key chip for shortcuts, showing text such as esc or Cmd K, or an icon with an accessible label. - [Prose](https://docs.cherry.al/components/prose.md): Typography for rendered markdown and CMS content: headings, paragraphs, links, lists, quotes, code, tables and media. - [Snippet](https://docs.cherry.al/components/snippet.md): A one-line command with a prompt and a copy button that falls back to selecting the text when the clipboard is unavailable. - [StatCard](https://docs.cherry.al/components/stat-card.md): A metric tile with a label, value, trend-colored delta and an optional sparkline, for dashboards and reports. - [Table](https://docs.cherry.al/components/table.md): A native HTML table in a rounded, horizontally scrollable frame, with striped rows, hover, density and numeric columns. - [ThemeToggle](https://docs.cherry.al/components/theme-toggle.md): A System, Light and Dark segmented switch that sets and stores the color mode preference. ### Chat - [Chat](https://docs.cherry.al/components/chat.md): Composable parts for an assistant chat: launcher, panel, transcript, messages, composer, typing indicator, sources and suggestions. ## Other languages and versions - [v1.x](https://docs.cherry.al/v1/llms.txt)