Prevent default styles from overwriting my CSS #397
-
I am using TailwindCSS to style all my components, I am only interested in using NextUI input and table component due to the looks of it. However, after following the guide from Get Started. All my texts are changed, not following the styles input by tailwind. Would appreciate any help if I am only interested in using some of the components provided by NextUI without altering my existing styles. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Hey @elgeneee you can disable the NextUI's base styles using this prop e.g // 1. import `NextUIProvider` component
import { NextUIProvider } from '@nextui-org/react';
function MyApp({ Component, pageProps }) {
return (
// 2. Use at the root of your app
<NextUIProvider disableBaseline>
<Component {...pageProps} />
</NextUIProvider>
);
}
export default MyApp; Hope it helps you 🙌🏻 |
Beta Was this translation helpful? Give feedback.
-
How do I do this in v2? It doesn't seem like v2 has a |
Beta Was this translation helpful? Give feedback.
-
What is the solution for v2? |
Beta Was this translation helpful? Give feedback.
-
Bumping this. Has anyone found a solution yet? |
Beta Was this translation helpful? Give feedback.
-
This no longer works in v2, version bumps shouldn't result in loss of functionality |
Beta Was this translation helpful? Give feedback.
Hey @elgeneee you can disable the NextUI's base styles using this prop
disableBaseline
in theNextUIProvider
https://nextui.org/docs/guide/getting-started#nextuiprovider-props
e.g
Hope it helps you 🙌🏻