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-xsshadow-smshadow-mdshadow-lgshadow-xlshadow-2xlshadow-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 colorsshadow-status-indicator-warning-shadowUses theme colorsshadow-status-indicator-red-shadowUses theme colorsshadow-status-indicator-blue-shadowUses theme colorsshadow-status-indicator-gray-shadowUses theme colors