WRI UI Library
Node: 20.16.0
React: 18.3.1
yarn add wri-design-systems
or
npm i wri-design-systems
yarn add @chakra-ui/react @emotion/react @emotion/styled
or
npm i @chakra-ui/react @emotion/react @emotion/styled
With this custom theme you can change the color scheme according to your Project Theme
import { createSystem, defaultConfig } from '@chakra-ui/react'
export const system = createSystem(defaultConfig, {
theme: {
tokens: {
colors: {
neutral: {
300: { value: '#ff5252' },
500: { value: '#ff0000' },
},
primary: {
200: { value: '#93ff93' },
500: { value: '#d80a5d' },
600: { value: '#16b816' },
700: { value: '#006100' },
},
secondary: {
...
},
success: {
...
},
},
},
},
})
import React from 'react'
import { ChakraProvider, defaultSystem } from '@chakra-ui/react'
import { system } from './lib/theme'
function App() {
return (
{/* if you want to use the default WRI Theme colors */}
{/* <ChakraProvider value={defaultSystem}> */}
{/* if you want to use your custom system Theme colors */}
<ChakraProvider value={system}>
<TheRestOfYourApplication />
</ChakraProvider>
)
}