Skip to main content

Interface: StylesProperties

@headstartwp/core.react.StylesProperties

Indexable

[k: string]: unknown

Properties

border

Optional border: Object

Border styles.

Type declaration

NameTypeDescription
color?stringSets the border-color CSS property.
radius?stringSets the border-radius CSS property.
style?stringSets the border-style CSS property.
width?stringSets the border-width CSS property.

Defined in

packages/core/src/react/provider/types.ts:555


color

Optional color: Object

Color styles.

Type declaration

NameTypeDescription
background?stringSets the background-color CSS property.
gradient?stringSets the background CSS property.
text?stringSets the color CSS property.

Defined in

packages/core/src/react/provider/types.ts:576


spacing

Optional spacing: Object

Spacing styles.

Type declaration

NameTypeDescription
blockGap?stringSets the --wp--style--block-gap CSS custom property when settings.spacing.blockGap is true.
margin?{ bottom?: string ; left?: string ; right?: string ; top?: string }Margin styles.
margin.bottom?stringSets the margin-bottom CSS property.
margin.left?stringSets the margin-left CSS property.
margin.right?stringSets the margin-right CSS property.
margin.top?stringSets the margin-top CSS property.
padding?{ bottom?: string ; left?: string ; right?: string ; top?: string }Padding styles.
padding.bottom?stringSets the padding-bottom CSS property.
padding.left?stringSets the padding-left CSS property.
padding.right?stringSets the padding-right CSS property.
padding.top?stringSets the padding-top CSS property.

Defined in

packages/core/src/react/provider/types.ts:593


typography

Optional typography: Object

Typography styles.

Type declaration

NameTypeDescription
fontFamily?stringSets the font-family CSS property.
fontSize?stringSets the font-size CSS property.
fontStyle?stringSets the font-style CSS property.
fontWeight?stringSets the font-weight CSS property.
letterSpacing?stringSets the letter-spacing CSS property.
lineHeight?stringSets the line-height CSS property.
textDecoration?stringSets the text-decoration CSS property.
textTransform?stringSets the text-transform CSS property.

Defined in

packages/core/src/react/provider/types.ts:644