Remix
Installation
Create A New Remix Project
$ npx create-remix@latest
Install Required Packages
$ npm install @nextui-org/react framer-motion tailwindcss-animated react-icons
Tailwind CSS Setup
// tailwind.config.js import { nextui } from "@nextui-org/react"; /** @type {import('tailwindcss').Config} */ const config = { content: [ // ... "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}" ], theme: { extend: {}, }, darkMode: "class", plugins: [nextui(), require("tailwindcss-animated")] } export default config;
Provider Setup
import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from "@remix-run/react"; import {NextUIProvider} from "@nextui-org/react"; export default function App() { return ( <html lang="en"> <head> <Meta /> <Links /> </head> <body> <NextUIProvider> <Outlet /> <ScrollRestoration /> <Scripts /> <LiveReload /> </NextUIProvider> </body> </html> ); }
- On this page: