Skip to content

Commit

Permalink
Merge pull request #676 from etn-ccis/feature/6193-update-readme
Browse files Browse the repository at this point in the history
Updated readme to refer blui react theme for advance confiuguration
  • Loading branch information
shubham-eaton authored Dec 6, 2024
2 parents 3d7481b + 9c0e74d commit 2e4ecef
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions login-workflow/docs/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,27 +74,4 @@ return(
);
```
By Default the theme will take system's mode. To set your mode(light/dark), make use of `useColorScheme()` hook to set and use theme modes using helpers `mode` & `setMode` of `useColorScheme()`.
## Example to use useColorScheme() hook
```tsx
import { useEffect } from 'react';
import { useColorScheme } from '@mui/material/styles';

export const App = (): JSX.Element => {
const { setMode } = useColorScheme();

useEffect(() => {
setMode('light');
}, []);

return (
<>
<BrowserRouter basename={'/'}>
<AppRouter />
</BrowserRouter>
</>
);
};
```
For more configuration, please refer to the [BLUI React Themes README](https://github.com/etn-ccis/blui-react-themes/blob/dev/README.md).

0 comments on commit 2e4ecef

Please sign in to comment.