Re: [css-variables] ...let's change the syntax

On Tue, Mar 18, 2014 at 10:51 AM, Andrew Fedoniouk
<news@terrainformatica.com> wrote:
> On Tue, Mar 18, 2014 at 8:27 AM, Marat Tanalin <mtanalin@yandex.ru> wrote:
>> FWIW, I would like to repeat my recent idea of using `$` as a prefix for declaring a variable and `$()` function to get a variable value.
>>
>>     p {
>>         $company-color-1: green;
>>         background-color: $(company-color-1);
>>     }
>>
>> Important part here is that retrieving a variable value is proposed to be done via _functional_ notation `$()` instead of using just prefix for both declaring and retrieving as before.
>>
>
> I believe that we need to go back to the ultimate solution:
>
> p {
>        var(company-color-1): green;
>        background-color: var(company-color-1);
>    }
>
> so to use 'var()'  "function" as a namespace and intention marker on
> both sides of the
> declaration.
>
> That is the most reliable and future friendly solution I believe.

That's literally the exact opposite of the intention that led me to
start this thread.  I'm trying to make custom properties and variables
*less* connected, not more.

~TJ

Received on Tuesday, 18 March 2014 17:56:15 UTC

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant