Browse Source

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

Romain Bury 1 năm trước cách đây
mục cha
commit
42bcea7631
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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 %}
 };