Skip to content

Accessing specific properties from rule-sets #76

Closed
@bhavinkamani

Description

@bhavinkamani

Hi,

Does less.js allows accessing specific properties from a rule-set? I was trying with following less-css

#color {
    @brand-color: #EEE;
}

html,body {
  background-color: #color[@brand-color];
}

However, it is giving syntax error. From official LESS documentation this appears to be the correct syntax (Ref: http://lesscss.org/docs - Namespaces & Accessors).

Thanks for making a truly rocking solution.

Regards
Bhavin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions