Skip to Content

atoms

The atoms addon provides shorthand property names for CSS declarations, improving DX and reducing bundle size.

const className = nano.rule({ bdt: '1px solid red', // border-top col: 'blue', // color ta: 'center', // text-align });

Atom List

AtomCSS Property
ddisplay
marmargin
martmargin-top
marrmargin-right
marbmargin-bottom
marlmargin-left
padpadding
padtpadding-top
padrpadding-right
padbpadding-bottom
padlpadding-left
bdborder
bdtborder-top
bdrborder-right
bdbborder-bottom
bdlborder-left
bdradborder-radius
colcolor
opopacity
bgbackground
bgcbackground-color
fzfont-size
fsfont-style
fwfont-weight
fffont-family
lhline-height
bxzbox-sizing
curcursor
ovoverflow
posposition
lslist-style
tatext-align
tdtext-decoration
flfloat
wwidth
hheight
trstransition
outoutline
visvisibility
wwword-wrap
concontent
zz-index

Installation

import { addon as addonAtoms } from 'nano-css/addon/atoms'; addonAtoms(nano);
Last updated on