Hi, I need help importing from relume to react. Because there were issues with tailwind v4 not having an tailwind.config.js file I've had to downgrade react, and tailwind both but I am still having issues with the styling. Any help would be greatly appreciated
Hi Matt, thanks for linking me with Nour, hoping to get help soon. In the meantime, is there any sort of tutorial for importing from Relume to React? I've followed the official documentation as close as I could really but no luck
The pictures show what im seeing as an export vs whats being rendered in React.... seems like a size styling issue. @Nour
Hey @Omer, seems like you haven't set up the Tailwind config correctly. If you can share your project, through github or as a zip, I can help.
Yeah, we don't support Tailwind V4 yet (we're in the coming few weeks). You'll have to do some manual work to migrate from V3 to V4
Downgrading to React 18 will be due to the UI elements, not because of the version of Tailwind.
within my tailwind config:
/** @type {import('tailwindcss').Config} */ export default { content: [ "./node_modules/@relume_io/relume-ui/dist/**/*.{js,ts,jsx,tsx}", ], theme: { extend: {}, }, plugins: [], presets: [require("@relume_io/relume-tailwind")] }
You're welcome.
So, the issue was:
@tailwind base; @tailwind components; @tailwind utilities;2. You were overriding the Relume's classes in the CSS files, removed all classes there.
content: [ "./node_modules/@relume_io/relume-ui/dist/**/*.{js,ts,jsx,tsx}", "./src/**/*.{js,ts,jsx,tsx,mdx}", ],
ahhh I see it now. I couldn't find any documentation regarding that or perhaps I didn't read what was there correctly
Hey Nour, as Im working on it I see that the page isn't taking up the whole screen as shown in the preview. Seems like only the header is going from edge to edge
Yeah, that’s normal and this is how it should be. A container value is applied. If you wish not to have that you can remove the container from all components.
Oh I see, perhaps my monitor is just big thats why it looks like that. Where is the container value ?