Qdrant's UI component library, @qdrant/design-system: shadcn on Base UI, styled only through the Qdrant primitives. The web sections in web/ are built from it, and the studio shows it. Product UI will use it later.
Agents: read AGENTS.md. The look and its decisions are in DESIGN.md.
| Path | What it is |
|---|---|
components/ui/ |
The shadcn components (63), from the Qdrant preset. Restyled only through tokens |
components/qdrant/ |
Qdrant's own components, built from the ones in ui/. Empty for now |
styles/globals.css |
The stylesheet: Tailwind, the primitives, and shadcn's tokens mapped onto the Qdrant roles |
styles/tokens.css |
Generated: the Qdrant palette as Tailwind colors. Tailwind's default palette is switched off |
styles/components/ |
Component tokens (--qd-ui-*): each component's size, shape, type and edges, read by its classes (ui.css explains the tiers). button.css is the button's look, shared with the creative button |
lib/, hooks/ |
Helpers the components use |
components.json |
shadcn's settings for this package |
primitives/*/*.tokens.json: the source, matching the Figma primitives.node primitives/build.mjs(orpnpm tokens) writesprimitives/*/*.css(--qd-*variables) andstyles/tokens.css.styles/globals.cssimports them and maps shadcn's tokens by meaning:backgroundisbackground.default,cardisraised,primaryis the brand red, and so on.- The components use shadcn's semantic classes, so they follow the primitives without knowing them.
Change a value at step 1, never further down.
The studio already does this. A new app in this workspace would:
// app/layout.tsx
import "@qdrant/design-system/globals.css"
// any component
import { Button } from "@qdrant/design-system/components/ui/button"Add "@qdrant/design-system": "workspace:*" to the app's dependencies, list it in transpilePackages in next.config.ts, and put data-theme="dark" (or "light") on <html>.
- A shadcn component: from
studio/,pnpm dlx shadcn@latest add <name>. Then move any helper it wrote intostudio/hooksorstudio/libover tohooks/orlib/here (AGENTS.mdsays how). - A Qdrant component: a file in
components/qdrant/, built fromcomponents/ui/, using tokens only. - A component's size, shape or type: its token in
styles/components/, never a value in its classes. Try values in the studio first. - A look shared with a brand component: variables in
styles/components/, imported by both sides, likebutton.css.
Check every change in the studio, in dark and in light, before committing.