Search

Prop Class

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.

You can change which classes are output by customizing via SCSS.

How to read the tables on this page

The tables below summarize information for each property.

ColumnDescription
PropertyThe CSS property
ShorthandThe abbreviated form. This is the {prop} string in the -{prop}:{val} class format, and also the prop name used with Lism components.
To ClassValues that are output as Prop Utility classes
BPWhether 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

PropertyShorthandTo ClassBP
fontfinherit-
font-sizefzFZ
font-familyffFF-
font-weightfwFW-
font-stylefsitalic-
line-heightlhLH,
1
-
letter-spacingltsLTS-
text-aligntacenter
left
right
-
text-decorationtdnone-
text-transformttupper
lower
-
Examples

Example text

<p class='-fz:xl -fw:bold -lts:l -ta:center -tt:upper'>Example text</p>

Colors

PropertyShorthandTo ClassBP
colorcbrand,accent
text,text-2,
base,
inherit
-
background-colorbgcbrand,accent
base,base-2,
text,
inherit
transparent
-
background-imagebgi--
background-repeatbgrno-repeat-
background-positionbgpcenter-
background-sizebgszcover,contain-
--bdcbdcbrand,accent
divider,
inherit,
transparent
-
Examples

Example text

<p class='-c:brand -bgc:base-2 -bd -p:30'>Example text</p>

Related tokens: COLOR

Spacing

Padding

PropertyShorthandTo ClassBP
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

PropertyShorthandTo ClassBP
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-
Space Examples

Example text

Example text

リサイズ可能
<div class="-p:15 -p_sm -bd" style="--p_sm:var(--s20)">
<p>Example text</p>
<p class="-my-s:15 -mx:20">Example text</p>
</div>

Width & Height

PropertyShorthandTo ClassBP
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

PropShorthandTo ClassBP
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

PropShorthandTo ClassBP
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.

Positioning examples

A
B
C
D
E
F
G
H
I
リサイズ可能
<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>
</Box>

Layouts

Gap

PropertyShorthandTo ClassBP
gapgSPACE,inherit
column-gapg-x-
row-gapg-y-

Flex

PropShorthandTo ClassBP
flex-wrapfxwwrap
flex-directionfxdcol(column),
col-r(column-reverse),
row-r(row-reverse)
flexfx1
flex-shrinkfxsh0-
flex-growfxg1-
flex-basisfxb-

Grid

PropShorthandTo ClassBP
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

PropShorthandTo ClassBP
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

PropShorthandTo ClassBP
backgroundbg-⚪︎

Shadow

PropShorthandTo ClassBP
box-shadowbxshSHADOW-

Radius

PropShorthandTo ClassBP
border-radiusbdrsRADIUS

Border

PropShorthandTo ClassBP
borderbdnone-
--bdcbdcbrand,accent
divider,
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

PropShorthandTo ClassBP
floatfloatleft,right-
clearclearboth-
isolationisolationisolate-
overflow-wrapovwrapany(anywhere)-
white-spacewhspacenowrap-

© Lism CSS. All rights reserved.