<html> <head> <link rel="stylesheet" href="style.css" type="text/css" /> <title>LESS Variables Interpolation Properties</title> </head> <body> <div class="myclass"> <h2>Welcome to Yiibai Yiibai</h2> <p>LESS is a CSS pre-processor that enables customizable, manageable and reusable style sheet for web site.</p> </div> </body> </html>
@my-property: color; .myclass { background-@{my-property}: #81F7D8; }
lessc style.less style.css
.myclass { background-color: #81F7D8; }