DocsBlog

Get Started

Components

Data Grid

Signals

Styling

Theming

↑↓Navigate
↵Select
EscClose
  • 1.8.0

  • Day

    Night

    Preview

    Switch mode
  • cerberus

    acheron

    elysium

    oceanus

Get Started
Components
Data Grid
Signals
Styling
Theming

Concepts

Cerberus FactoryResponsive DesignCSS VariablesThemes & Color ModesColor opacity modifierConditional StylesVirtual ColorCascade LayersUtilities

Compositions

Animation StylesLayer StylesText Styles

Style Props

BackgroundBorderEffectsSpacingText GradientTransitionsz-index

Effects

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

  • source
View as Markdown
Open this page in Markdown
Anthropic
Open in Claude
Ask questions about this page
OpenAI
Open in ChatGPT
Ask questions about this page

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

  • Box Shadow
  • Box Shadow Color
  • Opacity
  • Mix Blend Mode
Edit this page on Github