For now, you are expected to have Tailwind Preflight installed, this won’t be necessary in future.Each component and its parts can be addressed by their unique class name. You can use them to style your components and interact with them. You can find a full list of parts and class names of a given component on its respective documentation page.
It must be imported before@membranehq/react/styles.css.
Default Styles
To apply default styles to components, simply import styles.css:Custom Styles
All style layers exported bystyles.css are prefixed with iap- value to prevent layers collision.
button component example:

Styling with CSS
When using plain CSS it is enough to just useclassName of a part.Let’s change button background color to red and both icons to black:

Live example
Project with live CSS styling example
Styling with Tailwind
For projects that use Tailwind an extra step is required.To avoid layers order collision you need to define layers in your main
css file.
You can target part className by using @apply directive.
In this example let’s make button sharp and blue, then change the title text style to bold:

Live example
Vite project with live Tailwind styling example
Next.js project example
Next.js project with Tailwind styling example