Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Less

< >

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

#162on PLDB 15Years Old 12kRepos
Homepage · REPL · Wikipedia

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 Example Token
Strings ✓ "Hello world" "
Comments ✓ // A comment
MultiLine Comments ✓ /* A comment */ /* */
Line Comments ✓ // A comment //
View source
- Build the next great programming language · About · Keywords · Resources · Acknowledgements · Part of the World Wide Scroll