This package has been deprecated

Author message:

This package has moved to @dash-ui/spacing

@-ui/spacing
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@-ui/spacing

Bundlephobia Types Code coverage Build status NPM Version MIT License

npm i @-ui/spacing

Create spacing scales for design systems with dash-ui

Quick Start

import styles from '@-ui/styles'
import * as spacing from '@-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

Package Sidebar

Install

npm i @-ui/spacing

Weekly Downloads

8

Version

1.1.0

License

MIT

Unpacked Size

9.2 kB

Total Files

11

Last publish

Collaborators

  • jaredlunde