def TailwindApp(
    tailwind_version: int = 0,
    paragraph_text: str = PARAGRAPH_TEXT,
    paragraph_class_name: str = PARAGRAPH_CLASS_NAME,
):
    """App with tailwind optionally disabled.

    Args:
        tailwind_version: Tailwind version to use. If 0, tailwind is disabled.
        paragraph_text: Text for the paragraph.
        paragraph_class_name: Tailwind class_name for the paragraph.
    """
    from pathlib import Path

    import reflex as rx

    class UnusedState(rx.State):
        pass

    def index():
        return rx.el.div(
            rx.text(paragraph_text, class_name=paragraph_class_name),
            rx.el.p(paragraph_text, class_name=paragraph_class_name),
            rx.text(paragraph_text, as_="p", class_name=paragraph_class_name),
            rx.el.div("Test external stylesheet", class_name="external"),
            id="p-content",
        )

    assets = Path(__file__).resolve().parent.parent / "assets"
    assets.mkdir(exist_ok=True)
    stylesheet = assets / "test_styles.css"
    stylesheet.write_text(".external { color: rgba(0, 0, 255, 0.5) }")
    app = rx.App(style={"font_family": "monospace"}, stylesheets=[stylesheet.name])
    app.add_page(index)
    if not tailwind_version:
        config = rx.config.get_config()
        config.tailwind = None
        config.plugins = []
    elif tailwind_version == 3:
        config = rx.config.get_config()
        config.plugins = [rx.plugins.TailwindV3Plugin()]
    elif tailwind_version == 4:
        config = rx.config.get_config()
        config.plugins = [rx.plugins.TailwindV4Plugin()]
App with tailwind optionally disabled.

    Args:
        tailwind_version: Tailwind version to use. If 0, tailwind is disabled.
        paragraph_text: Text for the paragraph.
        paragraph_class_name: Tailwind class_name for the paragraph.
    
tests/integration/test_tailwind.py