W3C home > Mailing lists > Public > www-style@w3.org > August 2011

[css] Proposal: making Shorthand Hex Colors even shorter (16 grayscale shades)

From: Markus Bruch <macinfo@arcor.de>
Date: Sun, 31 Jul 2011 13:34:53 +0200
Message-Id: <2A02A707-C97F-4790-A341-467FA4EB5FAD@arcor.de>
To: www-style@w3.org
Hi, I'm new to this list, so please forgive if this topic has been
talked about before.

I'd like to propose to further shorten the css hex color notation.

Known notation:

	.orange { color: #ff6600; }


	.orange { color: #f60; }

I would suggest that for a specific set of 16 grayscale shades,
to reduce the rgb-values to one single character:

	.gray { color: #ccc; }


	.gray { color: #c; }

In addition to it's only marginal bandwith or space saving it
would have the benefit of being concise and easily visible to
the reader, that this code assigns a grayscale color (from a
set of 16 shades, #0 - #f).

What do you think?


Markus Bruch

Received on Tuesday, 2 August 2011 09:06:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:04 UTC