# Using Joy UI and Material UI together
Learn how to use Joy UI and Material UI together in the same project.
## Introduction There are two main use cases for using them together: 1. Your existing project already uses Material UI but you're willing to explore the new components and style Joy UI offers. 2. You've started your project with Joy UI but you find a key component you need is missing. :::info Once Joy UI reaches component parity with Material UI, we recommend that you **_choose one or the other_**. Not only do they have a different design language (and therefore a different theme structure) but they would increase your bundle size as well as potentially create unnecessary complexities. ::: Additionally, keep these in mind when using them together: - Both of them use [MUI System](/system/getting-started/) as their style engine, which uses React context for theming. - Theme scoping must be done on one of the libraries. ### Prerequisites - Have `@mui/material` and `@mui/joy` installed in your project. - The version of both libraries must be [v5.12.0](https://github.com/mui/material-ui/releases/tag/v5.12.0) or higher. ## Set up the providers Render Joy UI's `CssVarsProvider` inside Material UI's `ThemeProvider` and use `THEME_ID` to separate the themes from each other. ```js import { createTheme, ThemeProvider, THEME_ID as MATERIAL_THEME_ID, } from '@mui/material/styles'; import { CssVarsProvider as JoyCssVarsProvider } from '@mui/joy/styles'; import CssBaseline from '@mui/material/CssBaseline'; const materialTheme = createTheme(); export default function App() { return (