Castle logo

CASTLE UI

search

Search

K
hexagon

Castle UI can be imported into your project in the following steps:

1. Install

yarn add @passfort/castle
content_copy

Copy

or

npm i @passfort/castle
content_copy

Copy

2. Add ThemeProvider

Add ThemeProvider to the root of your application

import { ThemeProvider } from '@passfort/castle'
export const App = () => {
<ThemeProvider>
{...}
</ThemeProvider>
}
content_copy

Copy

3. import index.css

make sure to import index.css in your root component

import '@passfort/castle/lib/index.css'
content_copy

Copy

Contents