Skip to main content
Version: 1.1.x

NPM Packages

Beyond the main package @glsass/framework, parts of the framework are available from multiple packages.

Instead of using this main package, you can install only the packages that you need.

info

Even if you just want to use only one component, the installation of all packages will not increase the final size of our CSS file, because it will always depends of what you import.

Available packages

PackageLayers
@glsass/frameworkAll layers
@glsass/settingsSettings
@glsass/toolsTools
@glsass/graphicsGraphics
@glsass/coreSettings + Tools + Graphics
@glsass/genericsGenerics
@glsass/elementsElements
@glsass/basicsGenerics + Elements
@glsass/objectsObjects
@glsass/componentsComponents
@glsass/patternsObjects + Components
@glsass/helpersHelpers
@glsass/utilitiesUtilities

Layer packages

Each layer is available through it's own package from the @glsass NPM scope.

note

All layers which generate CSS code are automatically dependent from the core layer, so if you forget to install it, the dependencies will be automatically solved.

Special packages

@glsass/framework

This is the main package, it automatically manage all dependencies for all layers.

@glsass/core

The core package is a combination of the three top layer, from which global variables are available from the rest of framework.

Since the others layer are depending on it, this package is listed inside the dependencies config.

Dart Sass

Because Glsass use the Sass Module feature, you must be sure to use the Dart Sass package (and not the node one!).

The last version of this package is listed as a peerDependencies for all packages of the framework to ensure its presence.