Defined Values

Mojo offers a range of pre-set values for various styling properties, accessible through base.definedValues.

These values encompass defaults for letter-spacing, line-height, font-weight, border-radius, box-shadow, animation.

Letter Spacing

KeyDescriptionDefault Value
tighterTighter letter spacing-0.05em
tightTight letter spacing-0.03em
looseLoose letter spacing0.05em
looserLooser letter spacing0.1em
openOpen letter spacing0.2em

Line Height

KeyDescriptionDefault Value
tighterTighter line height0.7
tightTight line height0.9
looseLoose line height1.2
looserLooser line height1.5
openOpen line height2
respResponsive line height1.3em

Font Weight

KeyDescriptionDefault Value
blackBlack font weight900
extraboldExtra bold weight800
boldBold font weight700
semiboldSemi-bold weight600
mediumMedium font weight500
normalNormal font weight400
lightLight font weight300
thinThin font weight200
hairHairline weight100

Border Radius

KeyDescriptionDefault Value
xsExtra small radius0.2rem
smSmall radius0.4rem
mdMedium radius0.8rem
lgLarge radius1.2rem
xlExtra large radius1.6rem
xxlDouble extra large2rem

Box Shadow

KeyDescriptionDefault Value
1Box shadow level 10 1px 2px var(--m-shadow-color, #0000001a)
2Box shadow level 20 1px 3px var(--m-shadow-color, #0000001a), 0 1px 2px var(--m-shadow-color, #0000001a)
3Box shadow level 30 4px 6px var(--m-shadow-color, #0000001a), 0 2px 4px var(--m-shadow-color, #0000001a)
4Box shadow level 40 10px 15px var(--m-shadow-color, #0000001a), 0 4px 6px var(--m-shadow-color, #0000001a)
5Box shadow level 50 20px 25px var(--m-shadow-color, #0000001a), 0 10px 10px var(--m-shadow-color, #0000001a)

Animation

KeyDescriptionDefault Value
spinSpin animation{ dur: "1.5s linear infinite", keyframes: { "100%": { idle: "transform:rotate(1turn)" } } }
flareFlare animation{ dur: "1s cubic-bezier(0, 0, 0.2, 1) infinite", keyframes: {"75%, 100%": {idle:"transform:scale(2) opacity-0"} } }
pulsePulse animation{ dur: "2s cubic-bezier(0.4, 0, 0.8, 1) infinite", keyframes: {"0%, 100%": {idle:"opacity-100"}, "50%":{idle:"opacity-30"} } }