diff --git a/core/src/jquery/css/jquery.ocdialog.scss b/core/src/jquery/css/jquery.ocdialog.scss
index 89653ae181a04ac9764b284c464924d233a755f5..1bb59512e5635794a6a4ffcaf3e9d3c682a93312 100644
--- a/core/src/jquery/css/jquery.ocdialog.scss
+++ b/core/src/jquery/css/jquery.ocdialog.scss
@@ -62,7 +62,7 @@
 }
 
 .oc-dialog-dim {
-	background-color: #000;
+	background-color: var(--color-main-text);
 	opacity: .2;
 	z-index: 9999;
 	position: fixed;