scales

v4.15.0arrow_drop_down
v4.15.0
STATUS
Passing
DOWNLOADS
161
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
634 B
Helper function to conform to 8 (px) major scale. Helper function to conform to 4 (px) minor scale.
1 contributor
Install scales as a package?
Copied
npm i @bit/segmentio.evergreen.scales
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
No preview available
modifieddraft
No preview available
modifieddraft
No preview available
modifieddraft
No preview available
modifieddraft
No preview available
modifieddraft
chevron_left
chevron_right

Helper function to conform to 8 (px) major scale.

Example
majorScale(2) => 2*8 = 16
majorScale(4) => 4*8 = 32

Helper function to conform to 4 (px) minor scale.

Example
minorScale(3) => 3*4 = 12
minorScale(1) => 1*4 = 4
Help and resources