PHPackages                             icit/wp-less - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. icit/wp-less

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

icit/wp-less
============

Provides a LESS compiler compatible with wp\_enqueue\_style() for rapid CSS development in themes and plugins.

0.3(12y ago)21725352[16 issues](https://github.com/roborourke/wp-less/issues)[2 PRs](https://github.com/roborourke/wp-less/pulls)GPL-2.0+PHPPHP &gt;5.2.4

Since Oct 1Pushed 8y ago21 watchersCompare

[ Source](https://github.com/roborourke/wp-less)[ Packagist](https://packagist.org/packages/icit/wp-less)[ RSS](/packages/icit-wp-less/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Enable LESS CSS in WordPress
============================

[](#enable-less-css-in-wordpress)

LESS is an abstraction layer that adds some very powerful features to CSS. It will speed up your development process and make your life that much easier. Find out more from the links below and then head on back.

The addon allows you to write and edit `.less` files directly and have WordPress do the job of compiling and caching the resulting CSS. It eliminates the extra step of having to compile the `.less` files into CSS yourself before deploying them.

Installation:
-------------

[](#installation)

If you are using git to clone the repository, do the following:

```
git clone git://github.com/sanchothefat/wp-less.git wp-less

```

If you are downloading the `.zip` or `.tar`, don't forget to download the [lessphp dependency too](https://github.com/leafo/lessphp) and copy it into the `vendor/leafo/lessphp`directory.

Then install the lessphp dependency using:

```
composer install

```

Alternatively, add "icit/wp-less" as a requirement to your composer.json, and add this git repository e.g.:

```
{
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/sanchothefat/wp-less.git"
        }
    ],
    "require": {
        "icit/wp-less": "dev-master"
    }
}

```

Usage:
------

[](#usage)

You can either install the script as a standard plugin or use it as an include within a theme or plugin.

For use with themes add the following lines to your functions.php:

```
