Jynx logoJynx

API

Reference tables for all Jynx's exported functions

Functions

Animation

import { animation } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
animationanimationStyleProp<CSS.Property.Animation>
animationDelayanimation-delayStyleProp<CSS.Property.AnimationDelay<string | 0 | number>>
animationDirectionanimation-directionStyleProp<CSS.Property.AnimationDirection>
animationDurationanimation-durationStyleProp<CSS.Property.AnimationDuration<string | 0 | number>>
animationFillModeanimation-fill-modeStyleProp<CSS.Property.AnimationFillMode>
animationIterationCountanimation-iteration-countStyleProp<CSS.Property.AnimationIterationCount>
animationNameanimation-nameStyleProp<CSS.Property.AnimationName>
animationPlayStateanimation-play-stateStyleProp<CSS.Property.AnimationPlayState>
animationTimingFunctionanimation-timing-functionStyleProp<CSS.Property.AnimationTimingFunction>

Border

import { border } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
borderborderbordersStyleProp<CSS.Property.Border | ThemeValue<'borders'>>
borderWidthborder-widthborderWidthsStyleProp<CSS.Property.BorderWidth<string | 0 | number> | ThemeValue<'borderWidths'>>
borderStyleborder-styleborderStylesStyleProp<CSS.Property.BorderStyle | ThemeValue<'borderStyles'>>
borderColorborder-colorcolorsStyleProp<CSS.Property.BorderColor | ThemeValue<'colors'>>
borderRadiusborder-radiusradiiStyleProp<CSS.Property.BorderRadius<string | 0 | number> | ThemeValue<'radii'>>
borderTopborder-topbordersStyleProp<CSS.Property.BorderTop | ThemeValue<'borders'>>
borderTopWidthborder-top-widthborderWidthsStyleProp<CSS.Property.BorderTopWidth<string | 0 | number> | ThemeValue<'borderWidths'>>
borderTopStyleborder-top-styleborderStylesStyleProp<CSS.Property.BorderTopStyle | ThemeValue<'borderStyles'>>
borderTopColorborder-top-colorcolorsStyleProp<CSS.Property.BorderTopColor | ThemeValue<'colors'>>
borderTopLeftRadiusborder-top-left-radiusradiiStyleProp<CSS.Property.BorderTopLeftRadius<string | 0 | number> | ThemeValue<'radii'>>
borderTopRightRadiusborder-top-right-radiusradiiStyleProp<CSS.Property.BorderTopRightRadius<string | 0 | number> | ThemeValue<'radii'>>
borderRightborder-rightbordersStyleProp<CSS.Property.BorderRight | ThemeValue<'borders'>>
borderRightWidthborder-right-widthborderWidthsStyleProp<CSS.Property.BorderTopWidth<string | 0 | number> | ThemeValue<'borderWidths'>>
borderRightStyleborder-right-styleborderStylesStyleProp<CSS.Property.BorderRightStyle | ThemeValue<'borderStyles'>>
borderRightColorborder-right-colorcolorsStyleProp<CSS.Property.BorderRightColor | ThemeValue<'colors'>>
borderBottomborder-bottombordersStyleProp<CSS.Property.BorderBottom | ThemeValue<'borders'>>
borderBottomWidthborder-bottom-widthborderWidthsStyleProp<CSS.Property.BorderBottomWidth<string | 0 | number> | ThemeValue<'borderWidths'>>
borderBottomStyleborder-bottom-styleborderStylesStyleProp<CSS.Property.BorderBottomStyle | ThemeValue<'borderStyles'>>
borderBottomColorborder-bottom-colorcolorsStyleProp<CSS.Property.BorderBottomColor | ThemeValue<'colors'>>
borderBottomLeftRadiusborder-bottom-left-radiusradiiStyleProp<CSS.Property.BorderBottomLeftRadius<string | 0 | number> | ThemeValue<'radii'>>
borderBottomRightRadiusborder-bottom-right-radiusradiiStyleProp<CSS.Property.BorderBottomRightRadius<string | 0 | number> | ThemeValue<'radii'>>
borderLeftborder-leftbordersStyleProp<CSS.Property.BorderLeft | ThemeValue<'borders'>>
borderLeftWidthborder-left-widthborderWidthsStyleProp<CSS.Property.BorderLeftWidth<string | 0 | number> | ThemeValue<'borderWidths'>>
borderLeftStyleborder-left-styleborderStylesStyleProp<CSS.Property.BorderLeftStyle | ThemeValue<'borderStyles'>>
borderLeftColorborder-left-colorcolorsStyleProp<CSS.Property.BorderLeftColor | ThemeValue<'colors'>>

Background

import { background } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
backgroundbgbackgroundStyleProp<CSS.Property.Background>
backgroundAttachmentbgAttachmentbackground-attachmentStyleProp<CSS.Property.BackgroundAttachment>
backgroundBlendModebgBlendModebackground-blend-modeStyleProp<CSS.Property.BackgroundBlendMode>
backgroundClipbgClipbackground-clipStyleProp<CSS.Property.BackgroundClip>
backgroundImagebgImagebackground-imageStyleProp<CSS.Property.BackgroundImage>
backgroundOriginbgOriginbackground-originStyleProp<CSS.Property.BackgroundOrigin>
backgroundPositionbgPosbackground-positionStyleProp<CSS.Property.BackgroundPosition>
backgroundPositionXbgPosXbackground-positionXStyleProp<CSS.Property.BackgroundPositionX>
backgroundPositionYbgPosYbackground-positionYStyleProp<CSS.Property.BackgroundPositionY>
backgroundRepeatbgRepeatbackground-repeatStyleProp<CSS.Property.BackgroundRepeat>
backgroundSizebgSizebackground-sizeStyleProp<CSS.Property.BackgroundSize>

Color

import { color } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
colorcolorcolorsStyleProp<CSS.Property.Color | ThemeValue<'colors'>>
backgroundColorbgColorbackground-colorcolorsStyleProp<CSS.Property.BackgroundColor | ThemeValue<'colors'>>
opacityopacityStyleProp<CSS.Property.Opacity>

Flexbox

import { flexbox } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
flexflexStyleProp<CSS.Property.Flex>
flexDirectionflex-directionStyleProp<CSS.Property.FlexDirection>
flexFlowflex-flowStyleProp<CSS.Property.FlexFlow>
flexWrapflex-wrapStyleProp<CSS.Property.FlexWrap>
alignItemsalign-itemsStyleProp<CSS.Property.AlignItems>
alignContentalign-contentStyleProp<CSS.Property.AlignContent>
alignSelfalign-selfStyleProp<CSS.Property.AlignSelf>
justifyContentjustify-contentStyleProp<CSS.Property.JustifyContent>
gapgapspaceStyleProp<CSS.Property.Gap<string | 0 | number> | ThemeValue<'space'>>
flexGrowflex-growStyleProp<CSS.Property.FlexGrow>
flexShrinkflex-shrinkStyleProp<CSS.Property.FlexShrink>
flexBasisflex-basisStyleProp<CSS.Property.FlexBasis>
orderorderStyleProp<CSS.Property.Order>

Extended Flexbox

import { extendedFlexbox } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
directionflex-directionStyleProp<CSS.Property.FlexDirection>
flowflex-flowStyleProp<CSS.Property.FlexFlow>
wrapflex-wrapStyleProp<CSS.Property.FlexWrap>
alignalign-itemsStyleProp<CSS.Property.AlignItems>
justifyjustify-contentStyleProp<CSS.Property.JustifyContent>
growflex-growStyleProp<CSS.Property.FlexGrow>
shrinkflex-shrinkStyleProp<CSS.Property.FlexShrink>
basisflex-basisStyleProp<CSS.Property.FlexBasis>

The props for extendedFlexbox are in addition to those available in flexbox

Grid

import { grid } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
gridgridStyleProp<CSS.Property.Grid>
gridTemplategrid-templateStyleProp<CSS.Property.GridTemplate>
gridTemplateColumnsgrid-template-columnsStyleProp<CSS.Property.GridTemplateColumns>
gridTemplateRowsgrid-template-rowsStyleProp<CSS.Property.GridTemplateRows>
gridTemplateAreasgrid-template-areasStyleProp<CSS.Property.GridTemplateAreas>
columnGapcolumn-gapspaceStyleProp<CSS.Property.ColumnGap<string | 0 | number> | ThemeValue<'space'>>
rowGaprow-gapspaceStyleProp<CSS.Property.RowGap<string | 0 | number> | ThemeValue<'space'>>
gapgapspaceStyleProp<CSS.Property.Gap<string | 0 | number> | ThemeValue<'space'>>
gridJustifyItemsgrid-justify-itemsStyleProp<CSS.Property.JustifyItems>
gridAlignItemsgrid-align-itemsStyleProp<CSS.Property.AlignItems>
gridPlaceItemsgrid-place-itemsStyleProp<CSS.Property.PlaceItems>
gridJustifyContentgrid-justify-contentStyleProp<CSS.Property.JustifyContent>
gridAlignContentgrid-align-contentStyleProp<CSS.Property.AlignContent>
gridPlaceContentgrid-place-contentStyleProp<CSS.Property.PlaceContent>
gridAutoColumnsgrid-auto-columnsStyleProp<CSS.Property.GridAutoColumns>
gridAutoRowsgrid-auto-rowsStyleProp<CSS.Property.GridAutoRows>
gridAutoFlowgrid-auto-flowStyleProp<CSS.Property.GridAutoFlow>
gridColumngrid-columnStyleProp<CSS.Property.GridColumn>
gridRowgrid-rowStyleProp<CSS.Property.GridRow>
gridAreagrid-areaStyleProp<CSS.Property.GridArea>
gridRowStartgrid-row-startStyleProp<CSS.Property.GridRowStart>
gridRowEndgrid-row-endStyleProp<CSS.Property.GridRowEnd>
gridColumnStartgrid-column-startStyleProp<CSS.Property.GridColumnStart>
gridColumnEndgrid-column-endStyleProp<CSS.Property.GridColumnEnd>
alignSelfalign-selfStyleProp<CSS.Property.AlignSelf>
justifySelfjustify-selfStyleProp<CSS.Property.JustifySelf>
placeSelfplace-selfStyleProp<CSS.Property.PlaceSelf>

Extended Grid

import { extendedGrid } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
templategrid-templateStyleProp<CSS.Property.GridTemplate>
templateColumnsgrid-template-columnsStyleProp<CSS.Property.GridTemplateColumns>
templateRowsgrid-template-rowsStyleProp<CSS.Property.GridTemplateRows>
templateAreasgrid-template-areasStyleProp<CSS.Property.GridTemplateAreas>
justifyItemsjustify-itemsStyleProp<CSS.Property.JustifyItems>
alignItemsalign-itemsStyleProp<CSS.Property.AlignItems>
placeItemsplace-itemsStyleProp<CSS.Property.PlaceItems>
justifyContentjustify-contentStyleProp<CSS.Property.JustifyContent>
alignContentalign-contentStyleProp<CSS.Property.AlignContent>
placeContentplace-contentStyleProp<CSS.Property.PlaceContent>
autoColumnsgrid-auto-columnsStyleProp<CSS.Property.GridAutoColumns>
autoRowsgrid-auto-rowsStyleProp<CSS.Property.GridAutoRows>
autoFlowgrid-auto-flowStyleProp<CSS.Property.GridAutoFlow>
columngrid-columnStyleProp<CSS.Property.GridColumn>
rowgrid-rowStyleProp<CSS.Property.GridRow>
areagrid-areaStyleProp<CSS.Property.GridArea>
rowStartgrid-row-startStyleProp<CSS.Property.GridRowStart>
rowEndgrid-row-endStyleProp<CSS.Property.GridRowEnd>
columnStartgrid-column-startStyleProp<CSS.Property.ColumnStart>
columnEndgrid-column-endStyleProp<CSS.Property.ColumnEnd>

The props for extendedGrid are in addition to those available in grid

Layout

import { layout } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
widthwwidthspaceStyleProp<CSS.Property.Width<string | 0 | number>> | ThemeValue<'space'>>
heighthheightspaceStyleProp<CSS.Property.Height<string | 0 | number>> | ThemeValue<'space'>>
minWidthminWmin-widthspaceStyleProp<CSS.Property.MinWidth<string | 0 | number>> | ThemeValue<'space'>>
minHeightminHmin-heightspaceStyleProp<CSS.Property.MinHeight<string | 0 | number>> | ThemeValue<'space'>>
maxWidthmaxWmax-widthspaceStyleProp<CSS.Property.MaxWidth<string | 0 | number>> | ThemeValue<'space'>>
maxHeightmaxHmax-heightspaceStyleProp<CSS.Property.MaxHeight<string | 0 | number>> | ThemeValue<'space'>>
displayddisplayStyleProp<CSS.Property.Display>
transformttransformStyleProp<CSS.Property.Transform>
transformOrigintransform-originStyleProp<CSS.Property.TransformOrigin>
overflowoverflowStyleProp<CSS.Property.Overflow>
overflowXoverflow-xStyleProp<CSS.Property.OverflowX>
overflowYoverflow-yStyleProp<CSS.Property.OverflowY>
verticalAlignvAlignvertical-alignStyleProp<CSS.Property.VerticalAlign>

Position

import { position } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
positionpospositionStyleProp<CSS.Property.Position>
toptopspaceStyleProp<CSS.Property.Top<string | 0 | number> | ThemeValue<'space'>>
rightrightspaceStyleProp<CSS.Property.Right<string | 0 | number> | ThemeValue<'space'>>
bottombottomspaceStyleProp<CSS.Property.Bottom<string | 0 | number> | ThemeValue<'space'>>
leftleftspaceStyleProp<CSS.Property.Left<string | 0 | number> | ThemeValue<'space'>>
zIndexzz-indexzIndicesStyleProp<CSS.Property.ZIndex | ThemeValue<'zIndices'>>

Shadow

import { shadow } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
boxShadowbox-shadowshadowsStyleProp<CSS.BoxShadow.ZIndex | ThemeValue<'shadows'>>
textShadowtext-shadowshadowsStyleProp<CSS.TextShadow.ZIndex | ThemeValue<'shadows'>>

Space

import { space } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
marginmmarginspaceStyleProp<CSS.Property.Margin<string | 0 | number> | ThemeValue<'space'>>
marginTopmtmargin-topspaceStyleProp<CSS.Property.MarginTop<string | 0 | number> | ThemeValue<'space'>>
marginRightmrmargin-rightspaceStyleProp<CSS.Property.MarginRight<string | 0 | number> | ThemeValue<'space'>>
marginBottommbmargin-bottomspaceStyleProp<CSS.Property.MarginBottom<string | 0 | number> | ThemeValue<'space'>>
marginLeftmlmargin-leftspaceStyleProp<CSS.Property.MarginLeft<string | 0 | number> | ThemeValue<'space'>>
marginBlockmblmargin-blockspaceStyleProp<CSS.Property.MarginBlock<string | 0 | number> | ThemeValue<'space'>>
marginBlockStartmbsmargin-block-startspaceStyleProp<CSS.Property.MarginBlockStart<string | 0 | number> | ThemeValue<'space'>>
marginBlockEndmbemargin-block-endspaceStyleProp<CSS.Property.MarginBlockEnd<string | 0 | number> | ThemeValue<'space'>>
marginInlinemimargin-inlinespaceStyleProp<CSS.Property.MarginInline<string | 0 | number> | ThemeValue<'space'>>
marginInlineStartmismargin-inline-startspaceStyleProp<CSS.Property.MarginInlineStart<string | 0 | number> | ThemeValue<'space'>>
marginInlineEndmiemargin-inline-endspaceStyleProp<CSS.Property.MarginInlineEnd<string | 0 | number> | ThemeValue<'space'>>
paddingppaddingspaceStyleProp<CSS.Property.Padding<string | 0 | number> | ThemeValue<'space'>>
paddingTopptpadding-topspaceStyleProp<CSS.Property.PaddingTop<string | 0 | number> | ThemeValue<'space'>>
paddingRightprpadding-rightspaceStyleProp<CSS.Property.PaddingRight<string | 0 | number> | ThemeValue<'space'>>
paddingBottompbpadding-bottomspaceStyleProp<CSS.Property.PaddingBottom<string | 0 | number> | ThemeValue<'space'>>
paddingLeftplpadding-leftspaceStyleProp<CSS.Property.PaddingLeft<string | 0 | number> | ThemeValue<'space'>>
paddingBlockpblpadding-blockspaceStyleProp<CSS.Property.PaddingBlock<string | 0 | number> | ThemeValue<'space'>>
paddingBlockStartpbspadding-block-startspaceStyleProp<CSS.Property.PaddingBlockStart<string | 0 | number> | ThemeValue<'space'>>
paddingBlockEndpbepadding-block-endspaceStyleProp<CSS.Property.PaddingBlockEnd<string | 0 | number> | ThemeValue<'space'>>
paddingInlinepipadding-inlinespaceStyleProp<CSS.Property.PaddingInline<string | 0 | number> | ThemeValue<'space'>>
paddingInlineStartpispadding-inline-startspaceStyleProp<CSS.Property.PaddingInlineStart<string | 0 | number> | ThemeValue<'space'>>
paddingInlineEndpiepadding-inline-endspaceStyleProp<CSS.Property.PaddingInlineEnd<string | 0 | number> | ThemeValue<'space'>>

Transition

import { transition } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
transitiontransitiontransitionsStyleProp<CSS.Property.Transition | ThemeValue<'transitions'>>
transitionPropertytransition-propertyStyleProp<CSS.Property.TransitionProperty>
transitionDurationtransition-durationStyleProp<CSS.Property.TransitionDuration<string | 0 | number>>
transitionTimingFunctiontransition-timing-functionStyleProp<CSS.Property.TransitionTimingFunction<string | 0 | number>>
transitionDelaytransition-delayStyleProp<CSS.Property.TransitionDelay<string | 0 | number>>

Typography

import { typography } from 'jynx'
PropShorthandCSS PropertyTheme ScaleType
fontFamilyfont-familyfontsStyleProp<CSS.Property.FontFamily | ThemeValue<'fonts'>>
fontSizefont-sizefontSizesStyleProp<CSS.Property.FontSize<string | 0 | number> | ThemeValue<'fontSizes'>>
fontStylefont-styleStyleProp<CSS.Property.FontStyle>
fontWeightfont-weightfontWeightsStyleProp<CSS.Property.FontWeight<string | 0 | number> | ThemeValue<'fontWeights'>>
letterSpacingletter-spacingletterSpacingsStyleProp<CSS.Property.LetterSpacing<string | 0 | number> | ThemeValue<'letterSpacings'>>
lineHeightline-heightlineHeightsStyleProp<CSS.Property.LineHeight<string | 0 | number> | ThemeValue<'lineHeights'>>
textAligntext-alignStyleProp<CSS.Property.TextAlign>
textDecorationtext-decorationStyleProp<CSS.Property.TextDecoration>
textOverflowtext-overflowStyleProp<CSS.Property.TextOverflow>
textTransformtext-transformStyleProp<CSS.Property.TextTransform>
whiteSpacewhite-spaceStyleProp<CSS.Property.WhiteSpace>
wordBreakword-breakStyleProp<CSS.Property.WordBreak>