W3C home > Mailing lists > Public > www-style@w3.org > May 2003

Re: Font definition

From: Ben Godfrey <afternoon@uk2.net>
Date: Thu, 29 May 2003 12:46:44 +0100
To: www-style@w3.org
Message-Id: <38A2BBDA-91CB-11D7-8898-00039317C0C4@uk2.net>


> What about every other value? Wouldn't it be great to be able to 
> declare "variables" at the top of a stylesheet and reference them 
> where needed. Color schemes are the example that spring to mind.

This would be a powerful way to modularise complicated stylesheets. One 
could set variables and import a set of styles to make use of those 
variables, similar to the way that XSL is sometimes modularised.

This can be done at the moment with the approach of assigning selectors 
to properties rather than vice versa mentioned previously, but 
providing variables would increase the separation and maintainability 
of the individual files. This could be very useful in environments with 
large disparate sites and teams.

Ben


(q)	Ben Godfrey?
(a)	Web Developer and Designer
	See http://aftnn.org/ for details
Received on Thursday, 29 May 2003 07:46:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:21 GMT