File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11import type { default as Tokens } from '../dist' ;
22
3+ import { vars } from '@launchpad-ui/vars' ;
34import { Fragment } from 'react' ;
45
56import { Button } from '../../components/src/Button' ;
@@ -27,12 +28,17 @@ const spacingToSize = Object.fromEntries(
2728export const Spacing = {
2829 render : ( ) => (
2930 < >
31+ < div style = { { marginBottom : 'var(--lp-spacing-500)' , font : vars . text . body [ 1 ] . regular } } >
32+ Use < code style = { { font : vars . text . code [ 1 ] . regular } } > var(--space-*)</ code > for margin,
33+ padding, and gap. Need a negative offset? Wrap in{ ' ' }
34+ < code style = { { font : vars . text . code [ 1 ] . regular } } > calc()</ code >
35+ </ div >
3036 < div
3137 style = { {
3238 display : 'grid' ,
33- gridTemplateColumns : 'max-content max-content auto max -content' ,
39+ gridTemplateColumns : 'max-content max-content min -content auto ' ,
3440 alignItems : 'center' ,
35- gap : 'var(--lp-size-24 )' ,
41+ gap : 'var(--lp-spacing-700 )' ,
3642 } }
3743 >
3844 { Object . entries ( spacing ) . map ( ( [ key , value ] ) => (
@@ -58,7 +64,7 @@ export const Spacing = {
5864 style = { {
5965 backgroundColor : 'var(--lp-color-green-500)' ,
6066 width : value ,
61- height : 'var(--lp-size-16 )' ,
67+ height : 'var(--lp-spacing-500 )' ,
6268 } }
6369 />
6470 </ Fragment >
You can’t perform that action at this time.
0 commit comments