-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into release-tooling
- Loading branch information
Showing
102 changed files
with
2,305 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,11 +106,11 @@ const App = () => ( | |
|
||
## Built-In Themes | ||
|
||
React-admin comes with 4 built-in themes, each one having a light and a dark variant. You can use them as a starting point for your custom theme, or use them as-is. | ||
React-admin comes with 5 built-in themes, each one having a light and a dark variant. You can use them as a starting point for your custom theme, or use them as-is. | ||
|
||
| :---: | :---: | | ||
| [Default](#default) []((#default)) | [Nano](#nano) [](#nano) | | ||
| [Radiant](#radiant) [](#radiant) | [House](#house) [](#house) | | ||
| [Default](#default) []((#default)) | [B&W](#bw) [](#bw) | | ||
| [Nano](#nano) [](#nano) | [Radiant](#radiant) [](#radiant) | | ||
| [House](#house) [](#house) | | ||
|
||
### Default | ||
|
||
|
@@ -123,6 +123,37 @@ The default theme is a good fit for every application, and works equally well on | |
|
||
You don't need to configure anything to use the default theme - it comes out of the box with react-admin. | ||
|
||
### B&W | ||
|
||
A high-contrast theme with a black and white palette, ideal for visually impaired users. Its modern-looking style, reminiscent of shadcn, is suitable for desktop apps. | ||
|
||
[](./img/bwLightTheme1.jpg) | ||
[](./img/bwLightTheme2.jpg) | ||
[](./img/bwDarkTheme1.jpg) | ||
[](./img/bwDarkTheme2.jpg) | ||
|
||
To use the B&W theme, import the `bwLightTheme` and `bwDarkTheme` objects, and pass them to the `<Admin>` component: | ||
|
||
```jsx | ||
import { Admin, bwLightTheme, bwDarkTheme } from 'react-admin'; | ||
|
||
export const App = () => ( | ||
<Admin | ||
dataProvider={dataProvider} | ||
theme={bwLightTheme} | ||
darkTheme={bwDarkTheme} | ||
> | ||
// ... | ||
</Admin> | ||
); | ||
``` | ||
|
||
You must also import the Geist font in your `index.html` file: | ||
|
||
```html | ||
<link href="https://fonts.googleapis.com/css2?family=Geist:[email protected]&display=swap" rel="stylesheet"> | ||
``` | ||
|
||
### Nano | ||
|
||
A dense theme with minimal chrome, ideal for complex apps. It uses a small font size, reduced spacing, text buttons, standard variant inputs, pale colors. Only fit for desktop apps. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.