Slashdot Mirror


Why Many CSS Colors Have Goofy Names (arstechnica.com)

An anonymous reader writes: Take a look at the list of named colors within the CSS Color Module Level 4. The usual suspects are there, like 'red,' 'cyan,' and 'gold,' as well as some slightly more descriptive ones: 'lightgrey,' 'yellowgreen,' and 'darkslateblue.' But there are also some really odd names: 'burlywood,' 'dodgerblue,' 'blanchedalmond,' and more. An article at Ars walks through why these strange names became part of a CSS standard. Colors have been added to the standard piece by piece over the past 30 years — here's one anecdote: "The most substantial release, created by Paul Raveling, came in 1989 with X11R4. This update heralded a slew of light neutral tones, and it was a response to complaints from Raveling's coworkers about color fidelity. ... Raveling drew these names from an unsurprising source: the (now-defunct) paint company Sinclair Paints. It was an arbitrary move; after failing to receive sanctions from the American National Standards Institute (ANSI), which issued standards for Web color properties, Raveling decided to take matters into his own hands. He calibrated the colors for his own HP monitor. 'Nuts to ANSI & "ANSI standards,"' he complained."

13 of 77 comments (clear)

  1. They could fix everything by LihTox · · Score: 5, Interesting

    by allowing user-defined colors in CSS. Not only could they offload the unwanted old names into a single stylesheet (legacycolors.css?), but it would be so much easier to adjust the color scheme of a website by changing a couple of definitions.

    But I'm just an amateur; maybe that IS a CSS feature and I've missed it?

    1. Re:They could fix everything by squiggleslash · · Score: 2, Interesting
      It isn't already a feature, and something of that nature has been wanted for a long, long, time, though not limited to colo{u}rs.

      There are a few CSS macro processors, such as SASS and Less.js, built to workaround this specific deficiency. What's amazing is that it's never been addressed by the W3C, despite being identified as a problem right from the start.

      --
      You are not alone. This is not normal. None of this is normal.
    2. Re:They could fix everything by Fwipp · · Score: 4, Informative

      You could check out something like SASS: allows variables & some other syntax improvements, then compiles into CSS. So you can declare:

      $primary-color: #abcdef;
      div.header {
          background-color: $primary-color;
      }

    3. Re:They could fix everything by FatdogHaiku · · Score: 3, Funny

      I have to admit I would like to see Less SASS on websites...

      --
      You have the right to remain sentient. If you give up the right to remain sentient, you will be elected to public office
    4. Re:They could fix everything by OakDragon · · Score: 2

      I have to admit I would like to see Less SASS on websites...

      And less backtalk, too!

  2. No one uses color names by xxxJonBoyxxx · · Score: 5, Funny

    No one uses color names
    It's all RGB these days
    No one gives a shit
    Burma Shave

  3. So who... by Chris+Mattern · · Score: 2

    ...is Blanche Dalmond?

  4. Some not so odd by Nidi62 · · Score: 4, Interesting

    "dodgerblue" of course refers to the LA Dodgers. Interestingly enough, according to Wikipedia, the color itself is not used on the uniforms of the Dodgers but is used throughout the stadium. Personally I pictured more of a darker blue than an azure because I assumed it was the color found on the uniforms, but I immediately made the connection between the color name and the baseball team.

    --
    The only thing necessary for evil to triumph is for it to be pitted against a slightly greater evil
  5. CSS? by Darinbob · · Score: 4, Insightful

    These colors existed before the web, no? Weren't they the same as in X Windows?

    1. Re:CSS? by drinkypoo · · Score: 5, Informative

      These colors existed before the web, no? Weren't they the same as in X Windows?

      Yeah, that's what the summary almost says. You can google for rgb.txt to see more.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  6. Re:The TL;DR by Anonymous Coward · · Score: 4, Informative

    Semi-short article summary:

    X11 programmers decide that people want "easy" names because hex codes are hard. These were specifically calibrated for the DEC VT24's screen.

    Later, an X11 programmer's colleagues start complaining about lacking color options in X11 (it turns out, someone does think hex codes are hard), so he adds a bunch of colors based off paint swatch names. Later that year, another programmer adds a bunch more colors with silly subjective names taken from Crayola crayons, after figuring that the use of "standard" names like "pink" or "orange" is a bad idea since monitors are calibrated wildly differently, while no one's really going to complain if "orchid" doesn't look like "orchid" on their monitor.

    Much time passes. Some web browsers start using the color names for some reason that the article glosses over, but almost no websites do and it's not part of the standards. For CSS 3, W3C decides to respect that practice by codifying the colors despite much protest and little support. More time passes, someone adds a color as a memorial to the daughter of a CSS-related programmer (not sure what that means...) who had died of brain cancer.

    And today? No one's actually using the damn things, everyone uses hex codes, but they're still there.

    That's it. Lots of hand-waving, kind of scant details, and nothing much in the way of committees until w3c got involved.

  7. Gray versus grey by Tablizer · · Score: 3, Informative

    In 1988, X11R2 arrived with the addition of three colors, including the identical shades "gray" and "grey." According to Austin-based developer Alex Sexton, discussing the colors at a JavaScript Conference last year, programmers at Hewlett-Packard couldn't remember the proper spelling (which was originally with an 'a'). Including two names, it was thought, would prevent errors.

    I looked into this once, and found that one is a UK convention and the the other a US convention (gray).

    1. Re:Gray versus grey by Tablizer · · Score: 2

      That's a gray area :-)