Skip to content

Conversation

@jcyamo
Copy link
Contributor

@jcyamo jcyamo commented Jan 23, 2026

Fix GitHub auto/system theme mode

Problem

The userstyle doesn't work properly when GitHub is set to "System" theme mode. CSS variables get overridden by GitHub's defaults.

Solution

  • Restructured selectors so they match correctly in auto mode
  • Added !important to theme variables that were getting overridden
  • Made disabled buttons (Watch/Fork/Star on enterprise repos) readable
  • Added tooltip styling to match the palette

Testing

  1. Set GitHub to "System" theme mode
  2. Check that accent colors match your Stylus settings
  3. Compare with explicit "Dark" mode — should look the same now

With "system/auto" theme

Before

Screenshot 2026-01-23 at 1 49 06 AM

After

Screenshot 2026-01-23 at 1 50 09 AM

Disabled enterprise buttons

Before

Screenshot 2026-01-23 at 1 55 12 AM

After

Screenshot 2026-01-23 at 1 55 49 AM

Restructure selectors to properly match GitHub's auto theme mode by:
- Moving media queries outside parent selectors for correct specificity
- Adding explicit html element to attribute selectors
- Adding !important to accent-color variables to override GitHub defaults

Bump version to 1.1.1.
- Add tooltip colors matching rose-pine palette
- Make disabled buttons readable with solid backgrounds and muted text
- Use @muted for disabled foreground colors instead of faded/transparent
@jcyamo jcyamo marked this pull request as ready for review January 23, 2026 06:59
Copy link
Member

@juliamertz juliamertz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@juliamertz juliamertz merged commit 9b01443 into rose-pine:main Jan 23, 2026
1 check passed
@jcyamo jcyamo deleted the fix/github-auto-theme branch January 23, 2026 15:21
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.

2 participants