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]: Logo switch depending on theme #1663

Open
slackerkids opened this issue Sep 3, 2024 · 0 comments
Open

[Feature Request]: Logo switch depending on theme #1663

slackerkids opened this issue Sep 3, 2024 · 0 comments

Comments

@slackerkids
Copy link

Feature Description

It'd be great if Publii had a built-in feature that automatically switches the logo based on the user's selected theme (light or dark mode).

feature_design
feature_video.mov

I made it with custom css. Like this:

/* Logo for dark theme */
@media (prefers-color-scheme: dark) {
    .logo img {
        content: url('/media/files/logo_white.svg');
    }
}
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

1 participant