reopt designreopt design
DocsExploreToolsPricingBuilder
Login
Start
Overview
Start
Next.js 설치
Manual install
Core Concepts
아키텍처
Composition Patterns
Accessibility
디자인 규칙
Keyboard Patterns
Styling
로컬라이제이션
Theme System
Advanced Patterns
Build & Operate
Skills
AI Integration
CLI (opt surface add)
Dependency Graph
Tools
Canvas Catalog
Theme Builder
Form Builder
Templates
Templates
Releases
Release Notes
Oopt-ui
reopt designreopt design

A design system for the AI era

  • Docs
  • Pricing
  • Releases
  • GitHub
  • About
  • Contact
  • Terms of Service
  • Privacy Policy

reopt Inc.Business registration no. 217-88-02453contact@reopt.ai

© 2026 reopt Inc. All rights reserved.

Start
  1. Docs
  2. /
  3. Start
  4. /
  5. Start

Getting started

Install opt-ui, connect styles and render your first working component.

reopt design · Updated Sep 18, 2026

Render your first working button in an existing React 19 project. Packages are free to install from public npm; no Reopt account is required. These instructions use Tailwind CSS v4.

1. Install packages

bash
bun add @reopt-ai/opt-ui
bun add -d tailwindcss @tailwindcss/postcss postcss

2. Connect your stylesheet

This @source path assumes app/globals.css at the project root. For src/app/globals.css, use ../../node_modules/@reopt-ai/opt-ui/dist. Import this stylesheet once from your app entry point.

css
@import "tailwindcss";
@import "@reopt-ai/opt-ui/tailwind.css";

@source "../node_modules/@reopt-ai/opt-ui/dist";

3. Configure PostCSS

js
export default {
  plugins: {
    "@tailwindcss/postcss": {},
  },
};

4. Add the theme provider

Wrap your app in OptThemeProvider. For Next.js, use app/layout.tsx. In another React app, wrap your root component in the same provider.

tsx
import { OptThemeProvider } from "@reopt-ai/opt-ui";
import "./globals.css";

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body>
        <OptThemeProvider defaultPreset="default">
          {children}
        </OptThemeProvider>
      </body>
    </html>
  );
}

5. Render and test a button

Put this component in app/page.tsx (or render it from your React app), start your development server and click Count. The number should increase, the button should be styled, and Tab should show its focus ring. If styling is missing, check the stylesheet import and @source path above.

tsx
"use client";

import { useState } from "react";
import { Button } from "@reopt-ai/opt-ui";

export default function Page() {
  const [count, setCount] = useState(0);
  return <Button onClick={() => setCount(count + 1)}>Count: {count}</Button>;
}

Continue building

  • Browse components and usage examples
  • Build a form and copy its code
  • Browse complete example screens
Optional: let your coding agent configure the project

Recommended: dedicated skill

Handles installation or upgrades, Tailwind v4 and OptThemeProvider wiring, opt doctor verification, and Surface setup.

From the consumer project root, install the skill into your agent runtime. Skip this command if it is already installed.

bash
npx skills add reopt-ai/reopt-skills/opt-ui-install

Then ask your agent to apply it. The skill detects whether this is a new install or an upgrade.

text
Use the opt-ui-install skill to set up @reopt-ai/opt-ui in this project, then verify the result.

The skill idempotently updates a reopt marker block in AGENTS.md (or CLAUDE.md), reads the docs shipped by the installed package version, and runs module-appropriate checks such as typecheck or doctor.

The package commands below are the manual fallback when a skill is unavailable or you need to control every setup step. Review the skill source and current support.

PreviousOverview@reopt-ai/opt-ui 문서 홈과 레이어 구조 개요Start
Go to Overview
NextNext.js 설치App Router 기준으로 opt-ui를 설치하고 theme/provider를 연결하는 방법Start