Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
A pure Java implementation of the compiler

This project has previously a part of the Vaadin Framework

Sass Compiler 1.0 
* Compatibility with sass-lang compiler 3.2.12

Sass Compiler 1.1
* Compatibility with sass-lang compiler 3.3.0

Import the project into Eclipse

To get the project working in Eclipse you need to install the M2E connector
for JavaCC, found at (update site):

After that you can import the project into Eclipse as a standard Maven

Building the project

  mvn package

will compile the project and run all tests

There is an extensive test suite consisting of source scss input and expected 
css output imported from the sass-lang project. Today the features required by
the tests in src/test/resources/sasslang are fully implemented while the
tests in src/test/resources/sasslangbroken are currently expected to fail.
When reaching 1.0 the sasslangbroken package should no longer exist.

Your contributions are more than welcome. Please read for more information on practicalities.
Because we are using Gerrit we cannot accept pull requests in GitHub.


Version 0.9.12
It is now possible to specify how URLs appearing in an imported scss style
sheet are interpreted. The supported modes are absolute, mixed and
relative. For example, suppose that a root style sheet styles.scss imports
common/base.scss and base.scss contains the property definition

background-image: url(image.png);

In absolute mode the url will appear as url(image.png) also in the CSS
output. In relative and mixed mode it will be output as url(common/image.png).
The difference between mixed and relative mode is that in the mixed mode
a url is only modified if it appears in a property, whereas in the relative
mode the modification also takes place e.g. in variable definitions and
default values of mixin or function parameters.

Absolute mode can be used for compatibility with the sass-lang compiler.
For compiling the themes provided with Vaadin mixed or relative mode should
be used. Mixed mode is the default and was used in previous versions of
the compiler. For instructions on specifying the url mode from the command
line, run SassCompiler with no parameters.


Copyright 2012 Vaadin Ltd.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.