<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webmaster-Source &#187; LESS</title>
	<atom:link href="https://www.webmaster-source.com/tag/less/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 24 Aug 2017 02:01:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Setting Up a LESS Workflow in Sublime Text</title>
		<link>https://www.webmaster-source.com/2013/08/28/setting-up-a-less-workflow-in-sublime-text/</link>
		<comments>https://www.webmaster-source.com/2013/08/28/setting-up-a-less-workflow-in-sublime-text/#comments</comments>
		<pubDate>Wed, 28 Aug 2013 11:16:17 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[LESS]]></category>
		<category><![CDATA[Sublime Text]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=5165</guid>
		<description><![CDATA[LESS has been a popular way to streamline your CSS-writing for a while now, but fitting it into your workflow isn&#8217;t always easy. Some designers use standalone applications like CodeKit or SimpLESS to compile their LESS files into browser-ready CSS, but I prefer a more integrated approach. Fortunately, Sublime Text—my personal favorite text editor has [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://lesscss.org/">LESS</a> has been a popular way to streamline your CSS-writing for a while now, but fitting it into your workflow isn&#8217;t always easy. Some designers use standalone applications like <a href="http://incident57.com/codekit/">CodeKit</a> or <a href="http://wearekiss.com/simpless">SimpLESS</a> to compile their LESS files into browser-ready CSS, but I prefer a more integrated approach. Fortunately, <a href="http://www.sublimetext.com/">Sublime Text</a>—my personal favorite text editor has several available extensions to build LESS support in.<span id="more-5165"></span></p>
<p>I will assume that you already have <a href="http://wbond.net/sublime_packages/package_control">Sublime Package Control</a> installed, since it is pretty much a given for Sublime Text users.</p>
<h3>Step 1: Adding Syntax Highlighting</h3>
<p>I can&#8217;t imagine why anybody <em>wouldn&#8217;t</em> want their LESS files to have the proper syntax highlighting, so you probably want to install the <strong>LESS-sublime</strong> package, which you can find in Sublime Package Control under &#8220;LESS.&#8221;</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="//www.webmaster-source.com/wp-content/uploads/2013/08/stless-install-package.png" alt="Install Package" width="600" height="70" class="aligncenter size-full wp-image-5166 imgborder" /></p>
<h3>Step 2: Installing LESSC</h3>
<p>Now you need to install the LESS compiler, but first you need to grab a couple of dependencies.</p>
<p>First, download and install <a href="http://nodejs.org/">Node.js</a>. NPM (Node Package Manager) should also be installed automatically, so now you should be ready to install LESSC. Simply run the following command:</p>
<pre class="brush: plain; title: ; notranslate">npm install -g less</pre>
<h3>Step 3: Installing a LESS Build System</h3>
<p>In order to have your LESS files compiled into CSS, you will want to install the <a href="https://github.com/berfarah/LESS-build-sublime">LESS-build</a> package. Once it&#8217;s properly set up, it adds a Build System for LESS, enabling you to process the files by pressing Control+B (Command+B for Mac users).</p>
<p>After you have installed the package, you need to do a little configuration.</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="//www.webmaster-source.com/wp-content/uploads/2013/08/stless-browse-packages.png" alt="Browse Packages" width="506" height="136" class="aligncenter size-full wp-image-5167 imgborder" /></p>
<ol>
<li>Open the package directory by typing &#8220;browse packages&#8221; into the command palette and selecting the LESS-build folder.</li>
<li>Run <code>changeLESSBuildType.bat</code> (Windows) or <code>changeLESSBuildType.sh</code> (Mac/Linux) to set the build mode. Pick option number two (&#8220;directory rewrite&#8221;) when prompted.</li>
<li>In your project, select &#8220;LESS&#8221; from the Tools &gt; Build System menu.</li>
</ol>
<h3>Step 4: Using Your New Setup</h3>
<p>To demonstrate how the finished setup works, I put together a quick project in Sublime Text. My simple <code>index.html</code> references <code>css/mysite.css</code> as its stylesheet. This is the compiled output of many LESS files, which are found in the <code>less</code> directory.</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  src="//www.webmaster-source.com/wp-content/uploads/2013/08/stless-st-overview.png" alt="Sublime Text LESS Overview" width="600" height="303" class="aligncenter size-full wp-image-5168 imgborder" /></p>
<p>The <code>less/mysite.less</code> file, which is compiled into <code>css/mysite.css</code> when I switch to it and press Command+B, looks like this:</p>
<pre class="brush: css; title: ; notranslate">
//Load Twitter Bootstrap

@import &quot;bootstrap/bootstrap.less&quot;;

//Additional styles would go here
</pre>
<p>It loads the LESS files that make up <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>, which are easily tweak-able, since all of the styles are split into different files by sensible categories. Then any styles placed after the import line would override Bootstrap&#8217;s if they conflicted, given CSS&#8217;s precedence rules.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2013/08/28/setting-up-a-less-workflow-in-sublime-text/feed/</wfw:commentRss>
		<slash:comments>125</slash:comments>
		</item>
		<item>
		<title>WP-LESS: Leaner CSS For WordPress</title>
		<link>https://www.webmaster-source.com/2009/08/28/wp-less-leaner-css-for-wordpress/</link>
		<comments>https://www.webmaster-source.com/2009/08/28/wp-less-leaner-css-for-wordpress/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 11:29:16 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[LESS]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2497</guid>
		<description><![CDATA[You may have heard of LESS. It&#8217;s a Ruby Gem that allows you to write CSS files with variables, nested rules, operations, and &#8220;mixins,&#8221; which are akin to custom functions in a programming language. The LESS files are compiled into pure CSS before going into use. WP-LESS is a plugin that, using the lessphp library, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>You may have heard of <a href="http://lesscss.org/">LESS</a>. It&#8217;s a Ruby Gem that allows you to write CSS files with variables, nested rules, operations, and &#8220;mixins,&#8221; which are akin to custom functions in a programming language. The LESS files are compiled into pure CSS before going into use.</p>
<p><a href="http://case.oncle-tom.net/code/wordpress/wp-less/">WP-LESS</a> is a plugin that, using the lessphp library, brings LESS to WordPress. I have yet to try it for myself, but it certainly sounds intriguing.</p>
<p>The plugin watches for edits to your LESS source code, then recompiles and caches it as plain CSS, which is served up to your visitors.</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-2498 imgborder" title="LESS" src="//www.webmaster-source.com/wp-content/uploads/less_css_ruby.jpg" alt="LESS" width="540" height="192" /></p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/08/28/wp-less-leaner-css-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-06-12 22:06:17 by W3 Total Cache
-->