refactor(QuickLinksCard): replace hardcoded colors with theme CSS var…#72
Merged
garrity-miepub merged 1 commit intomainfrom Feb 4, 2026
Merged
Conversation
…iables - Replace hardcoded gray colors with semantic theme variables: - Icon: text-gray-500 dark:text-gray-400 → text-muted-foreground - Label: text-gray-900 dark:text-white → text-foreground - Description: text-gray-500 dark:text-gray-400 → text-muted-foreground - Chevron: text-gray-400 → text-muted-foreground - Improve badge contrast for accessibility: - Light mode: use --mieweb-primary-700 (darker cyan) for better contrast - Dark mode: use --mieweb-primary-400 (lighter cyan) for readability - Background remains bg-primary/10 for subtle appearance This ensures consistent theming across all brand configurations while improving WCAG contrast compliance for badge text.
There was a problem hiding this comment.
Pull request overview
This PR refactors the QuickLinksCard component to replace hardcoded gray and blue color values with semantic theme variables, improving consistency across brand configurations and enhancing accessibility for badge text through improved WCAG contrast compliance.
Changes:
- Replaced hardcoded gray colors (gray-500, gray-400, gray-900) with semantic theme variables (text-muted-foreground, text-foreground)
- Updated badge styling from hardcoded blue colors to dynamic primary theme colors with specific contrast-optimized CSS variables for light and dark modes
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…iables
Replace hardcoded gray colors with semantic theme variables:
Improve badge contrast for accessibility:
This ensures consistent theming across all brand configurations while improving WCAG contrast compliance for badge text.
quick-links.mov