Change Theme Light - Dark Mode

Hi,
Is there a way to change cs-cart skin / css from the front end from light to dark?
Kind regards

Unfortunately, it is not possible without additional code changes

Thank you for the reply.

I understand that it will definitely involve the changes in the code.

What I was wondering if anybody knows any add-on, or an existing theme, or an example that supports that feature?
Would that also mean that it would need two layouts, for light and dark?
Would it affect the performance?

Kind regards

You can create several layouts in the store and assign different styles to them. Then create HTML block with layout switcher. The main idea is to add s_layout=123 to the current URL. Where 123 - is the layout ID

http://prntscr.com/ntxq8o

Thank you for the reply.

I understand that it will definitely involve the changes in the code.

What I was wondering if anybody knows any add-on, or an existing theme, or an example that supports that feature?
Would that also mean that it would need two layouts, for light and dark?
Would it affect the performance?

Kind regards

Well, there is this very cool thing called media queries. They are used for a bunch of stuff but now they are also trying to make it more feature rich these days. In windows you can now also select 'dark mode', this would then be passed to the browser as a media query, which would allow you to make your website darker for those having that enabled. The remaining you would have to compatbilize with JavaScript or a server sided alternative.

FYI, this would also eliminate the need for multiple layouts.

If you need any more information, please don't hesitate to contact us at sales@poppedweb.com

Hi,
Thank you both very much for your help.
Indeed media queries and the layouts solves my problem.