1.0.3 • Published 3 years ago

@fcxlabs/grid v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

fcx-grid

Plataforma de espaçamentos e grids para uso em projetos de interface do FCx Labs.

Installation

yarn add @fcxlabs/grid

or

npm i @fcxlabs/grid

Usage

Example:

import { fcxSpacing, toScale } from "@fcxlabs/grid";

const styles = StyleSheet.create({
  container: {
    padding: fcxSpacing.capital,
    fontSize: toScale(12),
  },
});

Methods

toScale(value: number) => return value * scale

Properties

fcxSpacing:

  • unit
  • tiny
  • xSmall
  • small
  • regular
  • large
  • xLarge
  • xxLarge
  • capital
1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago