Tokens

Shadows

Box shadow tokens

Scale

TokenValue
--hui-shadow-sm0 1px 2px 0 rgb(0 0 0 / 0.05)
--hui-shadow0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)
--hui-shadow-md0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)
--hui-shadow-lg0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)
--hui-shadow-xl0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)

Usage

.my-card {
  box-shadow: var(--hui-shadow-md);
}

.my-modal {
  box-shadow: var(--hui-shadow-xl);
}

Shadow tokens are overridden in dark theme to use darker, more subtle shadows.

On this page