Installation

Add FewTone UI components to a Next.js project with one shadcn CLI command, or copy the source by hand. Either way, the code ends up in your project, and nothing else in your app changes.

Requirements

WhatVersionWhy
React19Components use React 19 APIs
Tailwind CSSv4Styles use Tailwind v4 syntax, such as h-(--size-control-md)
Next.jsApp RouterWhat FewTone UI is built and tested with
shadcn CLIlatestInstalls components from the registry (npx shadcn@latest)

Your global CSS file should import Tailwind with @import "tailwindcss";. If it uses @tailwind base; instead, the project is on Tailwind v3: upgrade to v4 first.

Install with the shadcn CLI

1. Create a Next.js app (new projects only)

Skip this step if you already have a Next.js project. Answer yes to Tailwind CSS and the App Router.

npx create-next-app@latest my-app

2. Set up shadcn

Run this once per project. It creates components.json (where your components and helpers go), the cn helper that every component imports, and your theme's CSS variables. If your project already uses shadcn/ui, skip it: never run init again on an existing project, as it rewrites your theme.

npx shadcn@latest init

3. Add a component

Copy the command from any component page, or from here. Pick your package manager: the choice is remembered across the site.

Package manager
$ pnpm dlx shadcn@latest add https://ui.fewtone.com/r/button.json

4. Use it

The component is now in components/ui. Import it like any of your own components.

import { Button } from "@/components/ui/button"

export function Actions() {
  return <Button>Continue</Button>
}

What the CLI adds

Each component brings its source file and the npm packages it needs:

ComponentFilesnpm packages
Accordioncomponents/ui/accordion.tsx, lib/motion.tsclass-variance-authority, lucide-react, motion, radix-ui
Alert Dialogcomponents/ui/alert-dialog.tsxclass-variance-authority, motion, radix-ui
Avatarcomponents/ui/avatar.tsx, lib/motion.tsclass-variance-authority, motion, radix-ui
Badgecomponents/ui/badge.tsx, components/ui/badge-shine.tsx, lib/motion.tsclass-variance-authority, motion, radix-ui
Breadcrumbcomponents/ui/breadcrumb.tsx, lib/motion.tslucide-react, motion, radix-ui
Buttoncomponents/ui/button.tsxclass-variance-authority, radix-ui
Calendarcomponents/ui/calendar.tsx, lib/motion.tslucide-react, motion
Cardcomponents/ui/card.tsxclass-variance-authority, radix-ui
Checkboxcomponents/ui/checkbox.tsx, lib/motion.tsclass-variance-authority, motion, radix-ui
Comboboxcomponents/ui/combobox.tsx, lib/motion.tslucide-react, motion, radix-ui
Commandcomponents/ui/command.tsx, lib/motion.tslucide-react, motion
Context Menucomponents/ui/context-menu.tsxlucide-react, radix-ui
Copy Buttoncomponents/ui/copy-button.tsx, lib/motion.tslucide-react, motion
Date Pickercomponents/ui/date-picker.tsx, lib/motion.tslucide-react, motion
Dialogcomponents/ui/dialog.tsx, lib/motion.tslucide-react, motion, radix-ui
Drawercomponents/ui/drawer.tsx, lib/motion.tslucide-react, motion, vaul
Dropdown Menucomponents/ui/dropdown-menu.tsx, lib/motion.tsclass-variance-authority, lucide-react, motion, radix-ui
Hover Cardcomponents/ui/hover-card.tsx, lib/motion.tsmotion, radix-ui
Inputcomponents/ui/input.tsxclass-variance-authority
Input OTPcomponents/ui/input-otp.tsx, lib/motion.tslucide-react, motion, radix-ui
Loading Buttoncomponents/ui/loading-button.tsx, lib/motion.tsmotion
Marqueecomponents/ui/marquee.tsx, lib/motion.tsmotion
Navigation Menucomponents/ui/navigation-menu.tsx, lib/motion.tsclass-variance-authority, lucide-react, motion, radix-ui
Number Inputcomponents/ui/number-input.tsx, lib/motion.tsclass-variance-authority, lucide-react, motion
Number Tickercomponents/ui/number-ticker.tsx, lib/motion.tsmotion
Paginationcomponents/ui/pagination.tsx, components/ui/pagination-pill.tsx, lib/motion.tslucide-react, motion, radix-ui
Popovercomponents/ui/popover.tsx, lib/motion.tsmotion, radix-ui
Progresscomponents/ui/progress.tsx, lib/motion.tsclass-variance-authority, motion, radix-ui
Radio Groupcomponents/ui/radio-group.tsx, lib/motion.tsclass-variance-authority, motion, radix-ui
Scroll Areacomponents/ui/scroll-area.tsxradix-ui
Selectcomponents/ui/select.tsx, lib/motion.tslucide-react, motion, radix-ui
Sheetcomponents/ui/sheet.tsx, lib/motion.tsclass-variance-authority, lucide-react, motion, radix-ui
Sidebarcomponents/ui/sidebar.tsx, lib/motion.tsclass-variance-authority, lucide-react, motion, radix-ui
Skeletoncomponents/ui/skeleton.tsx, components/ui/skeleton-sheen.tsx, lib/motion.tsmotion
Slidercomponents/ui/slider.tsx, lib/motion.tsmotion
Spinnercomponents/ui/spinner.tsx, lib/motion.tsclass-variance-authority, motion
Steppercomponents/ui/stepper.tsx, lib/motion.tsmotion, radix-ui
Switchcomponents/ui/switch.tsx, lib/motion.tsclass-variance-authority, motion, radix-ui
Switchercomponents/ui/switcher.tsx, lib/motion.tsclass-variance-authority, motion, radix-ui
Tablecomponents/ui/table.tsx, components/ui/table-motion.tsx, lib/motion.tslucide-react, motion
Tabscomponents/ui/tabs.tsx, lib/motion.tsclass-variance-authority, motion, radix-ui
Text Effectscomponents/ui/text-effects.tsx, lib/motion.tsmotion
Textareacomponents/ui/textarea.tsx, lib/motion.tsmotion
Theme Togglecomponents/ui/theme-toggle.tsx, lib/motion.tsmotion, next-themes
Toastcomponents/ui/toast.tsx, lib/motion.tsclass-variance-authority, lucide-react, motion, radix-ui
Toggle Groupcomponents/ui/toggle-group.tsx, lib/motion.tsclass-variance-authority, motion, radix-ui
Tooltipcomponents/ui/tooltip.tsxradix-ui

The first install also adds the FewTone UI tokens to your global CSS file: control and icon sizes, motion durations and easings, the focus ring, the popover layer, and the open and close animations. The CLI only adds the variables your project doesn't define yet, so your colours, fonts and radius stay exactly as they are.

Components that animate with JavaScript, such as Select and Switch, also add lib/motion.ts: the spring presets they share.

Running the same command again is safe. If the CLI asks to overwrite a file you've changed, answer no to keep your edits.

Install several components at once

Pass several addresses to one command:

npx shadcn@latest add https://ui.fewtone.com/r/button.json https://ui.fewtone.com/r/select.json

Shorter commands with the @fewtone namespace

To write @fewtone/button instead of the full address, add the FewTone UI registry to components.json:

{
  "registries": {
    "@fewtone": "https://ui.fewtone.com/r/{name}.json"
  }
}
npx shadcn@latest add @fewtone/button @fewtone/select

Install with an AI assistant

Every component page has a Copy prompt button. It copies a detailed brief for your AI coding assistant: Claude Code, Cursor, Copilot or ChatGPT. The brief has your assistant:

  1. check your package manager, React and Tailwind versions, and import paths
  2. install with the shadcn CLI, or by hand if the CLI isn't set up
  3. change nothing else: no overwritten files and no theme changes
  4. type-check the result and list every file it touched

To let your assistant find and install components by itself, connect it to the FewTone UI MCP server.

Install manually

You can also install without the CLI. Every component page has an Installation section with the steps in order:

  1. install the npm dependencies
  2. add the FewTone UI tokens to your global CSS file (only the variables you don't have)
  3. add lib/motion.ts, if the component animates with JavaScript
  4. copy the component's source into components/ui
  5. update the import paths to match your project

If your project has no cn helper, add one at lib/utils.ts:

import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}

Customize the theme

FewTone UI components take their colours, corners and fonts from CSS variables, so they follow your theme in light and dark mode without any changes.

Colours. Components use the same semantic names as shadcn/ui: background, foreground, primary, secondary, muted, accent, border, input and ring. Change them and every component follows.

:root {
  --primary: oklch(0.17 0 0);
  --primary-foreground: oklch(1 0 0);
}

.dark {
  --primary: oklch(0.97 0 0);
  --primary-foreground: oklch(0.13 0 0);
}

Dark mode. Dark values apply under the dark class on the html element, which is how next-themes works.

Radius. Corners come from --radius. Set it once to make every component rounder or sharper.

Sizes and motion. The FewTone UI tokens tune every component at once:

:root {
  --size-control-md: 2.25rem; /* height of buttons, inputs and selects */
  --duration-fast: 150ms; /* hover and press transitions */
  --scale-press: 0.97; /* how far buttons sink when pressed */
}

When the operating system asks for reduced motion, the durations drop to almost nothing and spring animations become instant.

Troubleshooting

The CLI says components.json was not found. Run npx shadcn@latest init once in the project, then add the component again.

Components render without styles. The project is probably on Tailwind CSS v3. FewTone UI needs v4: check that your global CSS file has @import "tailwindcss";.

Cannot find module '@/lib/utils'. Your import alias or utils path is different. Check the aliases in components.json and paths in tsconfig.json, or add the cn helper shown above.

A file already exists. The CLI asks before overwriting. Answer no to keep your version.

Animations don't play. Check whether reduced motion is turned on in your operating system's accessibility settings. FewTone UI turns animations off when it is.

Frequently asked questions

How do I install FewTone UI in Next.js?
Run npx shadcn@latest init once in your project, then run the install command from any component page, such as npx shadcn@latest add https://ui.fewtone.com/r/button.json. The component's source is added to components/ui.
Can I use pnpm, yarn or bun?
Yes. Use pnpm dlx, yarn dlx or bunx --bun in place of npx. Every install command on the site has a switch for your package manager.
Will installing a component change my theme?
No. The CLI only adds the FewTone UI variables your project doesn't already define, and never changes your existing colours, fonts or radius.
Can I install FewTone UI without the shadcn CLI?
Yes. Every component page lists the manual steps: the npm packages, the tokens for your global CSS file, and the full source to copy.
Does FewTone UI work with Tailwind CSS v3?
No. FewTone UI is written for Tailwind CSS v4. Upgrade the project to v4 first.

Next steps

© 2026 FewTone · MIT licenceGitHub