The Divine darkness should not be avoided, because He exists in absence as well as presence, in the evil as in the good.
For instance, in praying for the dead, we say: Blessed be He who judges in Truth.
The same prayer is spoken to confirm that God is present in any special situation—when one sees something of His goodness or revelation, something in the nature of a miracle.
Thus, "Baruch Dayan Emet" (Blessed is He who judges or decides all things in Truth) declares a sort of Divine manifestation.
You God, who have been revealed in this particular moment of decision, You who are concealed in the judgment, are made manifest.
I bless the revelation of God in the darkness.
–Rabbi Adin Steinsaltz
From The Sustaining Utterance by Rabbi Adin Steinsaltz