← Superkube / Documentation 2.1.1


This is a set of basic framework settings.

Overview #

The Basis variables set the basic style settings. Affects project fonts, size and line-height of the body text, as well as general unit values for distances and sizes.


Superkube has the following fonts by default:

$font-text: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
$font-heading: inherit;
$font-monospace: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace;


Superkube is fully based on a system concept. Therefore, all units of measurement in it correspond to the basic value of unit. By default it is 4px.

$unit: 4px;

This means that 1rem in SCSS will be 4px. For example:

.item {
    margin-bottom: 2rem; // 2 units * 4px = 8px

If possible, all units in the framework are specified in rem. It helps to do predictable design and follow a systematic approach. At the same time it is quite acceptable to specify the size in pixels or other units.


Superkube has basic font size and line height of body text settings. This means that the base font size of the paragraph and 1em will be 16px.

$body-size: 16px;
$body-line: 1.5;

Dark mode

Basis has a setting for dark mode. See the Dark mode section for more details.

$dark-class: null;

Change #

To change the default values with your own, you need to create your basis.scss and then replacing the values that are necessary.

Put basis.scss in the SCSS variables of your project. See also How to use to learn more about how to create your project and extend Superkube.

// your project

Next, import basis.scss in your custom framework settings in the vars.scss file.

// vars.scss
@import "vars/basis";

Now you can change the framework values to your own.

// basis.scss
$font-text: Lato, 'Helvetica Neue', Arial, sans-serif;
$body-line: 1.618;

As a result, the framework will be built with the text font you specify and a new line-height for the body text.