Skip to content

[feat]: Option to disable the classbased dark mode selector #6952

@gshahbazian

Description

@gshahbazian

Feature description

Anytime I add a component with shadcn it adds

@custom-variant dark (&:is(.dark *));

to globals.css, even when we only want to support prefers-color-scheme default dark mode. Is there any way to tell the shadcn command not to alter the dark variant?

Affected component/components

No response

Additional Context

Additional details here...

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues and PRs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions