1.3.3 • Published 2 years ago

@volue/design-spacing v1.3.3

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
2 years ago

design-spacing

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

Screenshot

Installation

npm install @volue/design-spacing --save

Usage

JavaScript

In JavaScript, design token names are formatted in lower camelCase.

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

In JSON, design token names are formatted in SNAKE_CASE.

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

Sass

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

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

div {
  padding: $spacing-xs;
}
1.3.3-next.1

2 years ago

1.3.3-next.2

2 years ago

1.3.3-next.3

2 years ago

1.3.3

2 years ago

1.3.3-next.0

2 years ago

1.3.2-next.0

2 years ago

1.3.1-next.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.1-next.2

2 years ago

1.3.0-next.2

2 years ago

1.3.1-next.1

2 years ago

1.3.1-next.0

2 years ago

1.3.0-next.0

2 years ago

1.3.0-next.1

2 years ago

1.3.0

2 years ago

1.2.1-next.2

3 years ago

1.2.1-next.3

3 years ago

1.2.1-next.1

3 years ago

1.2.0

3 years ago

1.2.1-next.0

3 years ago

1.2.0-next.26

3 years ago

1.2.0-next.28

3 years ago

1.2.0-next.27

3 years ago

1.2.0-next.25

3 years ago

1.2.0-next.24

3 years ago

1.2.0-next.19

3 years ago

1.2.0-next.18

3 years ago

1.2.0-next.20

3 years ago

1.2.0-next.22

3 years ago

1.2.0-next.21

3 years ago

1.2.0-next.23

3 years ago

1.2.0-next.17

3 years ago

1.2.0-next.16

3 years ago

1.2.0-next.9

4 years ago

1.2.0-next.11

4 years ago

1.2.0-next.10

4 years ago

1.2.0-next.13

4 years ago

1.2.0-next.8

4 years ago

1.2.0-next.12

4 years ago

1.2.0-next.15

3 years ago

1.2.0-next.14

3 years ago

1.2.0-next.7

4 years ago

1.2.0-next.6

4 years ago

1.2.0-next.5

4 years ago

1.2.0-next.2

4 years ago

1.2.0-next.1

4 years ago

1.2.0-next.4

4 years ago

1.2.0-next.3

4 years ago

1.2.0-next.0

4 years ago

1.1.5-next.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.1-next.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago