Cal.com

Shadows

Cal.com's shadow system for depth and elevation

Shadows

Our shadow system is designed to create visual hierarchy and depth in the interface. We provide specific shadows for different components and states, ensuring consistent interaction patterns across the application.

Shadow Categories

Component-Specific Shadows

  • Dropdown: Used for dropdown menus and popovers
  • Button States: Different shadows for default, hover, and active states
  • Brand Buttons: Special shadows for brand-colored buttons

State-Based Shadows

  • Rested State: Default appearance
  • Hover State: Enhanced depth when hovering
  • Active State: Pressed appearance

Usage Examples

<div className="shadow-dropdown">
  Dropdown Content
</div>

Solid Gray Buttons

<button className="shadow-solid-gray-rested hover:shadow-solid-gray-hover active:shadow-solid-gray-active">
  Solid Gray Button
</button>

Outline Buttons

<button className="shadow-outline-gray-rested hover:shadow-outline-gray-hover active:shadow-outline-gray-active">
  Outline Button
</button>

Brand Buttons

<button className="shadow-button-solid-brand-default hover:shadow-button-solid-brand-hover active:shadow-button-solid-brand-active">
  Brand Button
</button>

Shadow Preview

Click on any shadow to copy its Tailwind class name. Each card demonstrates how the shadow appears when applied.

Dropdown

shadow-dropdown

Used for dropdown menus and popovers

Solid Gray Rested

shadow-solid-gray-rested

Default state for solid gray buttons

Solid Gray Hover

shadow-solid-gray-hover

Hover state for solid gray buttons

Solid Gray Active

shadow-solid-gray-active

Active/pressed state for solid gray buttons

Outline Gray Rested

shadow-outline-gray-rested

Default state for outline gray buttons

Outline Gray Hover

shadow-outline-gray-hover

Hover state for outline gray buttons

Outline Gray Active

shadow-outline-gray-active

Active/pressed state for outline gray buttons

Outline Red Rested

shadow-outline-red-rested

Default state for outline red buttons

Outline Red Hover

shadow-outline-red-hover

Hover state for outline red buttons

Outline Red Active

shadow-outline-red-active

Active/pressed state for outline red buttons

Elevation Low

shadow-elevation-low

Subtle elevation for UI elements

Button Solid Brand Default

shadow-button-solid-brand-default

Default state for solid brand buttons

Button Solid Brand Hover

shadow-button-solid-brand-hover

Hover state for solid brand buttons

Button Solid Brand Active

shadow-button-solid-brand-active

Active/pressed state for solid brand buttons

On this page