Skip to content

refactor: migrate Badges to Tailwind #19246

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Aug 7, 2025

Summary

  • Migrated the Badge components in site/src/components/Badges/Badges.tsx from using emotion styling to Tailwind CSS
  • Created badge variants using class-variance-authority (cva)
  • Used the cn utility for conditional class application
  • Maintained all existing functionality while converting to the new styling approach

Test plan

  • Verify that all badge components render correctly with the same appearance as before
  • Check that conditional class application works correctly on the DisabledBadge component
  • Ensure no visual regressions in components that use these badges

🤖 Generated with Claude Code

Changes include:
- Removed @emotion/react dependency in Badges.tsx
- Created badge variants using class-variance-authority
- Created a reusable Badge component with Tailwind classes
- Updated all badge components to use the new Badge component
- Used cn utility for conditional class merging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@aslilac aslilac changed the title Refactor: Migrate Badges.tsx from Emotion to Tailwind styling refactor: migrate Badges.tsx to Tailwind Aug 7, 2025
@aslilac aslilac changed the title refactor: migrate Badges.tsx to Tailwind refactor: migrate Badges to Tailwind Aug 7, 2025
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy