Skip to content

fix: move theme to RadixThemesPlugin to silence 0.9.0 deprecation#60

Open
FarhanAliRaza wants to merge 1 commit into
mainfrom
fix/radix-themes-plugin-deprecation
Open

fix: move theme to RadixThemesPlugin to silence 0.9.0 deprecation#60
FarhanAliRaza wants to merge 1 commit into
mainfrom
fix/radix-themes-plugin-deprecation

Conversation

@FarhanAliRaza
Copy link
Copy Markdown

@FarhanAliRaza FarhanAliRaza commented Jun 2, 2026

Problem

The templates repo check-export CI fails because reflex export emits:

DeprecationWarning: App(theme=...) has been deprecated in version 0.9.0.
configure `rx.plugins.RadixThemesPlugin(theme=...)` in `rxconfig.py` instead.

Fix

  • Remove theme=rx.theme(...) from rx.App(...) in chat/chat.py.
  • Configure the same theme (appearance="dark", accent_color="purple") via rx.plugins.RadixThemesPlugin(theme=...) in rxconfig.py.

No visual change — same theme, just the non-deprecated configuration.

Verification

Reproduced the CI locally against the reflex main workspace (reflex 0.9.3.dev):

  • reflex export → no DeprecationWarning in logs (was failing before)
  • frontend.zip / backend.zip build and unzip cleanly
  • Compiled .web output still contains the dark / purple theme

🤖 Generated with Claude Code

App(theme=...) is deprecated in reflex 0.9.0; configure the theme via
rx.plugins.RadixThemesPlugin(theme=...) in rxconfig.py instead. This
clears the DeprecationWarning that fails the templates check-export CI.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant