Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Assignees
Labels
@asgardeo/reactIssues related to the `React.js` wrapper of Asgardeo JavaScript SDK accessibilityIssues related to accessibility compliance
@brionmario

Description

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

Labels

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

Type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /