Greasy Fork is available in English.

GitHub fix theme

Buttons and labels should be colored as "primary", not "success".

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name        GitHub fix theme
// @namespace   Violentmonkey Scripts
// @match       https://github.com/*
// @match       https://*.github.com/*
// @grant       GM_addStyle
// @run-at      document-start
// @license     MIT
// @version     1.0.4
// @author      Mops
// @icon        https://github.githubassets.com/favicons/favicon-dark.png
// @description Buttons and labels should be colored as "primary", not "success".
// ==/UserScript==

/**
 * blue: 215deg
 * green: 135deg
 * orange: 23deg
 */
let accent = '215deg';

GM_addStyle(`
/* All primary-themed buttons should be blue*/
html.js-focus-visible[lang][data-color-mode] {
  --accent: ${accent};

  --bgColor-accent-emphasis: hsl(var(--accent) 83.61% 52.16%);
  --button-primary-bgColor-rest: var(--bgColor-accent-emphasis);
  --button-primary-bgColor-active: hsl(var(--accent) 83.61% 60.16%);
  --button-primary-bgColor-hover: hsl(var(--accent) 83.61% 44.16%);
  --button-primary-bgColor-disabled: hsl(var(--accent) 83.61% 41.16%);

  --borderColor-accent-emphasis: hsl(var(--accent) 63.61% 56.16%);
  --button-primary-borderColor-rest: var(--borderColor-accent-emphasis);
  --button-primary-borderColor-disabled: hsl(var(--accent) 63.61% 45.16%);
}

/* (Latest) pill and other success-themed pills */
.Label.Label--success,

/* (Preview) pill */
:where(.prc-Label-Label--LG6X):where([data-variant=success])
{
  border-color: var(--borderColor-accent-emphasis);
  color: var(--fgColor-accent);
}
`);