Core

The core variables, functions and mixins for Vrembem components.

npm version

Source Code

npm install @vrembem/core

Sass

To load Vrembem’s core functions, mixins and variables, use Sass’ module system and the @use rule:

@use "@vrembem/core";

Pass in your own customizations using the with keyword. All loaded Vrembem components after will inherit these customizations.

@use "@vrembem/core" with (
  $prefix-block: "vb-",
  $padding: "0.75em 1.25em"
);

JavaScript

To make use of the core JavaScript modules, import the specific named export you need:

// Import specific named exports
import { addClass, removeClass } from '@vrembem/core';

// Usage
addClass(el, 'some-class');

You can also include all core named exports under a namespace by importing the entire module’s contents:

// Import all named exports under the 'core' namespace
import * as core from '@vrembem/core';

// Usage
core.removeClass(el, 'some-class');

Sass Variables

Sass Variable documentation coming soon!

Modules

Module documentation coming soon!