🚨 Shai-Hulud Strikes Again:More than 500 packages and 700+ versions compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@volue/design-sizing

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volue/design-sizing

Sizing primitives for Volue design primitives

latest
Source
npmnpm
Version
0.3.6
Version published
Weekly downloads
405
-54.24%
Maintainers
2
Weekly downloads
 
Created
Source

@volue/design-sizing

Sizing primitives/tokens to be used across Volue's products

Installation

npm install @volue/design-sizing --save
# or
yarn add @volue/design-sizing

Usage

JavaScript

In JavaScript, design token names are formatted in lower camelCase. Tokens are exported as nested object structure.

const tokens = require('@volue/design-sizing');
console.log(tokens.spacing.xs); // 0.25rem

In JSON, design token names are formatted in SNAKE_CASE.

const tokens = require('@volue/design-sizing/dist/index.json');
console.log(tokens['SIZE_SPACING_XS']); // 0.25rem

Sass

Sass variables and map keys are formatted in kebab-case.

// Using variables
@import '~@volue/design-sizing/dist/index';

div {
  padding: $size-spacing-xs;
}

FAQs

Package last updated on 07 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts