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

Re: [css-variables] Using $foo as the syntax for variables

From: Mike Fowler <mike@mikefowler.me>
Date: Tue, 22 May 2012 10:32:43 -0400
Message-ID: <CADn4aywQLJiLR4N4MBc=g+DiM16Cjk6UdZbxjqSuezRetHTYnw@mail.gmail.com>
To: www-style@w3.org
My two-cents as a front-end developer is that I find the prefixed $variable
syntax much easier to work with. Given that the $ symbol is not used
elsewhere as part of the CSS syntax, it seems like a natural fit for
variables. Referencing a variable as 'color: $red;' reads syntactically
much better than 'color: var(red);'.
Received on Tuesday, 22 May 2012 21:07:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:16 UTC