From 278b9ab7e2bd2172e8c2fffcb049fce3724d60fd Mon Sep 17 00:00:00 2001 From: Kabir Goel Date: Fri, 21 Jul 2023 11:47:06 -0700 Subject: [PATCH] Allow custom Tailwind content (#1399) --- reflex/app.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/reflex/app.py b/reflex/app.py index 235c0d87a..efed23b10 100644 --- a/reflex/app.py +++ b/reflex/app.py @@ -503,13 +503,11 @@ class App(Base): compile_results.append(compiler.compile_theme(self.style)) # Compile the Tailwind config. - compile_results.append( - compiler.compile_tailwind( - dict(**config.tailwind, content=constants.TAILWIND_CONTENT) - if config.tailwind is not None - else {} + if config.tailwind is not None: + config.tailwind["content"] = config.tailwind.get( + "content", constants.TAILWIND_CONTENT ) - ) + compile_results.append(compiler.compile_tailwind(config.tailwind)) # Write the pages at the end to trigger the NextJS hot reload only once. thread_pool = ThreadPool()