Skip to content

Add favicon support for dark mode

Summary

Add theme support so that when user has enabled dark mode, the CERN favicon will be "dark mode friendly".

Implementation

Using hook_page_attachments_alter, you can add condition on whether the dark mode is enabled and based on that return the one favicon or the other.

Edited by Joachim Valdemar Yde