A worked example, rendered from real sample data. Sign in to run the tool on your own input.
.card {
display: flex;
gap: 1rem;
padding: 1.5rem;
border-radius: 0.75rem;
background: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.card:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}.card {
display: flex;
gap: 1rem;
padding: 1.5rem;
border-radius: 0.75rem;
background: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
&:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
}

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