Skip to content

[BUG] [GSSoC'26] : NativeShareButton uses hardcoded Tailwind colors instead of CSS theme variables #1087

@mallya-m

Description

@mallya-m

Bug Description

NativeShareButton.tsx uses hardcoded Tailwind color classes instead
of the CSS variable theme system used throughout the rest of the codebase.
This breaks dark mode consistency and visual cohesion.

Location

File: src/components/NativeShareButton.tsx

className={`... bg-blue-600 hover:bg-blue-700 
focus:ring-blue-500 focus:ring-offset-gray-900 ...`}

Why This Is a Bug

Every other interactive component in this codebase uses CSS variables
for theming — for example:

  • bg-[var(--accent)] instead of bg-blue-600
  • hover:bg-[var(--accent-hover)] instead of hover:bg-blue-700
  • border-[var(--border)] instead of hardcoded colors

NativeShareButton is the only component using raw Tailwind color
classes. This means:

  1. The button does not respond to theme changes (light/dark mode)
  2. The blue color clashes with the rest of the UI which uses no blue
  3. focus:ring-offset-gray-900 hardcodes a dark background assumption

Expected Behavior

The button should use CSS variables consistent with the rest of the UI:

  • bg-[var(--accent)] for background
  • hover:bg-[var(--accent-hover)] for hover state
  • focus:ring-[var(--accent)] for focus ring
  • Remove focus:ring-offset-gray-900

Actual Behavior

The share button renders with a hardcoded blue color that does not
match the app theme and does not adapt to light or dark mode.

Browser and OS Info

  • OS: Windows 11
  • Browser: Chrome
  • Version: Latest

I would like to work on this under GSSoC'26.

/assign

GitHub: github.com/mallya-m

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlytype:bugBug fixtype:designUI/UX design

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions