diff --git a/webv4/lib/init.js b/webv4/lib/init.js
index e97b089669d45254b1bce7ec6fbcb5b35c9ff9b4..80c1cb88dd45f71c2f277cf4caf01e6305d3ec86 100644
--- a/webv4/lib/init.js
+++ b/webv4/lib/init.js
@@ -46,9 +46,13 @@ var defaults = {
 			if (typeof v !== 'string') return new Error('Invalid files_inline_blacklist setting ' + v);
 			return v.split(',');
 		}
-	}
+	},
+	darkmode_allow: { default: true },
+	darkmode_on: { default: false },
 };
 
+if (settings.darkmode_off) settings.darkmode_allow = false;
+
 function doError(e) {
 	log(LOG_ERROR, e);
 	http_reply.status = '500 Internal Server Error';