Getting started

Create

Tune your framework, color scale, and install mode with a live preview, then copy one command to scaffold a fully wired app. Prefer a written walkthrough? Open the installation guide.

Preview
DefaultSecondaryOutline

Your setup command

Setup command

npx --yes -p @default-file/ui df-ui init -t react --name my-app --color-scale detailed
Then use it

Component import

import { Button } from "@default-file/ui/components/df-button"
Full React guide

What this does

  • Create a new React app named my-app
  • Install @default-file/ui with react, react-dom, and lucide-react
  • Import df-index.css once at the app root
  • Set data-df-color-scale="detailed" on <html> (aliases follow this; both --df-*-detailed-* and --df-*-compact-* always exist)
  • Set data-df-density="cozy" on <html> (cozy is the default control size; comfortable is larger; compact is tighter)
  • Set data-df-hover-border="on" on <html> (on paints field hover borders; off keeps the resting border)