Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

One of the site returned from the sites method has the following styling codes

"site_type": "main_site",
  "name": "GIS",
  "logo_url": "",
  "api_site_parameter": "gis",
  "site_url": "",
  "audience": "cartographers, geographers and GIS professionals",
  "icon_url": "",
  "site_state": "normal",
  "styling": {
    "link_color": "#0077CC",
    "tag_foreground_color": "#e0e0e0",
    "tag_background_color": "#f5f5f5"

The foreground color and background color are actually shades of grey which makes the text not readable.

Also would it be possible for the color codes to always return the 6 digit code rather than #fff for some and #ffffff for others.

share|improve this question
up vote 0 down vote accepted

Looks like some bad colors got set for GIS, I've corrected them.

Both three and six digit versions of colors can be returned by the API, it's been this way since V1.0. I have, however, added a note about that on the documentation as it's non-obvious.

share|improve this answer
Awesome...GIS color combo looks good now. Just wanted the color to be uniform, since android color parser wont accept 3 digit. So had to do a manually conversion from 3 to 6. – Karan M Feb 23 '12 at 20:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .