Skip to content

Commit

Permalink
refactor: 💡 group atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Nov 20, 2023
1 parent d248538 commit d8c078b
Showing 1 changed file with 30 additions and 18 deletions.
48 changes: 30 additions & 18 deletions addon/atoms.js
Original file line number Diff line number Diff line change
@@ -1,58 +1,70 @@
'use strict';

var atoms = exports.atoms = {
// Layout
d: 'display',
bxz: 'box-sizing',
ov: 'overflow',
pos: 'position',
fl: 'float',
w: 'width',
h: 'height',
minW: 'min-width',
maxW: 'max-width',
minH: 'min-height',
maxH: 'max-height',
vis: 'visibility',
z: 'z-index',

// Margins
mar: 'margin',
mart: 'margin-top',
marr: 'margin-right',
marb: 'margin-bottom',
marl: 'margin-left',

// Paddings
pad: 'padding',
padt: 'padding-top',
padr: 'padding-right',
padb: 'padding-bottom',
padl: 'padding-left',

// Borders
bd: 'border',
bdt: 'border-top',
bdr: 'border-right',
bdb: 'border-bottom',
bdl: 'border-left',
bdrad: 'border-radius',
out: 'outline',

// Colors
col: 'color',
op: 'opacity',
bg: 'background',
bgc: 'background-color',

// Text
fz: 'font-size',
fs: 'font-style',
fw: 'font-weight',
ff: 'font-family',

lh: 'line-height',
bxz: 'box-sizing',
cur: 'cursor',
ov: 'overflow',
pos: 'position',
ls: 'list-style',
ta: 'text-align',
td: 'text-decoration',
fl: 'float',
w: 'width',
minW: 'min-width',
maxW: 'max-width',
minH: 'min-height',
maxH: 'max-height',
h: 'height',
trs: 'transition',
out: 'outline',
vis: 'visibility',
ww: 'word-wrap',
con: 'content',
z: 'z-index',

// Pointer
cur: 'cursor',

// Animations
trs: 'transition',
tr: 'transform',

// Other
ls: 'list-style',
con: 'content',
};

exports.addon = function (renderer) {
Expand Down

0 comments on commit d8c078b

Please sign in to comment.