# Dify UI > Dify UI is the design system of Dify's frontend: React primitives built on Base UI, design tokens, Tailwind CSS styles and the `cn()` utility. Components are imported from `@langgenius/dify-ui/`. - Get started - [Overview](/get-started/overview.md): What Dify UI is, what it adds to Base UI, how these docs are organized, and how to read them with LLMs. - [Installation](/get-started/installation.md): Add Dify UI to a workspace package, set up its styles, theme, icons and layering, and assemble a first component. - Foundations - [Colors](/foundations/colors.md): Semantic color tokens for text, surfaces, borders and states, with their light and dark values. - [Typography](/foundations/typography.md): Text style utilities that set font size, weight and line height together. - [Shadows](/foundations/shadows.md): Elevation and component shadows registered as Tailwind CSS shadow utilities. - [Radius](/foundations/radius.md): Choosing a Tailwind CSS radius class that matches the design value. - Guides - [Accessible names](/guides/accessible-names.md): How Dify UI and its consumers choose naming and description sources. - [Forms](/guides/forms.md): Submit boundaries, value ownership, fields, labels and grouped controls. - [Overlays](/guides/overlays.md): Portals, presence lifecycles, layering, opening and choosing overlay primitives. - [Selection](/guides/selection.md): Choosing a selection primitive and keeping the caller's value type. - [Styling](/guides/styling.md): State styling, composition, Tailwind setup, theme, direction and focus indicators. - Components - [Alert](/components/alert.md): An in-page status message with a type icon, optional actions and close button. - [Alert Dialog](/components/alert-dialog.md): A modal confirmation that requires an explicit answer before the user continues. - [Autocomplete](/components/autocomplete.md): A text input that suggests values as the user types. - [Avatar](/components/avatar.md): A profile picture with initials or an icon as its fallback. - [Breadcrumb](/components/breadcrumb.md): A navigation landmark that shows where the current page sits in a hierarchy. - [Button](/components/button.md): A button that triggers an action, with Dify variants, sizes and a pending state. - [Checkbox](/components/checkbox.md): A checkbox for one boolean field value, with an indeterminate state. - [Checkbox Group](/components/checkbox-group.md): Shared multiple-selection state for the checkboxes it renders. - [Coachmark](/components/coachmark.md): A guided-tour step that spotlights an element already on the page. - [Collapsible](/components/collapsible.md): A disclosure that shows and hides one panel from a trigger. - [Combobox](/components/combobox.md): A searchable input that selects and remembers one or more values. - [Context Menu](/components/context-menu.md): A menu of contextual actions that opens on right-click or long press. - [Date Picker](/components/date-picker.md): A calendar popover that picks a civil date stored as YYYY-MM-DD. - [Date Time Picker](/components/date-time-picker.md): A calendar and time popover that picks an instant in a time zone. - [Dialog](/components/dialog.md): A modal surface for a focused task that interrupts the page, with header, body and footer parts. - [Direction Provider](/components/direction-provider.md): A context that switches components to right-to-left behavior. - [Drawer](/components/drawer.md): A panel that slides in from a screen edge and dismisses with a swipe. - [Field](/components/field.md): A form row that ties one control to its label, description and error. - [Fieldset](/components/fieldset.md): A native fieldset that names a group of related form controls. - [File Drop](/components/file-drop.md): A drop area that receives local files by drag and drop or the file picker. - [File Tree](/components/file-tree.md): A nested list of folders and files for browsing and previewing project files. - [Form](/components/form.md): A native form boundary that submits values and shows field errors. - [Icon Button](/components/icon-button.md): An icon-only command button with a required accessible name. - [Infotip](/components/infotip.md): An information icon that opens a short explanation on hover, click or touch. - [Input](/components/input.md): A single-line text input that takes its label and validation from Field. - [Input Group](/components/input-group.md): A text input that shares one surface with a prefix, suffix or action. - [Kbd](/components/kbd.md): Keycaps that display a keyboard shortcut next to an action. - [Menu](/components/menu.md): A button-triggered list of actions, with groups, submenus and filtering. - [Meter](/components/meter.md): A bar that shows a measured value within a known range. - [Number Field](/components/number-field.md): A numeric input with stepper buttons, units, bounds and locale formatting. - [Pagination](/components/pagination.md): A navigation bar that pages through long lists with jump and size controls. - [Password Field](/components/password-field.md): A password input with a toggle that reveals the typed value. - [Popover](/components/popover.md): A floating panel anchored to a trigger for explanatory, structured or interactive content. - [Preview Card](/components/preview-card.md): A hover preview of a link destination for sighted pointer and keyboard users. - [Progress](/components/progress.md): A bar or circle that shows how far a task has run. - [Radio Group](/components/radio-group.md): A set of visible options that holds one persistent field value. - [Scroll Area](/components/scroll-area.md): A native scroll container with Dify overlay scrollbars. - [Segmented Control](/components/segmented-control.md): A compact row of options that switches one mode, view or filter. - [Select](/components/select.md): A closed, scannable list that chooses one or more values without text entry. - [Separator](/components/separator.md): A static line that divides content or action groups. - [Slider](/components/slider.md): A track and thumb that picks a number or range by dragging. - [Spinner](/components/spinner.md): An indeterminate loading indicator with a required accessible name. - [Status Dot](/components/status-dot.md): A decorative dot that marks a status beside its visible text. - [Switch](/components/switch.md): An on/off setting that takes effect immediately, with a loading state. - [Tabs](/components/tabs.md): A tab list that switches between related panels in place. - [Textarea](/components/textarea.md): A multiline text input with three sizes that integrates with Field. - [Time Picker](/components/time-picker.md): A popover with hour and minute columns that picks a wall time. - [Toast](/components/toast.md): Transient notifications sent from anywhere in the app through a shared manager. - [Toggle](/components/toggle.md): A button with a pressed state, composed with Button or IconButton. - [Tooltip](/components/tooltip.md): A visual hint that labels a control on hover or keyboard focus. - Utilities - [cn](/utilities/cn.md): Joins class names and resolves conflicting Tailwind CSS utilities. - [mergeProps](/utilities/merge-props.md): Merges React prop objects, chaining event handlers and joining classes and styles. - [useMediaQuery](/utilities/use-media-query.md): Reads whether a CSS media query matches and follows its changes. - [useMergedRefs](/utilities/use-merged-refs.md): Combines several refs into one memoized callback ref. - [useRefWithInit](/utilities/use-ref-with-init.md): A ref whose initial value comes from a function called once. - [useRender](/utilities/use-render.md): Builds a part that supports the render prop and state data attributes. - Contributing - [Public API authoring](/contributing/authoring.md): Subpath exports, imports, naming, public types, generics and JSDoc for primitives. - [Testing and development](/contributing/testing.md): Package commands, test ownership, accessibility checks and visual regression.