When you visit a blog, any blog, what default theme do you love it to have?

Follow

@can @thumb @nacioss I have now added support for this through JavaScript and will be one of the new features to my blog. If I only choose CSS for this, my theme switcher wouldn't work at all.

@edgren

Yep, mixing CSS and JavaScript (+ localstorage) is required for the best result if no defaults. There should be a blog post about that on the CSS-tricks website.

@thumb @nacioss

@can @thumb @nacioss Yeah. My solution was to remove it from CSS and only use JavaScript.

I am just searching for a solution to add a fade effect when switching theme (when switching theme from a link). Do you have a solution?

@edgren
I think it's as easy as to add transition effect to the body.
For instance:

body {
transition: background 3s;
}

body.dark {
background: black;
}

@thumb @nacioss

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.