You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -111,10 +108,20 @@ See the source code for each component for available props.
111
108
112
109
These components expect a compatible `authProvider` to be set up in your React-admin app, supporting methods like `login`, `logout`, `recoverPassword`, `resetPassword`, etc.
113
110
111
+
## Theme
112
+
113
+
All authentication components share a common layout (`AuthLayout`) that can be themed using two variables:
114
+
115
+
-`background`: Sets the background image, color, or gradient for the layout.
116
+
-`logo`: Sets the logo displayed at the top of the authentication screens.
114
117
115
-
## Styling
118
+
You can provide these variables to customize the look and feel of your authentication pages. For a practical example of how to use these theme variables, see the demo app included in this repository:
116
119
117
-
The package uses Material-UI and SCSS modules. You can override styles by targeting the generated class names, using custom CSS, or copying the components for further customization.
120
+
[`/demo/src/theme.js`](./demo/src/theme.js)
121
+
122
+
The demo shows how to define and apply a custom background and logo to the authentication layout.
123
+
124
+
You can also pass a `className` prop to all components to further customize them.
118
125
119
126
## Internationalization (i18n)
120
127
@@ -131,6 +138,9 @@ This allows you to fully localize all texts, labels, errors, and button messages
131
138
132
139
For a practical example of i18n integration and translation keys, see the demo app included in this repository. The demo provides a working setup with translations you can use as a reference for your own project.
0 commit comments