Skip to content

Commit

Permalink
Update docs/data/material/customization/dark-mode/dark-mode.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com>
Signed-off-by: Diego Andai <diego@mui.com>
  • Loading branch information
DiegoAndai and samuelsycamore authored Dec 20, 2024
1 parent 649d41d commit 26e8ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data/material/customization/dark-mode/dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Apply styles for a specific mode.

#### Overriding applyStyles

You can override `theme.applyStyles()` with a custom function to have complete control over it.
You can override `theme.applyStyles()` with a custom function to gain complete control over the values it returns.
Please review the [source code](https://github.com/mui/material-ui/blob/HEAD/packages/mui-system/src/createTheme/applyStyles.ts) to understand how the default implementation works before overriding it.
For instance, if you need the function to return a string instead of an object so it can be used inside template literals:

Expand Down

0 comments on commit 26e8ef7

Please sign in to comment.