{"action":"closed","issue":{"url":"https://api.github.com/repos/less/less.js/issues/2468","labels_url":"https://api.github.com/repos/less/less.js/issues/2468/labels{/name}","comments_url":"https://api.github.com/repos/less/less.js/issues/2468/comments","events_url":"https://api.github.com/repos/less/less.js/issues/2468/events","html_url":"https://github.com/less/less.js/issues/2468","id":58613785,"number":2468,"title":"Variables in named variables","user":{"login":"studiosciences","id":1742764,"avatar_url":"https://avatars.githubusercontent.com/u/1742764?v=3","gravatar_id":"","url":"https://api.github.com/users/studiosciences","html_url":"https://github.com/studiosciences","followers_url":"https://api.github.com/users/studiosciences/followers","following_url":"https://api.github.com/users/studiosciences/following{/other_user}","gists_url":"https://api.github.com/users/studiosciences/gists{/gist_id}","starred_url":"https://api.github.com/users/studiosciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/studiosciences/subscriptions","organizations_url":"https://api.github.com/users/studiosciences/orgs","repos_url":"https://api.github.com/users/studiosciences/repos","events_url":"https://api.github.com/users/studiosciences/events{/privacy}","received_events_url":"https://api.github.com/users/studiosciences/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/less/less.js/labels/Feature%20Request","name":"Feature Request","color":"fe9400"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-23T16:52:27Z","updated_at":"2015-02-26T19:21:34Z","closed_at":"2015-02-26T19:21:34Z","body":"I'd like to be able to use a variable for part of the variable name.\r\n\r\n    @theme:Alternate;\r\n    \r\n    @themeColorDefault: blue;\r\n    @themeColorAlternate: red;\r\n    \r\n    @themeColor: @@{themeColor@{theme}};  //    <--- WANT THIS    //\r\n    \r\n    body {\r\n        color: @themeColor\r\n    }\r\n\r\nI realize I can do this by adding another variable, but it makes it really hard to follow especially when I have a lot of colors:\r\n\r\n    @themeColorName:  \"themeColorBase@{theme}\";\r\n    @themeColor:   @@themeColorName;\r\n\r\nThanks for your consideration.\r\n\r\nMarc"}}