DocsBlog
  • 0.25.3

  • light

    dark

    system

    Switch mode
  • Cerberus

    Acheron

    Elysium

Get Started
Components
Styling
Theming

Concepts

Cerberus FactoryResponsive DesignCSS VariablesThemes & Color ModesColor Opacity ModifierConditional StylesVirtual ColorCascade Layers

Compositions

Animation StylesText Styles

Style Props

BackgroundBorderEffectsSpacingText GradientTransitionsZ-Index

Effects

JSX style props for styling box shadows, opacity, and more

Box Shadow

Use the shadow or boxShadow prop to apply a box shadow to an element.

// hardcoded values
<Box shadow="12px 12px 2px 1px rgba(0, 0, 255, .2)" />
// token values
<Box shadow="lg" />
PropCSS PropertyToken Category
shadows, boxShadowbox-shadowshadows
shadowColor--shadow-colorcolors

Box Shadow Color

Use the shadowColor prop to set the color of a box shadow. This prop maps to the --shadow-color CSS variable.

<Box shadow="60px -16px var(--shadow-color)" shadowColor="red" />
PropCSS PropertyToken Category
shadowColor--shadow-colorcolors

Opacity

Use the opacity prop to set the opacity of an element.

<Box opacity="0.5" />
PropCSS PropertyToken Category
opacityopacityopacity

Mix Blend Mode

Use the mixBlendMode prop to control how an element's content should be blended with the background.

<Box bg="danger.bg.initial">
<Image src="..." mixBlendMode="hard-light" />
</Box>
PropCSS PropertyToken Category
mixBlendModemix-blend-mode-

On this page

  • Edit this page on Github
Cerberus Design System | Docs