---
title: "Usage"
version: "13.0"
permalink: "https://docs.typo3.org/permalink/wapplersystems/ws_less:usage@13.0"
source: "Usage/Index.rst"
rendered: "2026-11-19T09:28:13+00:00"
---

# Usage {#usage}

Use the includeCSS command and define the output dir:

```
page.includeCSS {

  bootstrap = fileadmin/bootstrap/less/bootstrap.less
  bootstrap.outputdir = fileadmin/bootstrap/css/

  responsive = fileadmin/bootstrap/less/responsive.less
  responsive.outputdir = fileadmin/bootstrap/css/

}

```

You can also leave off the  *outputdir* . Then the extension writes
the css files into the typo3temp/ws_less dir.

Variables: You can set less variables in typoscript in template setup
part of your template:

```
plugin.tx_wsless.variables {
  var1 = #000
  var2 = #666
}

```

For developing it is practical, if you force to render the template
(switch off the TYPO3 template cache). Then the less files will be
compiled after modification and you can see the result of your
changes. Go into your backend user settings and use this command:

img-3

# Credits {#credits}

Sven Wappler. [TYPO3 Agentur Aachen](http://www.wapplersystems.de/)

Special thank to Jozef Spisiak from [www.pixelant.net](http://www.pixelant.net/) for optimizing the extension.
