Lism provides utility classes for the major CSS properties, making it easy to set frequently used values and tokens.
For particularly important CSS properties, breakpoint-specific classes are also available.
These are called Prop Classes and are defined in the format -{prop}(:{value}) and -{prop}_{bp}.
This page lists all available Prop Classes.
How to read the tables on this page
The tables below summarize information for each property.
Column Description Property The CSS property Shorthand The abbreviated form. This is the {prop} string in the -{prop}:{val} class format, and also the prop name used with Lism components. To Class Values that are output as Prop Utility classes BP Whether breakpoint support classes (-{prop}_{bp}) are available
The shorthand string is output as a class name. It is also the property name used with Lism components.
Typography
Property Shorthand To Class BP fontfinherit- font-sizefzFZ○ font-familyffFF- font-weightfwFW- font-stylefsitalic- line-heightlhLH , 1- letter-spacingltsLTS- text-aligntacenterleftright- text-decorationtdnone- text-transformttupperlower-
HTML JSX
< p class = '-fz:xl -fw:bold -lts:l -ta:center -tt:upper' >Example text</ p >
< HTML.p fz = 'xl' fw = 'bold' lts = 'l' ta = 'center' tt = 'upper' >Example text</ HTML.p >
Colors
Property Shorthand To Class BP colorcbrand,accenttext,text-2,base,inherit- background-colorbgcbrand,accentbase,base-2,text,inherittransparent- background-imagebgi- - background-repeatbgrno-repeat- background-positionbgpcenter- background-sizebgszcover,contain- --bdcbdcbrand,accentdivider,inherit,transparent-
HTML JSX
< p class = '-c:brand -bgc:base-2 -bd -p:30' >Example text</ p >
< HTML.p c = 'brand' bgc = 'base-2' bd p = '30' >Example text</ HTML.p >
Related tokens: COLOR
Spacing
Padding
Property Shorthand To Class BP paddingpSPACE○ padding-inlinepxSPACE○ padding-blockpySPACE○ padding-inline-startpx-s- ○ padding-inline-endpx-e- ○ padding-block-startpy-s- ○ padding-block-endpy-e- ○ padding-leftpl- ○ padding-rightpr- ○ padding-toppt- ○ padding-bottompb- ○
Margin
Property Shorthand To Class BP marginmauto, SPACE○ margin-inlinemxauto, SPACE○ margin-blockmyauto, SPACE○ margin-inline-startmx-sauto○ margin-inline-endmx-eauto○ margin-block-startmy-sauto, SPACE○ margin-block-endmy-eauto○ margin-leftml- ○ margin-rightmr- ○ margin-topmt- ○ margin-bottommb- ○
Example text
Example text
HTML JSX
< div class = "-p:15 -p_sm -bd" style = "--p_sm:var(--s20)" >
< p class = "-my-s:15 -mx:20" >Example text</ p >
< Lism p = {[ '15' , '20' ]} bd >
< HTML.p >Example text</ HTML.p >
< HTML.p my-s = '15' mx = '20' >Example text</ HTML.p >
Width & Height
Property Shorthand To Class BP widthw100%,fit(fit-content)○ heighth100%,fit(fit-content)○ max-widthmax-w100%○ max-heightmax-h100%○ min-widthmin-w100%○ min-heightmin-h100%○ inline-sizesz- - max-inline-sizemax-szxs,s,m,l,xl,min,full,container- min-inline-sizemin-sz- - block-sizeysz- - max-block-sizemax-ysz- - min-block-sizemin-ysz- -
Related tokens: SIZE
Displays
Prop Shorthand To Class BP displaydnone,block,in-flex(inline-flex)○ visibilityvhidden- opacityoOPACITY , 0- overflowovauto, clip, hidden- overflow-xov-xauto, clip, scroll- overflow-yov-yauto, clip, scroll- aspect-ratioar21/9,16/9,3/2,1/1,og○
Positions
Prop Shorthand To Class BP positionposrel(relative),abs(absolute),static,fixed,sticky- topt0,50%,100%- leftl0,50%,100%- rightr0,50%,100%- bottomb0,50%,100%- z-indexz-1, 0, 1, 99- inseti0- inset-inlinei-x- - inset-blocki-y- - inset-inline-starti-x-s- - inset-inline-endi-x-e- - inset-block-starti-y-s- - inset-block-endi-y-e- -
Here are some examples of positioning elements with position: absolute.
JSX HTML
< Box pos = 'rel' ar = '3/2' lh = '1' ff = 'mono' >
< HTML.div pos = 'abs' l = '0' t = '0' bgc = 'base-2' bd p = '10' >A</ HTML.div >
< HTML.div pos = 'abs' l = '0' r = '0' w = 'fit' mx = 'auto' bgc = 'base-2' bd p = '10' >B</ HTML.div >
< HTML.div pos = 'abs' r = '0' t = '0' bgc = 'base-2' bd p = '10' >C</ HTML.div >
< HTML.div pos = 'abs' l = '0' t = '0' b = '0' h = 'fit' my = 'auto' bgc = 'base-2' bd p = '10' >D</ HTML.div >
< HTML.div pos = 'abs' i = '0' m = 'auto' w = 'fit' h = 'fit' bgc = 'base-2' bd p = '10' >E</ HTML.div >
< HTML.div pos = 'abs' r = '0' t = '0' b = '0' h = 'fit' my = 'auto' bgc = 'base-2' bd p = '10' >F</ HTML.div >
< HTML.div pos = 'abs' l = '0' b = '0' bgc = 'base-2' bd p = '10' >G</ HTML.div >
< HTML.div pos = 'abs' l = '0' r = '0' b = '0' w = 'fit' mx = 'auto' bgc = 'base-2' bd p = '10' >H</ HTML.div >
< HTML.div pos = 'abs' r = '0' b = '0' bgc = 'base-2' bd p = '10' >I</ HTML.div >
< div class = 'l--box -pos:rel -ar:3/2 -lh:1 -ff:mono' >
< div class = '-pos:abs -l:0 -t:0 -bgc:base-2 -bd -p:10' >A</ div >
< div class = '-pos:abs -l:0 -r:0 -w:fit -mx:auto -bgc:base-2 -bd -p:10' >B</ div >
< div class = '-pos:abs -r:0 -t:0 -bgc:base-2 -bd -p:10' >C</ div >
< div class = '-pos:abs -l:0 -t:0 -b:0 -h:fit -my:auto -bgc:base-2 -bd -p:10' >D</ div >
< div class = '-pos:abs -i:0 -m:auto -w:fit -h:fit -bgc:base-2 -bd -p:10' >E</ div >
< div class = '-pos:abs -r:0 -t:0 -b:0 -h:fit -my:auto -bgc:base-2 -bd -p:10' >F</ div >
< div class = '-pos:abs -l:0 -b:0 -bgc:base-2 -bd -p:10' >G</ div >
< div class = '-pos:abs -l:0 -r:0 -b:0 -w:fit -mx:auto -bgc:base-2 -bd -p:10' >H</ div >
< div class = '-pos:abs -r:0 -b:0 -bgc:base-2 -bd -p:10' >I</ div >
Layouts
Gap
Property Shorthand To Class BP gapgSPACE ,inherit○ column-gapg-x- ○ row-gapg-y- ○
Flex
Prop Shorthand To Class BP flex-wrapfxwwrap○ flex-directionfxdcol(column), col-r(column-reverse), row-r(row-reverse)○ flexfx1○ flex-shrinkfxsh0- flex-growfxg1- flex-basisfxb- ○
Grid
Prop Shorthand To Class BP grid-templategt- ○ grid-template-areasgta- ○ grid-template-columnsgtcsubgrid○ grid-template-rowsgtrsubgrid○ grid-auto-flowgafcol(column),row○ grid-auto-rowsgar- - grid-auto-columnsgac- - grid-areaga1/1○ grid-columngc1/-1○ grid-rowgr1/-1○ grid-column-startgcs- - grid-row-startgrs- - grid-column-endgce- - grid-row-endgre- -
Places
Prop Shorthand To Class BP align-itemsaicenter, start, end, flex-s, flex-e, stretch⚪︎ align-contentaccenter, start, end, flex-s, flex-e, between⚪︎ justify-itemsjicenter, start, end, flex-s, flex-e, stretch⚪︎ justify-contentjccenter, start, end, flex-s, flex-e, between⚪︎ align-selfaslfcenter, start, end, stretch- justify-selfjslfcenter, start, end, stretch- orderorder-1, 0, 1-
Styling
Background
Prop Shorthand To Class BP backgroundbg- ⚪︎
Shadow
Prop Shorthand To Class BP box-shadowbxshSHADOW-
Radius
Prop Shorthand To Class BP border-radiusbdrsRADIUS○
Border
Prop Shorthand To Class BP borderbdnone- --bdcbdcbrand,accentdivider,inherit,transparent- --bdsbdsdashed,dotted,double- --bdwbdw- ○ border-topbd-t- - border-rightbd-r- - border-bottombd-b- - border-leftbd-l- - border-inlinebd-x- - border-blockbd-y- - border-inline-startbd-x-s- - border-inline-endbd-x-e- - border-block-startbd-y-s- - border-block-endbd-y-e- -
The border specification has some unique behavior. See the border page for details.
Other CSS
Prop Shorthand To Class BP floatfloatleft,right- clearclearboth- isolationisolationisolate- overflow-wrapovwrapany(anywhere)- white-spacewhspacenowrap-