Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access Windows accent color in html/css

Is there a way to get Windows accent color for use in html/css for IE, Chrome, Moz? Or at least one of those?

Thanks a lot for your help!

like image 988
JimJJ Avatar asked Oct 30 '22 05:10

JimJJ


1 Answers

You can do this on Firefox in css with -moz-win-accentcolor.

For example, if you were trying to make the background color of a div match the accent color, do:

div { background-color: -moz-win-accentcolor; }

As far as I know, no other browser (aside from Firefox-based browsers) can do this.

like image 121
Jack Buehner Avatar answered Nov 09 '22 08:11

Jack Buehner