Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dedicated "Active" state for solid backgrounds in palettes #3389

Open
jdanamato opened this issue Feb 20, 2025 · 0 comments
Open

Dedicated "Active" state for solid backgrounds in palettes #3389

jdanamato opened this issue Feb 20, 2025 · 0 comments

Comments

@jdanamato
Copy link

Feature request

Overview

Radix UI lacks a dedicated “Active” step for solid backgrounds. Including a new color step that reliably indicates an active or pressed state (instead of a CSS filter) would unify the palette’s interactive states and make adoption easier.

Examples in other libraries

  • Tailwind CSS allows users to create their own active states by enabling non-semantic palettes. For instance, users can define an active state as “bg-blue-500 active:bg-blue-600.” On the other hand, Radix’s palettes are primarily semantic, which means step 11 in their approach is not a logical progression.
  • Chakra UI: Similarly provides an “active” variant for buttons that changes the background to a solid color step.

Who does this impact? Who is this for?

  • Designers: Offers a fully harmonized color system that makes state changes clearer.
  • Developers: Reduces guesswork or manual additions to the theme when implementing active states.
  • End-users: Benefits from a more intuitive and consistent user experience.

Additional context

It might seem minor, but like a snack drawer without chocolate, a color palette without a dedicated active state just feels incomplete. Adding this step keeps interactive elements on brand and visually differentiated from both base and hover states.

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

No branches or pull requests

1 participant