Skip to content

feat: detect the application color scheme automatically based on common strategies (class based, data attr based) #236

@brionmario

Description

@brionmario

Problem

If the color scheme is not explicitly passed, the SDK should intelligently try to resolve the applications theme based off of common patterns.

  • class based discovery: <html class"dark... (Tailwind use this)
  • Data attribute based discovery: `<html data-color-scheme"dark"...> (MUI)

Proposed Solution

Improve the theme detection algorithm.

Alternatives

N/A

Please select the package issue is related to

@asgardeo/react

Version

current

Reporter Checklist

  • I have searched the existing issues and this is not a duplicate.
  • I have provided all the necessary information.
  • I have verified the feature on the latest version of the package.

Metadata

Metadata

Assignees

Labels

@asgardeo/reactIssues related to the `React.js` wrapper of Asgardeo JavaScript SDKaccessibilityIssues related to accessibility compliance

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions