Skip to main content
added 258 characters in body
Source Link
Someone
  • 2.1k
  • 4
  • 20

Edit: user3840170's stylesheet does what I was planning to do, and is a cleaner solution than anything I would have come up with.

I'm working on a userscript to reverse the upcoming vote button changes.

The color of unselected vote button colors seems to be rgb(186, 191, 196) on all SE sites, but the color of selected buttons seems to vary by site. It is the CSS value --theme-primary-color, but I'm not 100% sure that isn't going away with the change, so I want to save the colors from as many sites as possible.

Here's a bookmarklet that gets the value:

javascript:alert(getComputedStyle(document.body).getPropertyValue('--theme-primary-color'))

It works on any page of the site.

Collected so far

  • Meta: hsl(195.91836735, 80.99173554%, 47.45098039%)
  • Aviation: hsl(205.7591623, 84.14096916%, 44.50980392%)
  • SO: hsl(27, 90%, 55%)
  • Unix: hsl(204.24242424, 70.21276596%, 27.64705882%)
  • Ask Ubuntu: hsl(12.87958115, 76.70682731%, 48.82352941%)
  • Server Fault: hsl(358, 62%, 47%)
  • Law, PLDI, probably all beta/beta-design sites: hsl(205, 47%, 42%)
  • Aviation Meta, PLDI Meta, Law Meta, Meta SO, probably all per-site Metas: hsl(210, 8%, 5%)

(If it can be confirmed that --theme-primary-color isn't going away in the foreseeable future, collecting these will not be necessary.)

I'm working on a userscript to reverse the upcoming vote button changes.

The color of unselected vote button colors seems to be rgb(186, 191, 196) on all SE sites, but the color of selected buttons seems to vary by site. It is the CSS value --theme-primary-color, but I'm not 100% sure that isn't going away with the change, so I want to save the colors from as many sites as possible.

Here's a bookmarklet that gets the value:

javascript:alert(getComputedStyle(document.body).getPropertyValue('--theme-primary-color'))

It works on any page of the site.

Collected so far

  • Meta: hsl(195.91836735, 80.99173554%, 47.45098039%)
  • Aviation: hsl(205.7591623, 84.14096916%, 44.50980392%)
  • SO: hsl(27, 90%, 55%)
  • Unix: hsl(204.24242424, 70.21276596%, 27.64705882%)
  • Ask Ubuntu: hsl(12.87958115, 76.70682731%, 48.82352941%)
  • Server Fault: hsl(358, 62%, 47%)
  • Law, PLDI, probably all beta/beta-design sites: hsl(205, 47%, 42%)
  • Aviation Meta, PLDI Meta, Law Meta, Meta SO, probably all per-site Metas: hsl(210, 8%, 5%)

(If it can be confirmed that --theme-primary-color isn't going away in the foreseeable future, collecting these will not be necessary.)

Edit: user3840170's stylesheet does what I was planning to do, and is a cleaner solution than anything I would have come up with.

I'm working on a userscript to reverse the upcoming vote button changes.

The color of unselected vote button colors seems to be rgb(186, 191, 196) on all SE sites, but the color of selected buttons seems to vary by site. It is the CSS value --theme-primary-color, but I'm not 100% sure that isn't going away with the change, so I want to save the colors from as many sites as possible.

Here's a bookmarklet that gets the value:

javascript:alert(getComputedStyle(document.body).getPropertyValue('--theme-primary-color'))

It works on any page of the site.

Collected so far

  • Meta: hsl(195.91836735, 80.99173554%, 47.45098039%)
  • Aviation: hsl(205.7591623, 84.14096916%, 44.50980392%)
  • SO: hsl(27, 90%, 55%)
  • Unix: hsl(204.24242424, 70.21276596%, 27.64705882%)
  • Ask Ubuntu: hsl(12.87958115, 76.70682731%, 48.82352941%)
  • Server Fault: hsl(358, 62%, 47%)
  • Law, PLDI, probably all beta/beta-design sites: hsl(205, 47%, 42%)
  • Aviation Meta, PLDI Meta, Law Meta, Meta SO, probably all per-site Metas: hsl(210, 8%, 5%)

(If it can be confirmed that --theme-primary-color isn't going away in the foreseeable future, collecting these will not be necessary.)

Source Link
Someone
  • 2.1k
  • 4
  • 20

What are the selected vote button colors?

I'm working on a userscript to reverse the upcoming vote button changes.

The color of unselected vote button colors seems to be rgb(186, 191, 196) on all SE sites, but the color of selected buttons seems to vary by site. It is the CSS value --theme-primary-color, but I'm not 100% sure that isn't going away with the change, so I want to save the colors from as many sites as possible.

Here's a bookmarklet that gets the value:

javascript:alert(getComputedStyle(document.body).getPropertyValue('--theme-primary-color'))

It works on any page of the site.

Collected so far

  • Meta: hsl(195.91836735, 80.99173554%, 47.45098039%)
  • Aviation: hsl(205.7591623, 84.14096916%, 44.50980392%)
  • SO: hsl(27, 90%, 55%)
  • Unix: hsl(204.24242424, 70.21276596%, 27.64705882%)
  • Ask Ubuntu: hsl(12.87958115, 76.70682731%, 48.82352941%)
  • Server Fault: hsl(358, 62%, 47%)
  • Law, PLDI, probably all beta/beta-design sites: hsl(205, 47%, 42%)
  • Aviation Meta, PLDI Meta, Law Meta, Meta SO, probably all per-site Metas: hsl(210, 8%, 5%)

(If it can be confirmed that --theme-primary-color isn't going away in the foreseeable future, collecting these will not be necessary.)