Skip to content

Update Tailwind config usage in Radix UI Primitives docs CodeSandbox examples #872

@vishnudt2004

Description

@vishnudt2004

Documentation

Relevant Radix Component(s)

The CodeSandbox examples for every component

Description

Currently, the CodeSandbox examples for components (e.g. Accordion, Alert Dialog, etc.) in Radix UI Primitives documentation site do not include the new Tailwind CSS v4+ config directive. Since Tailwind no longer auto-detects tailwind.config.js without explicitly using @config "../path/to/tailwind.config.js" in a CSS file (e.g., styles.css or global.css), this can break color/theme extensions and confuse developers.

To avoid this and improve the docs, we should update each sandbox example to include:

@config "../path/to/tailwind.config.js";

Tailwind Docs reference:
https://tailwindcss.com/docs/functions-and-directives#config-directive

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions