Browse Source

update tailwind.config.js.jinja2 to add darkMode option (#2312)

Romain Bury 1 year ago
parent
commit
42bcea7631
1 changed files with 4 additions and 1 deletions
  1. 4 1
      reflex/.templates/jinja/web/tailwind.config.js.jinja2

+ 4 - 1
reflex/.templates/jinja/web/tailwind.config.js.jinja2

@@ -12,6 +12,9 @@ module.exports = {
 	{% for preset in presets %}
 		require({{preset|json_dumps}})
 	{% endfor %}
-	]
+	],
+	{% endif %}
+	{% if darkMode is defined %}
+	darkMode: {{darkMode|json_dumps}},
 	{% endif %}
 };