?
avatar Stuartemk
Stuartemk
26 Feb 2021

Steps to reproduce the issue

Is there a way that the Casiopea template integrates by default a dark mode as well as its corresponding switch for users from the frontend?

Expected result

Actual result

System information (as much as possible)

Additional comments

avatar Stuartemk Stuartemk - open - 26 Feb 2021
avatar joomla-cms-bot joomla-cms-bot - change - 26 Feb 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Feb 2021
avatar dgrammatiko
dgrammatiko - comment - 26 Feb 2021

You will be able to do that once cassiopeia transitions to the new template mode (child templates) with a simple override using https://github.com/vinorodrigues/bootstrap-dark-5 instead of the default bootstrap

avatar Stuartemk
Stuartemk - comment - 26 Feb 2021

You will be able to do that once cassiopeia transitions to the new template mode (child templates) with a simple override using https://github.com/vinorodrigues/bootstrap-dark-5 instead of the default bootstrap

This is excellent news! Only what is not resolved is a togle or switch so that the user can change the template or mode from the frontend. Thank you very much @dgrammatiko

avatar dgrammatiko
dgrammatiko - comment - 26 Feb 2021

@Stuartemk there are plenty such switchers: https://github.com/dgrammatiko/dark-switch, https://github.com/GoogleChromeLabs/dark-mode-toggle/blob/master/src/dark-mode-toggle.mjs You only have to copy the switch to the child template and edit the HTML to include it, pretty straight forward

avatar sanek4life
sanek4life - comment - 26 Feb 2021

@Stuartemk I wrote about this earlier - #26772

avatar rdeutz rdeutz - change - 26 Feb 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-02-26 13:16:13
Closed_By rdeutz
avatar rdeutz rdeutz - close - 26 Feb 2021

Add a Comment

Login with GitHub to post a comment