If you are using one of the following frameworks, please follow the corresponding guide:

Install panda by following the panda CSS installation for your framework.

pnpm add @dreamy-ui/react @dreamy-ui/panda-preset motion

After installing, you should configure your panda config with Dream preset. Copy and paste the following code into your panda.config.ts file:

import createDreamyPreset, { dreamyPlugin } from "@dreamy-ui/panda-preset";
import { defineConfig } from "@pandacss/dev";
 
export default defineConfig({
	preflight: true,
    watch: true,
    jsxFramework: "react",
    jsxStyleProps: "all",
    outExtension: "js",
	include: [
		"./app/**/*.{js,jsx,ts,tsx}", // Replace with your app source directory
	],
	presets: [
        createDreamyPreset()
    ],
    plugins: [dreamyPlugin],
	theme: {
		extend: {}
	},
	globalCss: {
		extend: {}
	},
	staticCss: {
		extend: {}
	}
});

Add DreamyProvider to the root of your app. It is a wrapper for your app, which provides Dreamy UI with all the necessary context.

import { DreamyProvider } from "@dreamy-ui/react";
import domMax from "motion/react";
 
export default function App() {
	return (
		<DreamyProvider motionFeatures={domMax}>
			<YourApp />
		</DreamyProvider>
	);
}

Create a new component and use some Dreamy UI components!

import { Button } from "@dreamy-ui/react";
 
export default function Index() {
	return (
		<Button variant="primary">
			I am a Dream Button 🚀
		</Button>
	);
}