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

[docs] Support inject dynamic theme #42879

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

Vxee
Copy link

@Vxee Vxee commented Jul 7, 2024

Closes #41391

@mui-bot
Copy link

mui-bot commented Jul 7, 2024

@Vxee
Copy link
Author

Vxee commented Jul 7, 2024

I aim to have the documentation site expose a function in the window, such as getInjectTheme. This function will merge with the current docs theme and can be mounted on the window by a Chrome extension. Upon execution, getInjectTheme will return my custom theme options. Additionally, it is necessary to expose the React and MUI instances, as my compiled custom-theme.js depends on them.

@aarongarciah aarongarciah changed the title [docs]: support inject dynamic theme Jul 8, 2024
@zannager zannager added the docs Improvements or additions to the documentation label Jul 8, 2024
@ZeeshanTamboli ZeeshanTamboli removed their request for review July 8, 2024 14:24
@DiegoAndai
Copy link
Member

Replied here: #41391 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
4 participants