A worked example, rendered from real sample data. Sign in to run the tool on your own input.
@primary: #3b82f6;
@size: lg;
.rounded(@r: 0.5rem) {
border-radius: @r;
}
.card {
background: @primary;
padding: 1rem;
.rounded();
&:extend(.shadow all);
width: ~"calc(100% - 2rem)";
}
.btn-@{size} {
font-size: 1.125rem;
}
.shadow {
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}$primary: #3b82f6;
$size: lg;
@mixin rounded($r: 0.5rem) {
border-radius: $r;
}
.card {
background: $primary;
padding: 1rem;
@include rounded;
@extend .shadow;
width: unquote("calc(100% - 2rem)");
}
.btn-#{$size} {
font-size: 1.125rem;
}
.shadow {
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

Convert LESS to SCSS syntax. Part of the DevTools Surf developer suite. Browse more tools in the CSS collection.