Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated readme to refer blui react theme for advance confiuguration #676

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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).
Loading