Contents
- Usage
- Color
- Text
- Shadow
- Radius
- Margin
- Padding
- Width
- Height
- Border
- Display
- Flex
- Overflow
- Position
- Ellipsis
- Accessibility
- Responsive
- Examples
Usage
Color
Color
Class | Declarations |
---|---|
c:red | color: var(--lns-color-red); |
c:blurpleLight | color: var(--lns-color-blurpleLight); |
c:blurpleMedium | color: var(--lns-color-blurpleMedium); |
c:blurple | color: var(--lns-color-blurple); |
c:blurpleDark | color: var(--lns-color-blurpleDark); |
c:blurpleStrong | color: var(--lns-color-blurpleStrong); |
c:offWhite | color: var(--lns-color-offWhite); |
c:blueLight | color: var(--lns-color-blueLight); |
c:blue | color: var(--lns-color-blue); |
c:blueDark | color: var(--lns-color-blueDark); |
c:orangeLight | color: var(--lns-color-orangeLight); |
c:orange | color: var(--lns-color-orange); |
c:orangeDark | color: var(--lns-color-orangeDark); |
c:tealLight | color: var(--lns-color-tealLight); |
c:teal | color: var(--lns-color-teal); |
c:tealDark | color: var(--lns-color-tealDark); |
c:yellowLight | color: var(--lns-color-yellowLight); |
c:yellow | color: var(--lns-color-yellow); |
c:yellowDark | color: var(--lns-color-yellowDark); |
c:grey8 | color: var(--lns-color-grey8); |
c:grey7 | color: var(--lns-color-grey7); |
c:grey6 | color: var(--lns-color-grey6); |
c:grey5 | color: var(--lns-color-grey5); |
c:grey4 | color: var(--lns-color-grey4); |
c:grey3 | color: var(--lns-color-grey3); |
c:grey2 | color: var(--lns-color-grey2); |
c:grey1 | color: var(--lns-color-grey1); |
c:white | color: var(--lns-color-white); |
c:primary | color: var(--lns-color-primary); |
c:primaryHover | color: var(--lns-color-primaryHover); |
c:primaryActive | color: var(--lns-color-primaryActive); |
c:body | color: var(--lns-color-body); |
c:bodyDimmed | color: var(--lns-color-bodyDimmed); |
c:background | color: var(--lns-color-background); |
c:backgroundHover | color: var(--lns-color-backgroundHover); |
c:backgroundActive | color: var(--lns-color-backgroundActive); |
c:backgroundSecondary | color: var(--lns-color-backgroundSecondary); |
c:backgroundSecondary2 | color: var(--lns-color-backgroundSecondary2); |
c:overlay | color: var(--lns-color-overlay); |
c:border | color: var(--lns-color-border); |
c:focusRing | color: var(--lns-color-focusRing); |
c:record | color: var(--lns-color-record); |
c:recordHover | color: var(--lns-color-recordHover); |
c:recordActive | color: var(--lns-color-recordActive); |
c:info | color: var(--lns-color-info); |
c:success | color: var(--lns-color-success); |
c:warning | color: var(--lns-color-warning); |
c:danger | color: var(--lns-color-danger); |
c:dangerHover | color: var(--lns-color-dangerHover); |
c:dangerActive | color: var(--lns-color-dangerActive); |
c:backdrop | color: var(--lns-color-backdrop); |
c:backdropDark | color: var(--lns-color-backdropDark); |
c:backdropTwilight | color: var(--lns-color-backdropTwilight); |
c:disabledContent | color: var(--lns-color-disabledContent); |
c:highlight | color: var(--lns-color-highlight); |
c:disabledBackground | color: var(--lns-color-disabledBackground); |
c:formFieldBorder | color: var(--lns-color-formFieldBorder); |
c:formFieldBackground | color: var(--lns-color-formFieldBackground); |
c:buttonBorder | color: var(--lns-color-buttonBorder); |
c:upgrade | color: var(--lns-color-upgrade); |
c:upgradeHover | color: var(--lns-color-upgradeHover); |
c:upgradeActive | color: var(--lns-color-upgradeActive); |
c:tabBackground | color: var(--lns-color-tabBackground); |
c:discoveryBackground | color: var(--lns-color-discoveryBackground); |
c:discoveryLightBackground | color: var(--lns-color-discoveryLightBackground); |
c:discoveryTitle | color: var(--lns-color-discoveryTitle); |
c:discoveryHighlight | color: var(--lns-color-discoveryHighlight); |
Background color
Class | Declarations |
---|---|
bgc:red | background-color: var(--lns-color-red); |
bgc:blurpleLight | background-color: var(--lns-color-blurpleLight); |
bgc:blurpleMedium | background-color: var(--lns-color-blurpleMedium); |
bgc:blurple | background-color: var(--lns-color-blurple); |
bgc:blurpleDark | background-color: var(--lns-color-blurpleDark); |
bgc:blurpleStrong | background-color: var(--lns-color-blurpleStrong); |
bgc:offWhite | background-color: var(--lns-color-offWhite); |
bgc:blueLight | background-color: var(--lns-color-blueLight); |
bgc:blue | background-color: var(--lns-color-blue); |
bgc:blueDark | background-color: var(--lns-color-blueDark); |
bgc:orangeLight | background-color: var(--lns-color-orangeLight); |
bgc:orange | background-color: var(--lns-color-orange); |
bgc:orangeDark | background-color: var(--lns-color-orangeDark); |
bgc:tealLight | background-color: var(--lns-color-tealLight); |
bgc:teal | background-color: var(--lns-color-teal); |
bgc:tealDark | background-color: var(--lns-color-tealDark); |
bgc:yellowLight | background-color: var(--lns-color-yellowLight); |
bgc:yellow | background-color: var(--lns-color-yellow); |
bgc:yellowDark | background-color: var(--lns-color-yellowDark); |
bgc:grey8 | background-color: var(--lns-color-grey8); |
bgc:grey7 | background-color: var(--lns-color-grey7); |
bgc:grey6 | background-color: var(--lns-color-grey6); |
bgc:grey5 | background-color: var(--lns-color-grey5); |
bgc:grey4 | background-color: var(--lns-color-grey4); |
bgc:grey3 | background-color: var(--lns-color-grey3); |
bgc:grey2 | background-color: var(--lns-color-grey2); |
bgc:grey1 | background-color: var(--lns-color-grey1); |
bgc:white | background-color: var(--lns-color-white); |
bgc:primary | background-color: var(--lns-color-primary); |
bgc:primaryHover | background-color: var(--lns-color-primaryHover); |
bgc:primaryActive | background-color: var(--lns-color-primaryActive); |
bgc:body | background-color: var(--lns-color-body); |
bgc:bodyDimmed | background-color: var(--lns-color-bodyDimmed); |
bgc:background | background-color: var(--lns-color-background); |
bgc:backgroundHover | background-color: var(--lns-color-backgroundHover); |
bgc:backgroundActive | background-color: var(--lns-color-backgroundActive); |
bgc:backgroundSecondary | background-color: var(--lns-color-backgroundSecondary); |
bgc:backgroundSecondary2 | background-color: var(--lns-color-backgroundSecondary2); |
bgc:overlay | background-color: var(--lns-color-overlay); |
bgc:border | background-color: var(--lns-color-border); |
bgc:focusRing | background-color: var(--lns-color-focusRing); |
bgc:record | background-color: var(--lns-color-record); |
bgc:recordHover | background-color: var(--lns-color-recordHover); |
bgc:recordActive | background-color: var(--lns-color-recordActive); |
bgc:info | background-color: var(--lns-color-info); |
bgc:success | background-color: var(--lns-color-success); |
bgc:warning | background-color: var(--lns-color-warning); |
bgc:danger | background-color: var(--lns-color-danger); |
bgc:dangerHover | background-color: var(--lns-color-dangerHover); |
bgc:dangerActive | background-color: var(--lns-color-dangerActive); |
bgc:backdrop | background-color: var(--lns-color-backdrop); |
bgc:backdropDark | background-color: var(--lns-color-backdropDark); |
bgc:backdropTwilight | background-color: var(--lns-color-backdropTwilight); |
bgc:disabledContent | background-color: var(--lns-color-disabledContent); |
bgc:highlight | background-color: var(--lns-color-highlight); |
bgc:disabledBackground | background-color: var(--lns-color-disabledBackground); |
bgc:formFieldBorder | background-color: var(--lns-color-formFieldBorder); |
bgc:formFieldBackground | background-color: var(--lns-color-formFieldBackground); |
bgc:buttonBorder | background-color: var(--lns-color-buttonBorder); |
bgc:upgrade | background-color: var(--lns-color-upgrade); |
bgc:upgradeHover | background-color: var(--lns-color-upgradeHover); |
bgc:upgradeActive | background-color: var(--lns-color-upgradeActive); |
bgc:tabBackground | background-color: var(--lns-color-tabBackground); |
bgc:discoveryBackground | background-color: var(--lns-color-discoveryBackground); |
bgc:discoveryLightBackground | background-color: var(--lns-color-discoveryLightBackground); |
bgc:discoveryTitle | background-color: var(--lns-color-discoveryTitle); |
bgc:discoveryHighlight | background-color: var(--lns-color-discoveryHighlight); |
Text
Size
Class | Declarations |
---|---|
text:small | font-size: var(--lns-fontSize-small); line-height: var(--lns-lineHeight-small); |
text:body-sm | font-size: var(--lns-fontSize-body-sm); line-height: var(--lns-lineHeight-body-sm); |
text:medium | font-size: var(--lns-fontSize-medium); line-height: var(--lns-lineHeight-medium); |
text:body-md | font-size: var(--lns-fontSize-body-md); line-height: var(--lns-lineHeight-body-md); |
text:large | font-size: var(--lns-fontSize-large); line-height: var(--lns-lineHeight-large); |
text:body-lg | font-size: var(--lns-fontSize-body-lg); line-height: var(--lns-lineHeight-body-lg); |
text:xlarge | font-size: var(--lns-fontSize-xlarge); line-height: var(--lns-lineHeight-xlarge); |
text:heading-sm | font-size: var(--lns-fontSize-heading-sm); line-height: var(--lns-lineHeight-heading-sm); |
text:xxlarge | font-size: var(--lns-fontSize-xxlarge); line-height: var(--lns-lineHeight-xxlarge); |
text:heading-md | font-size: var(--lns-fontSize-heading-md); line-height: var(--lns-lineHeight-heading-md); |
text:xxxlarge | font-size: var(--lns-fontSize-xxxlarge); line-height: var(--lns-lineHeight-xxxlarge); |
text:heading-lg | font-size: var(--lns-fontSize-heading-lg); line-height: var(--lns-lineHeight-heading-lg); |
Weight
Class | Declarations |
---|---|
weight:book | font-weight: var(--lns-fontWeight-book); |
weight:bold | font-weight: var(--lns-fontWeight-bold); |
Variant
Class | Declarations |
---|---|
text:body | font-size: var(--lns-fontSize-body-md); line-height: var(--lns-lineHeight-body-md); font-weight: var(--lns-fontWeight-book); |
text:title | font-size: var(--lns-fontSize-body-lg); line-height: var(--lns-lineHeight-body-lg); font-weight: var(--lns-fontWeight-bold); |
text:mainTitle | font-size: var(--lns-fontSize-heading-md); line-height: var(--lns-lineHeight-heading-md); font-weight: var(--lns-fontWeight-bold); |
Alignment
Class | Declarations |
---|---|
text:left | text-align: left; |
text:right | text-align: right; |
text:center | text-align: center; |
Shadow
Class | Declarations |
---|---|
shadow:small | box-shadow: var(--lns-shadow-small); |
shadow:medium | box-shadow: var(--lns-shadow-medium); |
shadow:large | box-shadow: var(--lns-shadow-large); |
Radius
Class | Declarations |
---|---|
radius:medium | border-radius: var(--lns-radius-medium); |
radius:large | border-radius: var(--lns-radius-large); |
radius:xlarge | border-radius: var(--lns-radius-xlarge); |
radius:full | border-radius: var(--lns-radius-full); |
Margin
Class | Declarations |
---|---|
m:0 | margin: 0; |
m:auto | margin: auto; |
m:xsmall | margin: var(--lns-space-xsmall); |
m:small | margin: var(--lns-space-small); |
m:medium | margin: var(--lns-space-medium); |
m:large | margin: var(--lns-space-large); |
m:xlarge | margin: var(--lns-space-xlarge); |
m:xxlarge | margin: var(--lns-space-xxlarge); |
mt:0 | margin-top: 0; |
mt:auto | margin-top: auto; |
mt:xsmall | margin-top: var(--lns-space-xsmall); |
mt:small | margin-top: var(--lns-space-small); |
mt:medium | margin-top: var(--lns-space-medium); |
mt:large | margin-top: var(--lns-space-large); |
mt:xlarge | margin-top: var(--lns-space-xlarge); |
mt:xxlarge | margin-top: var(--lns-space-xxlarge); |
mb:0 | margin-bottom: 0; |
mb:auto | margin-bottom: auto; |
mb:xsmall | margin-bottom: var(--lns-space-xsmall); |
mb:small | margin-bottom: var(--lns-space-small); |
mb:medium | margin-bottom: var(--lns-space-medium); |
mb:large | margin-bottom: var(--lns-space-large); |
mb:xlarge | margin-bottom: var(--lns-space-xlarge); |
mb:xxlarge | margin-bottom: var(--lns-space-xxlarge); |
ml:0 | margin-left: 0; |
ml:auto | margin-left: auto; |
ml:xsmall | margin-left: var(--lns-space-xsmall); |
ml:small | margin-left: var(--lns-space-small); |
ml:medium | margin-left: var(--lns-space-medium); |
ml:large | margin-left: var(--lns-space-large); |
ml:xlarge | margin-left: var(--lns-space-xlarge); |
ml:xxlarge | margin-left: var(--lns-space-xxlarge); |
mr:0 | margin-right: 0; |
mr:auto | margin-right: auto; |
mr:xsmall | margin-right: var(--lns-space-xsmall); |
mr:small | margin-right: var(--lns-space-small); |
mr:medium | margin-right: var(--lns-space-medium); |
mr:large | margin-right: var(--lns-space-large); |
mr:xlarge | margin-right: var(--lns-space-xlarge); |
mr:xxlarge | margin-right: var(--lns-space-xxlarge); |
Horizontal and vertical
Class | Declarations |
---|---|
mx:0 | margin-left: 0; margin-right: 0; |
mx:auto | margin-left: auto; margin-right: auto; |
mx:xsmall | margin-left: var(--lns-space-xsmall); margin-right: var(--lns-space-xsmall); |
mx:small | margin-left: var(--lns-space-small); margin-right: var(--lns-space-small); |
mx:medium | margin-left: var(--lns-space-medium); margin-right: var(--lns-space-medium); |
mx:large | margin-left: var(--lns-space-large); margin-right: var(--lns-space-large); |
mx:xlarge | margin-left: var(--lns-space-xlarge); margin-right: var(--lns-space-xlarge); |
mx:xxlarge | margin-left: var(--lns-space-xxlarge); margin-right: var(--lns-space-xxlarge); |
my:0 | margin-top: 0; margin-bottom: 0; |
my:auto | margin-top: auto; margin-bottom: auto; |
my:xsmall | margin-top: var(--lns-space-xsmall); margin-bottom: var(--lns-space-xsmall); |
my:small | margin-top: var(--lns-space-small); margin-bottom: var(--lns-space-small); |
my:medium | margin-top: var(--lns-space-medium); margin-bottom: var(--lns-space-medium); |
my:large | margin-top: var(--lns-space-large); margin-bottom: var(--lns-space-large); |
my:xlarge | margin-top: var(--lns-space-xlarge); margin-bottom: var(--lns-space-xlarge); |
my:xxlarge | margin-top: var(--lns-space-xxlarge); margin-bottom: var(--lns-space-xxlarge); |
Padding
Class | Declarations |
---|---|
p:0 | padding: 0; |
p:xsmall | padding: var(--lns-space-xsmall); |
p:small | padding: var(--lns-space-small); |
p:medium | padding: var(--lns-space-medium); |
p:large | padding: var(--lns-space-large); |
p:xlarge | padding: var(--lns-space-xlarge); |
p:xxlarge | padding: var(--lns-space-xxlarge); |
pt:0 | padding-top: 0; |
pt:xsmall | padding-top: var(--lns-space-xsmall); |
pt:small | padding-top: var(--lns-space-small); |
pt:medium | padding-top: var(--lns-space-medium); |
pt:large | padding-top: var(--lns-space-large); |
pt:xlarge | padding-top: var(--lns-space-xlarge); |
pt:xxlarge | padding-top: var(--lns-space-xxlarge); |
pb:0 | padding-bottom: 0; |
pb:xsmall | padding-bottom: var(--lns-space-xsmall); |
pb:small | padding-bottom: var(--lns-space-small); |
pb:medium | padding-bottom: var(--lns-space-medium); |
pb:large | padding-bottom: var(--lns-space-large); |
pb:xlarge | padding-bottom: var(--lns-space-xlarge); |
pb:xxlarge | padding-bottom: var(--lns-space-xxlarge); |
pl:0 | padding-left: 0; |
pl:xsmall | padding-left: var(--lns-space-xsmall); |
pl:small | padding-left: var(--lns-space-small); |
pl:medium | padding-left: var(--lns-space-medium); |
pl:large | padding-left: var(--lns-space-large); |
pl:xlarge | padding-left: var(--lns-space-xlarge); |
pl:xxlarge | padding-left: var(--lns-space-xxlarge); |
pr:0 | padding-right: 0; |
pr:xsmall | padding-right: var(--lns-space-xsmall); |
pr:small | padding-right: var(--lns-space-small); |
pr:medium | padding-right: var(--lns-space-medium); |
pr:large | padding-right: var(--lns-space-large); |
pr:xlarge | padding-right: var(--lns-space-xlarge); |
pr:xxlarge | padding-right: var(--lns-space-xxlarge); |
Horizontal and vertical
Class | Declarations |
---|---|
px:0 | padding-left: 0; padding-right: 0; |
px:xsmall | padding-left: var(--lns-space-xsmall); padding-right: var(--lns-space-xsmall); |
px:small | padding-left: var(--lns-space-small); padding-right: var(--lns-space-small); |
px:medium | padding-left: var(--lns-space-medium); padding-right: var(--lns-space-medium); |
px:large | padding-left: var(--lns-space-large); padding-right: var(--lns-space-large); |
px:xlarge | padding-left: var(--lns-space-xlarge); padding-right: var(--lns-space-xlarge); |
px:xxlarge | padding-left: var(--lns-space-xxlarge); padding-right: var(--lns-space-xxlarge); |
py:0 | padding-top: 0; padding-bottom: 0; |
py:xsmall | padding-top: var(--lns-space-xsmall); padding-bottom: var(--lns-space-xsmall); |
py:small | padding-top: var(--lns-space-small); padding-bottom: var(--lns-space-small); |
py:medium | padding-top: var(--lns-space-medium); padding-bottom: var(--lns-space-medium); |
py:large | padding-top: var(--lns-space-large); padding-bottom: var(--lns-space-large); |
py:xlarge | padding-top: var(--lns-space-xlarge); padding-bottom: var(--lns-space-xlarge); |
py:xxlarge | padding-top: var(--lns-space-xxlarge); padding-bottom: var(--lns-space-xxlarge); |
Width
Class | Declarations |
---|---|
width:auto | width: auto; |
width:full | width: 100%; |
width:0 | width: 0; |
Min width
Class | Declarations |
---|---|
minWidth:0 | min-width: 0; |
Height
Class | Declarations |
---|---|
height:auto | height: auto; |
height:full | height: 100%; |
height:0 | height: 0; |
Border
Class | Declarations |
---|---|
border | border: 1px solid var(--lns-color-border); |
borderTop | border-top: 1px solid var(--lns-color-border); |
borderBottom | border-bottom: 1px solid var(--lns-color-border); |
borderLeft | border-left: 1px solid var(--lns-color-border); |
borderRight | border-right: 1px solid var(--lns-color-border); |
Display
Class | Declarations |
---|---|
inline | display: inline; |
block | display: block; |
flex | display: flex; |
inlineBlock | display: inline-block; |
inlineFlex | display: inline-flex; |
none | display: none; |
Flex
Wrap
Class | Declarations |
---|---|
flexWrap | flex-wrap: wrap; |
Flex direction
Class | Declarations |
---|---|
flexDirection:column | flex-direction: column; |
flexDirection:row | flex-direction: row; |
Flex item
Class | Declarations |
---|---|
items:stretch | align-items: stretch; |
items:center | align-items: center; |
items:baseline | align-items: baseline; |
items:flexStart | align-items: flex-start; |
items:flexEnd | align-items: flex-end; |
items:selfStart | align-items: self-start; |
items:selfEnd | align-items: self-end; |
Justify content
Class | Declarations |
---|---|
justify:flexStart | justify-content: flex-start; |
justify:flexEnd | justify-content: flex-end; |
justify:center | justify-content: center; |
justify:spaceBetween | justify-content: space-between; |
justify:spaceAround | justify-content: space-around; |
justify:spaceEvenly | justify-content: space-evenly; |
Grow
Class | Declarations |
---|---|
grow:0 | flex-grow: 0; |
grow:1 | flex-grow: 1; |
Shrink
Class | Declarations |
---|---|
shrink:0 | flex-shrink: 0; |
shrink:1 | flex-shrink: 1; |
Align self
Class | Declarations |
---|---|
self:auto | align-self: auto; |
self:flexStart | align-self: flex-start; |
self:flexEnd | align-self: flex-end; |
self:center | align-self: center; |
self:baseline | align-self: baseline; |
self:stretch | align-self: stretch; |
Overflow
Class | Declarations |
---|---|
overflow:hidden | overflow: hidden; |
overflow:auto | overflow: auto; |
Position
Class | Declarations |
---|---|
relative | position: relative; |
absolute | position: absolute; |
sticky | position: sticky; |
fixed | position: fixed; |
Sides
Class | Declarations |
---|---|
top:0 | top: 0; |
top:auto | top: auto; |
top:xsmall | top: var(--lns-space-xsmall); |
top:small | top: var(--lns-space-small); |
top:medium | top: var(--lns-space-medium); |
top:large | top: var(--lns-space-large); |
top:xlarge | top: var(--lns-space-xlarge); |
top:xxlarge | top: var(--lns-space-xxlarge); |
bottom:0 | bottom: 0; |
bottom:auto | bottom: auto; |
bottom:xsmall | bottom: var(--lns-space-xsmall); |
bottom:small | bottom: var(--lns-space-small); |
bottom:medium | bottom: var(--lns-space-medium); |
bottom:large | bottom: var(--lns-space-large); |
bottom:xlarge | bottom: var(--lns-space-xlarge); |
bottom:xxlarge | bottom: var(--lns-space-xxlarge); |
left:0 | left: 0; |
left:auto | left: auto; |
left:xsmall | left: var(--lns-space-xsmall); |
left:small | left: var(--lns-space-small); |
left:medium | left: var(--lns-space-medium); |
left:large | left: var(--lns-space-large); |
left:xlarge | left: var(--lns-space-xlarge); |
left:xxlarge | left: var(--lns-space-xxlarge); |
right:0 | right: 0; |
right:auto | right: auto; |
right:xsmall | right: var(--lns-space-xsmall); |
right:small | right: var(--lns-space-small); |
right:medium | right: var(--lns-space-medium); |
right:large | right: var(--lns-space-large); |
right:xlarge | right: var(--lns-space-xlarge); |
right:xxlarge | right: var(--lns-space-xxlarge); |
Ellipsis
Class | Declarations |
---|---|
ellipsis | overflow: hidden; text-overflow: ellipsis; white-space: nowrap; |
Accessibility
Class | Declarations |
---|---|
srOnly | position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; |
Responsive
Syntax
Use any of the CSS utility classes with a breakpoint prefix.
// structure
PREFIX-CLASS
// examples
md-c:red
lg-c:primary
sm-mr:medium
md-mr:large
xs-block
sm-flex
Prefix | Min width |
---|---|
xs- | @media(min-width: 31em) |
sm- | @media(min-width: 48em) |
md- | @media(min-width: 64em) |
lg- | @media(min-width: 75em) |
Usage
<div className="mr:medium md-mr:large lg-mr:xlarge">demo</div>