Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Less CSS framework experience
Anyone on here had any experience using the Less CSS framework for building stylesheets? I’m about to start on a project that will require duplication of CSS across a number of microsites and I like the idea of being able to use variables for the colour codes. Does the framework actually work and is the CSS produced decent? I’d be interested to here your views.
Offline
Re: Less CSS framework experience
I wouldn’t call it a framework. It’s really a css pre-processor. So it shouldn’t affect css quality in any way.
Shoving is the answer – pusher robot
Offline
Re: Less CSS framework experience
Thanks for the response. Less isn’t really a framework, but more so than the likes of Grid 960 (which I am making use of in my current project). I’d noticed that when compiling the CSS it converts the short form of colour codes to the long form; I have no problem with this, but wondered whether there were other quirks that I had not yet picked up on.
I’m actually using Less now and am loving it so far. Variables strike me as a great help when needing to re-use CSS for other sites (eg microsite themes) when a simple search-and-replace may not work exactly as you want.
Offline
Re: Less CSS framework experience
I am trying LESS for the first time now – I get a compile error from line 1 no matter what !
I think this will be useful for the longwinded default css file I have now – let alone the other styles.
اردو میں بھی دستیاب Textpattern آپ کے لیے اب
Offline
#5 2010-03-03 13:33:13
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 553
Re: Less CSS framework experience
I’m using Less at for a project the moment in conjunction with cnk_versioning and it works very well. If you’re thinking of using it on the Mac take a look at www.incident57.com/less it automates the conversion process so you don’t have to touch the command line.
From what I’ve seen of the outputted stylesheet it strips out all comments and replaces indents with a couple of spaces. Since you’ll spend more time with your .less file it hardly matters really.
I find less very useful for setting variables and mixins at the start of the document, it saves an awful lot of typing later. I found being able to use nested styles very useful too.
Offline
Re: Less CSS framework experience
I’ve been using it for nearly a week now and am really glad I started. To start with, after spending a couple of days working on the stylesheets our designer decided she wanted to change a bunch of colours. Thankfully I set these up with variables in a definitions.less file that I import into my main less CSS files which I can just change there. Secondly being able to nest style rules just seems to make a lot of sense and I am sure my stylesheets are a lot easier to work with in the Less formatting.
I’m now trying to convert the other two developers here to using this.
Offline