# @dash-ui/spacing

> Create spacing scales for design systems with dash-ui

Latest version **0.2.0** (published 2020-06-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @dash-ui/spacing
pnpm add @dash-ui/spacing
yarn add @dash-ui/spacing
bun add @dash-ui/spacing
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2020-06-08 |
| First published | 2020-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 44 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jared Lunde |
| Maintainers | jaredlunde |
| Keywords | spacing scale, dash ui, dash ui spacing scale, dash ui design system |

## Links

- npm: https://www.npmjs.com/package/@dash-ui/spacing
- Repository: https://github.com/dash-ui/spacing
- Homepage: https://github.com/dash-ui/spacing#readme
- Issues: https://github.com/dash-ui/spacing/issues
- npm.io page: https://npm.io/package/@dash-ui/spacing

## Recent versions

- 0.2.0 (latest) — 2020-06-08
- 0.1.3 — 2020-05-06
- 0.1.2 — 2020-05-03
- 0.1.1 — 2020-05-03
- 0.1.0 — 2020-05-03

## README

<hr>
<div align="center">
  <br/>
  <br/>
  <img src='https://github.com/dash-ui/styles/raw/master/assets/logo.png'/>
  <br/>
  <br/>
</div>

<p align="center">
  <a href="https://bundlephobia.com/result?p=@dash-ui/spacing">
    <img alt="Bundlephobia" src="https://img.shields.io/bundlephobia/minzip/@dash-ui/spacing?style=for-the-badge&labelColor=24292e">
  </a>
  <a aria-label="Types" href="https://www.npmjs.com/package/@dash-ui/spacing">
    <img alt="Types" src="https://img.shields.io/npm/types/@dash-ui/spacing?style=for-the-badge&labelColor=24292e">
  </a>
  <a aria-label="Code coverage report" href="https://codecov.io/gh/dash-ui/spacing">
    <img alt="Code coverage" src="https://img.shields.io/codecov/c/gh/dash-ui/spacing?style=for-the-badge&labelColor=24292e">
  </a>
  <a aria-label="Build status" href="https://travis-ci.com/dash-ui/spacing">
    <img alt="Build status" src="https://img.shields.io/travis/com/dash-ui/spacing?style=for-the-badge&labelColor=24292e">
  </a>
  <a aria-label="NPM version" href="https://www.npmjs.com/package/@dash-ui/spacing">
    <img alt="NPM Version" src="https://img.shields.io/npm/v/@dash-ui/spacing?style=for-the-badge&labelColor=24292e">
  </a>
  <a aria-label="License" href="https://jaredlunde.mit-license.org/">
    <img alt="MIT License" src="https://img.shields.io/npm/l/@dash-ui/spacing?style=for-the-badge&labelColor=24292e">
  </a>
</p>

<pre align="center">npm i @dash-ui/spacing</pre>
<hr>

Create spacing scales for design systems with [**dash-ui**](https://github.com/dash-ui/styles)

## Quick Start

```typescript
import styles from '@dash-ui/styles'
import * as spacing from '@dash-ui/spacing'

const variables = {
  gap: {
    sm: '0.5rem',
    md: '1rem',
    lg: '2rem',
  },
  pad: {
    sm: '0.5rem',
    md: '1rem',
    lg: '2rem',
  },
}
// Creates CSS variables for the scales (optional)
styles.variables(variables)
// Creates the scales
export const gap = spacing.gap(style, variables.gap)
export const pad = spacing.pad(style, variables.pad)
pad('sm')
```

## API

## LICENSE

MIT

---
_Source: https://npm.io/package/@dash-ui/spacing · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
