Skip to content

Conversation

SantosVilanculos
Copy link
Contributor

This sets the color-scheme CSS property, informing the browser of the page's preferred color scheme. This allows the user agent to apply consistent styling to its default UI elements (e.g., form controls, scrollbars), enhancing theme integration and user experience.

@OliverSpeak
Copy link

Might be cleaner to just add color-scheme: dark; directly in the .dark class in app.css instead. Should still work with the use-appearance hook.

@SantosVilanculos
Copy link
Contributor Author

When that way because of specificity and inheritance, even https://ui.shadcn.com/ does it that way. It uses the style attribute.

20250626192557

Copy link
Contributor

@joetannenbaum joetannenbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@joetannenbaum joetannenbaum merged commit 972b6ce into laravel:main Aug 21, 2025
2 checks passed
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.

3 participants