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

[Feature Request] Light / DARK #75

Open
jayantsr opened this issue Feb 19, 2022 · 3 comments
Open

[Feature Request] Light / DARK #75

jayantsr opened this issue Feb 19, 2022 · 3 comments

Comments

@jayantsr
Copy link

What is your enhancement?

How to make the theme default to dark?

@rarestoma
Copy link
Contributor

Hi @jayantsr,

Thank you for working with our products.

To make the theme dark you have to add dark-version class to the body tag.

Thank you,
Rares

@jayantsr
Copy link
Author

jayantsr commented Feb 22, 2022 via email

@vladutt
Copy link

vladutt commented Feb 1, 2023

a small function that switch modes. with jquery :)

function switchMode() {
    let body = $('body');
    let leftNavbar = $('aside');

    if (body.hasClass('dark-version')) {
        body.removeClass('dark-version')
    } else {
        body.addClass('dark-version');
    }

    if (leftNavbar.hasClass('bg-white')) {
        leftNavbar.removeClass('bg-white')
    } else {
        leftNavbar.addClass('bg-white');
    }
};

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

3 participants