Skip to content

Dynamic mixin calling #617

Closed
Closed
@Anahkiasen

Description

@Anahkiasen

Not much to say, I just think it would be a good idea if in LESS you could do the following :

.blue { color: blue }
.red { color: red }

.color(@color) {
   .@{color}
}

div {
   .color(red)
}

Resulting in

div { color: red }

.@{variable} is a proposition of syntax but .@variable, .{variable} or .{@variable} would maybe fit better the LESS syntax, I don't know.

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