creativetimofficial / ct-soft-ui-dashboard-pro

Soft UI Dashboard Pro - Bootstrap 5 Admin
34 stars 6 forks source link

[Feature Request] Dark Theme #19

Closed ArthurPatriot closed 1 year ago

ArthurPatriot commented 3 years ago

What is your enhancement?

Are you planning to add dark theme for this product?

rarestoma commented 3 years ago

Hi @ArthurPatriot,

Thank you for working with our products and sorry for my late response.

Yes, we have in plan to add a dark version in Soft UI Dashboard PRO in the future updates, but we don't have yet a release date.

I hope it helps.

Best regards, Rares

gnikolaev commented 3 years ago

I would love the dark mode as well. Hope we get it soon!

ghwebdesign commented 2 years ago

I see that a dark mode has been implemented in a recent release and I love it. Thank you!!!

Is there any documentation on how to set up the dark mode toggle to maintain the dark setting across all pages in a session until the user manually toggles it back?

Thanks!

rarestoma commented 2 years ago

Hi @ghwebdesign,

Thank you for working with our products, we are happy to hear that you like our dark theme.

To add the dark mode, you have to add dark-version class to the body tag.

Please let me know if it works.

Best regards, Rares

jaymegordo commented 2 years ago

@rarestoma I see the dark mode toggle switch calls the js function darkMode which seems add the dark-version tags. How do we keep dark mode enabled for the entire session until the user toggles it back? I could easily store a current_theme setting in the db, but how do we make the pages always respect that on load instead of defaulting to the light mode.

Eg I want a website that works exactly how you think it should, either light or dark mode that the user can toggle at will. Thanks!