Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
1.57 MB
MD5: cd733f47d74ea89c6ef23fbd5a2f061c
SHA-1: ab31baa9fa42205d8af0c5d1156b15cf28749de8
SHA-256: cebb8953421fddc0938a406288540d6d6e98a89606df267373f8636cfcf334ce
Download zip
1.57 MB
MD5: e91ac920bdfef0cae2410db38af4e2c9
SHA-1: 42230387a1a001064231e87c6a1cc39b048a2060
SHA-256: 2dfc837fc412ad4ec2c63842bf1d514315c0a7c9bd6057362a23a67812f63386
Release notes
This is the first release of this module! It is fully functioning and ready for production use as far as I know.
It includes the following features:
- Provides a block containing the theme toggle. This block can be configured to float the toggle within the block region.
- Alters Olivero's core CSS variables in order to seamlessly integrate with Olivero's colour picking functionality. More specifically, it reverses any gradient variables with small modifications in order to meet accessibility contrast standards.
- Uses local storage to keep track of the toggle position chosen by a user.
- Detects (prefers-color-scheme: dark) to provide the dark theme to users who have their browser preference set to dark mode.