Skip to content

Shadows

Elevation and component shadows registered as Tailwind CSS shadow utilities.

Dify UI replaces Tailwind CSS's default shadows with its own values. Use them as shadow-{name}, for example shadow-lg. Shadows that reference color tokens change with the theme.

Elevation

Elevation shadows lift a surface above the page. Larger steps are for surfaces further from the page, such as menus and dialogs.

  • shadow-xs
  • shadow-sm
  • shadow-md
  • shadow-lg
  • shadow-xl
  • shadow-2xl
  • shadow-3xl

Edge

Edge shadows cast in one direction only, for a surface pinned to the bottom of its container.

  • shadow-sm-no-bottom

Component

Component shadows belong to one primitive.

  • shadow-primary-buttonUses theme colors

Status indicator

Status indicator shadows add a colored halo to a status dot.

  • shadow-status-indicator-green-shadowUses theme colors
  • shadow-status-indicator-warning-shadowUses theme colors
  • shadow-status-indicator-red-shadowUses theme colors
  • shadow-status-indicator-blue-shadowUses theme colors
  • shadow-status-indicator-gray-shadowUses theme colors