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

Enable dark theme mode in the web pages. #5

Open
Thecarisma opened this issue May 17, 2020 · 2 comments
Open

Enable dark theme mode in the web pages. #5

Thecarisma opened this issue May 17, 2020 · 2 comments

Comments

@Thecarisma
Copy link
Owner

Use Javascript to toggle dark and light theme on a webpage on a button click. Also somehow store the theme preference.

Instead of using more than one CSS file to switch themes, use the html_theme_options variable to set options for the dark theme.

html_theme_options = {
    'dark_theme': {
        'text_color': 'white',
        'background_color': 'black'
    }
}
@Thecarisma
Copy link
Owner Author

Uneccesary complexity

@Thecarisma
Copy link
Owner Author

So Implementing this now, JS overload

@Thecarisma Thecarisma reopened this Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant