This is the unofficial Fabric port of Dark Mode Everywhere
Dark Mode Everywhere uses the built in 1.18 Minecraft shaders to transform any GUI texture into a Dark Mode. Thanks to the shaders it will work in any GUI in the game, it will also try to modify the text color is its not hard to read in dark mode. Please report any visual issues so I can fix it.
The mod currently provides with 3 dark modes to suit your needs that can be easily changed by clicking on the button on the bottom left:

You can have the possibilty if adding new GUI shaders by modifying the "darkmodeeverywhereshaders.json" and using a Resource Loader mod or a Resource Pack.
How to Install Dark Mode Everywhere (Fabric) (Mod)
Dark Mode Everywhere (Fabric) by AK is verified for Fabric across Minecraft versions 1.19.1, 1.19.2, 1.20.1 (latest release: 1.20.1-1.2.2, file size: 562 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.19.1, 1.19.2, 1.20.1) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Dark Mode Everywhere (Fabric) file into your Minecraft
.minecraft/modsfolder and launch the game.