Westy Design Systemv0.2.7
OverviewComponentsExamplesStorybook

Foundations

  • Typography
  • Colors
  • Spacing
  • Radius
  • Shadows
  • Icons

Components

  • Accordion
  • Alert
  • Alert Dialog
  • Aspect Ratio
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Context Menu
  • Data Table
  • Date Picker
  • Dialog
  • Direction
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Hover Card
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kbd
  • Label
  • Menubar
  • Native Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Questionnaire
  • Radio Group
  • Resizable
  • Scroll Area
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Spinner
  • Switch
  • Table
  • Tabs
  • Textarea
  • Toggle
  • Toggle Group
  • Tooltip

Chat

  • Attachment
  • Bubble
  • Marker
  • Message
  • Message Scroller

Foundations

Shadows

Elevation as a scale, not a decoration. The system keeps the default Tailwind shadow tokens untouched — no custom values — and assigns each step a fixed layer in the interface, from flat controls to floating chart tooltips.

Scale
Seven steps from a hairline under a control to a full drop shadow. Offset and blur grow together while the black stays translucent — 5% at the bottom of the scale, 25% only at shadow-2xl.
Tailwind defaults
shadow-2xs--shadow-2xs0 1px 05%
shadow-xs--shadow-xs0 1px 2px5%
shadow-sm--shadow-sm0 1px 3px10%
shadow-md--shadow-md0 4px 6px10%
shadow-lg--shadow-lg0 10px 15px10%
shadow-xl--shadow-xl0 20px 25px10%
shadow-2xl--shadow-2xl0 25px 50px25%
Where each step lands
Elevation tracks distance from the page. Controls and cards sit at shadow-xs, surfaces raised in place — active tabs, slider thumbs, the floating sidebar — take shadow-sm, popovers and menus float at shadow-md, sheets and submenus at shadow-lg, and the chart tooltip tops out at shadow-xl.
shadow-xs
shadow-sm
Active
Tab
shadow-md
Popover
shadow-lg
Submenu item
Submenu item
shadow-xl
Chart tooltip · 42
Shadow plus ring
Translucent black disappears on a dark background, so a shadow alone cannot separate an elevated surface in dark mode. Every floating surface therefore pairs its shadow with ring-1 ring-foreground/10 — press D to see the ring take over as the shadow fades. Dialogs sit on a dimmed overlay and use the ring alone.

shadow-md only

Fades in dark mode

shadow-md + ring

Holds its edge

Tokens used

13 design tokens consumed by this page.

  • --shadow-2xs

    Hairline shadow

    shadow-2xs
  • --shadow-xs

    Control shadow

    shadow-xs
  • --shadow-sm

    Raised-in-place shadow

    shadow-sm
  • --shadow-md

    Popover shadow

    shadow-md
  • --shadow-lg

    Sheet and submenu shadow

    shadow-lg
  • --shadow-xl

    Chart tooltip shadow

    shadow-xl
  • --shadow-2xl

    Maximum elevation

    shadow-2xl
  • --card

    Card

    bg-card
  • --muted

    Muted

    bg-muted
  • --accent

    Accent

    bg-accent
  • --border

    Border

    border
  • --foreground

    Foreground

    ring-foreground/10text-foreground
  • --muted-foreground

    Muted Foreground

    text-muted-foreground