Skip to content

A Sass compiler for Java to compile custom themes at runtime. Can be used with together bootstrap.

License

Notifications You must be signed in to change notification settings

i-net-software/sass-compiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build with Java 8 Build with Java 11 License Maven JitPack

A pure Java implementation of the http://sass-lang.com compiler with the target to compile the scss sources of the Bootstrap 5 framework framework.

You can find the project's homepage on GitHub.

Dependencies

No dependencies to other libraries are needed.

repositories {
    mavenCentral()
}

dependencies {
    implementation 'de.inetsoftware:sass-compiler:+'
}

Using

import com.inet.sass.ScssStylesheet;
import com.inet.sass.handler.SCSSErrorHandler;
import com.inet.sass.resolver.ScssStylesheetResolver;
...
ScssStylesheetResolver resolver = new FilesystemResolver( StandardCharsets.UTF_8 );
SCSSErrorHandler errorHandler = new SCSSErrorHandler() {
...
};
String scssFileName = ...;
ScssStylesheet scss = ScssStylesheet.get( scssFileName, errorHandler, resolver );
scss.compile( ScssContext.UrlMode.ABSOLUTE );
String css = scss.printState();
...

Testing Snapshot

If you want test the latest snapshot then you can checkout or use JitPack.

For example with Gradle:

repositories {
    mavenCentral()
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.i-net-software:sass-compiler:master-SNAPSHOT'
}

About

A Sass compiler for Java to compile custom themes at runtime. Can be used with together bootstrap.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SCSS 39.4%
  • CSS 36.4%
  • Java 24.2%