1.0.3 • Published 3 years ago
@fcxlabs/grid v1.0.3
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