BlogStyling

Vercel UI SDK ships without styles. How do you make it look good?

Vercel UI SDK handles component behavior without shipping any styles. Learn its five layers and how to pair it with design tokens so AI agents build clean UI.

KKe HaoranNovember 27, 20267 min read
Wireframe of a dialog component with a paintbrush outlining its border in character-line art

Vercel UI SDK is an unstyled UI component foundation released by Vercel in November, built to work across React, Vue, Svelte, Solid, and Web Components. In this post, we break down how its internals fit together and how to dress it with a clean visual system.

Most people who install it for the first time pause when the page renders: everything is completely bare, without even a border around a button. That is intentional—it was never meant to ship with styles.

What it is

Think of renovating an apartment: Vercel UI SDK is a bare-shell unit with the plumbing, wiring, doors, and windows already finished. Flip a switch and the light turns on; close the door and the lock catches. The walls are still raw concrete and the floor is bare—whether you go minimalist monochrome or warm and cozy is entirely up to you.

In code terms, it is an unstyled UI component toolkit. The tedious parts of frontend interaction—how focus moves, how overlays open and close, how options switch—are all built in. What it omits is every visual decision: colors, border radii, and spacing are left blank, with no default theme injected into your project. Drop a component onto a page and the behavior works immediately, while the appearance starts as a clean slate.

What problem it solves

If you have shipped enough product interfaces, you have probably been burned from both sides.

Using a pre-styled component library is like buying a suit off the rack. Getting dressed is fast, until you want to slim down the lapel or swap the fabric. Suddenly you are digging through internal class names, writing layers of overrides, and fighting selector specificity. Before long, your stylesheet is all patches and nobody wants to touch it.

Going the opposite route—building everything from scratch on raw HTML elements—is like cutting cloth and stitching a suit yourself. Drawing a rounded border takes seconds; the hard part is every interaction detail underneath. Focus has to stay trapped inside an open popover, arrow keys need to move between options, and dragging has to track coordinates. Those details look minor until you hit the edge cases, and a single component can eat up days.

Switching frameworks hurts just as much. Move a project from React to Vue or Svelte, and your old component library stops working—so you end up hitting the same interaction bugs all over again.

Vercel UI SDK splits behavior cleanly from appearance. Underneath sits a framework-agnostic TypeScript core, wrapped by thin component layers for each framework so you never have to rebuild interaction logic. The styling layer stays completely empty: no default skin to fight, just your own design applied straight on top.

Who built it

Vercel released UI SDK on November 12, 2026. It is still in beta, so APIs may continue to evolve—check the changelog before adopting it in a production app so version upgrades do not catch you by surprise.

The source lives in vercel-labs/ui, centered on a framework-agnostic TypeScript core with five framework packages: React, Vue, Svelte, Solid, and Web Components. Even if you switch frameworks across projects, the underlying interactions stay consistent. If you use the React package, note that it requires React 19 or higher.

The five layers inside

From bottom to top, UI SDK is structured into five layers.

LayerWhereWhat it handles
Your stylesCSS · TailwindColors, border radii, typography, spacing
Components@ui-sdk/react55 components, all unstyled
PartscreatePartsEvery part gets a data-slot
PrimitivesdefinePrimitiveComposes behaviors into a component
Behaviors@ui-sdk/coreFocus, selection, overlays, drag

At the bottom is the behavior layer, backed by @ui-sdk/core. It knows nothing about visuals and handles low-level interactions like focus, selection, overlays, and dragging. When assembling pages from ready-made components, you rarely touch this layer—only when you need an unlisted interaction or are tracking down a tricky focus bug.

One level up is the primitives layer, built around definePrimitive. It combines individual behaviors into a specific component model. In day-to-day product work you rarely call it directly, unless you want to reuse core behaviors to build a brand-new component type.

Next is the parts layer, where createParts splits a primitive into structural pieces and automatically stamps each piece with a data-slot attribute. You write createParts when extending components; in daily page work you do not call it, yet you write styles against its data-slot attributes every day.

Above that sits the components layer—@ui-sdk/react in React. It ships 55 unstyled components, and this is where you spend most of your time when building dashboards or settings screens, importing and composing them directly.

At the very top are your styles. Both plain CSS and Tailwind work out of the box, and you can use css() to define your own CSS variables so color, radius, and spacing tokens live in one place.

Styling hooks rely on attributes already rendered on the DOM nodes. The styling docs cover every pattern in detail.

Target parts with data-slot. Sub-parts follow the component-part pattern, such as tabs-list, while root parts use just the component name, like copy-button. There is no need to invent ad-hoc class names for every element—just select by slot.

State is exposed through data-* attributes: present means on, absent means off. Clicking a copy button sets data-copied; entering text sets data-filled. For enter and exit transitions, style data-starting-style and data-ending-style to define how an element enters and leaves. Standard aria-* attributes also work directly as selectors.

With plain CSS and custom properties, styling looks like this:

[data-slot="copy-button"] {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
}

[data-slot="copy-button"][data-copied] {
  background: var(--accent);
}

[data-starting-style],
[data-ending-style] {
  opacity: 0;
}

With Tailwind it is even shorter—one line expresses the state right in the variant prefix:

<CopyButton className="data-copied:bg-neutral-900" />

Code alone only tells half the story. Try the live theme swapper below: it is the exact same settings card with untouched markup—swapping only the underlying design tokens switches cleanly between Monochrome, Coral, Helios, and Espresso.

Notification settings
Choose which alerts you want to receive
Weekly digestSent every Monday morning
New commentsNotify me when someone replies
Alert volume
Same parts, different token set

Why it matters for AI agents

Many indie developers now lean on AI agents to write frontend interfaces. After using them for a while, two failure modes show up again and again.

First, interactions break. Ask an agent to hand-code a popover or tab bar out of plain elements and it might look right at a glance, until keyboard navigation stalls, focus escapes, and state falls apart after a few clicks. Second, the visuals look generic and disjointed—one default palette on this screen, different radii and spacing on the next, stitched together like several people worked without talking.

UI SDK neatly prevents the first failure mode. Stop letting agents hand-write focus and overlay logic; tell them to build structure with these 55 unstyled components and let the library handle every interaction. Before starting, follow the agent skill docs to install the skill in your repo so the agent always looks up the right API:

npx skills@latest add vercel-labs/ui --skill ui-sdk

With interactions locked down, solve the second failure mode. Because UI SDK ships unstyled, letting an agent improvise colors and spacing still produces inconsistent pages. The dependable approach is giving it a complete design system with fixed tokens upfront. Instead of guessing, the agent simply maps those variables onto each part's data-slot and state attributes.

If you would rather not craft a palette from scratch, drop in a ready-made kit such as Graphite Atelier, Coral Fizz, or Helios HUD. UINice Design Systems Pro offers over 100 kits like these—pick one that matches your product and drop its tokens into your project.

Copy the prompt below straight to your agent and replace the bracketed name with the kit you picked:

Build this UI with @ui-sdk/react using its unstyled components for all interactions—do not hand-write focus management or overlay logic. Follow the design tokens from the project's [Kit Name, e.g. Graphite Atelier] design system strictly: define CSS variables with css(), apply styles through data-slot, data-* state attributes, and aria-* attributes, and do not invent new colors or border radii.

Whenever you ask your agent to build new pages later, it keeps pulling from the same token set—and if you ever decide to rebrand, you only change a few variable definitions.

FAQ

Does Vercel UI SDK come with styles?

No. Vercel UI SDK is an unstyled UI component toolkit that handles focus management, selection, overlays, and drag interactions while leaving colors, border radii, spacing, and default themes completely blank. That way you can apply your own visual design without fighting default skins or overriding internal class names.

How do I add my own design system to Vercel UI SDK?

You can style the components with plain CSS or Tailwind, and use css() to group your design tokens such as colors, radii, and spacing into CSS variables. Target individual parts through their data-slot attributes, and hook into states or enter and exit transitions via data-*, data-starting-style, data-ending-style, and aria-* attributes. Because the structure stays untouched, swapping the underlying tokens lets you change the entire look without rewriting components.

How can an AI agent build good-looking UI with Vercel UI SDK?

Start by installing the official skill with npx skills@latest add vercel-labs/ui --skill ui-sdk and instructing the agent to use the 55 unstyled components instead of hand-coding focus traps or overlays. Then lock in a complete set of design tokens (such as a kit from UINice Design Systems Pro) and tell the agent to style parts strictly through data-slot, data-*, and aria-* attributes without inventing new colors or border radii.

Try UINice today
Make your agent ship great UI