Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Less

< >

Less is an open source stylesheet language created in 2009 by Alexis Sellier.

#151on PLDB 15Years Old 12kRepos

Try now: Web · Riju

Less (sometimes stylized as LESS) is a dynamic style sheet language that can be compiled into Cascading Style Sheets (CSS) and run on the client side or server side. Designed by Alexis Sellier, Less is influenced by Sass and has influenced the newer "SCSS" syntax of Sass, which adapted its CSS-like block formatting syntax. Less is open source. Read more on Wikipedia...


Example from Riju:
body:before { content: "Hello, world!"; }
Example from hello-world:
body::before { content: "Hello World" }
Example from Linguist:
@blue: #3bbfce; @margin: 16px; .content-navigation { border-color: @blue; color: darken(@blue, 9%); } .border { padding: @margin / 2; margin: @margin / 2; border-color: @blue; }
Example from Wikipedia:
#header { color: #333333; border-left: 1px; border-right: 3px; } #footer { color: #114411; border-color: #7d2717; }

Language features

Feature Supported Token Example
Strings "
"Hello world"
Comments
// A comment
MultiLine Comments /* */
/* A comment
*/
Line Comments //
// A comment

View source

- Build the next great programming language · About · Resources · Acknowledgements · Part of the World Wide Scroll