import { Meta, Story, Preview } from '@storybook/addon-docs/blocks'; import { hbs } from 'ember-cli-htmlbars'; import { action } from '@storybook/addon-actions'; import { text, boolean, select } from '@storybook/addon-knobs'; # Sizing Use sizing function for things like margins, padding, and borders. Sizes are returned in rem units rather than pixels, but have been calibrated with pixel equivalents in mind. To use the rems sizing function, first import the sizing module, then use it in your code wherever you normally specify a size. For example... ```scss @import "variables/sizing"; border: sizing.rems(xxxxs) solid; ```
| Name | PX Equiv. | SCSS |
|---|---|---|
xxl |
48 | sizing.rems(xxl) |
xl |
36 | sizing.rems(xl) |
l |
24 | sizing.rems(l) |
m |
16 | sizing.rems(m) |
s |
12 | sizing.rems(s) |
xs |
8 | sizing.rems(xs) |
off-xs |
5 | sizing.rems(off-xs) |
xxs |
4 | sizing.rems(xxs) |
xxxs |
2 | sizing.rems(xxxs) |
xxxxs |
1 | sizing.rems(xxxxs) |