Castle UI can be imported into your project in the following steps:
1. Install
yarn add @passfort/castle
Copy
or
npm i @passfort/castle
Copy
2. Add ThemeProvider
Add ThemeProvider
to the root of your application
import { ThemeProvider } from '@passfort/castle'export const App = () => {<ThemeProvider>{...}</ThemeProvider>}content_copyCopy
3. import index.css
make sure to import index.css in your root component
import '@passfort/castle/lib/index.css'content_copyCopy