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

Add dark/light mode aware clab favicon #2319

Merged
merged 1 commit into from
Nov 30, 2024
Merged

Conversation

kaelemc
Copy link
Contributor

@kaelemc kaelemc commented Nov 30, 2024

Nice and simple. Change the favicon to the clab icon, which is aware and changes the outline to black or white depending on the browser theme.

Video is in the discord: https://discord.com/channels/860500297297821756/865526691350839296/1312046431103750207

@hellt
Copy link
Member

hellt commented Nov 30, 2024

lovely. works in chrome
somehow doesn't work in Safari, but current version doesn't show the beaker favicon either.

@kaelemc
Copy link
Contributor Author

kaelemc commented Nov 30, 2024

@hellt Seems Safari doesn't support the .svg favicons, if you can add html tags to the header in mkdocks material I think you can add a fallback png/ico favicon.

@kaelemc
Copy link
Contributor Author

kaelemc commented Nov 30, 2024

  • but it won't be able to change colour of course.

@hellt
Copy link
Member

hellt commented Nov 30, 2024

yeah, indeed

https://caniuse.com/link-icon-svg

fuck safari then

@hellt hellt merged commit fa09e4f into srl-labs:main Nov 30, 2024
1 check passed
@kaelemc
Copy link
Contributor Author

kaelemc commented Nov 30, 2024

LOL... I follow the logic though :)

@kaelemc kaelemc deleted the favicon branch November 30, 2024 20:19
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

Successfully merging this pull request may close these issues.

2 participants