Skip to content

Effects

Shadow

ClassCSS
chai-shadowmedium drop shadow
chai-shadow-nonebox-shadow: none
chai-shadow-smsmall
chai-shadow-mdmedium
chai-shadow-lglarge
chai-shadow-xlextra-large
chai-shadow-2xldramatic
chai-shadow-innerinset
chai-shadow-[0_4px_24px_rgba(0,0,0,.15)]arbitrary

The named scale lives in the theme and can be overridden.

Opacity

ClassCSS
chai-opacity-0opacity: 0
chai-opacity-25opacity: 0.25
chai-opacity-50opacity: 0.5
chai-opacity-75opacity: 0.75
chai-opacity-100opacity: 1
chai-opacity-[0.4]arbitrary

The numeric form is 0โ€“100; arbitrary values pass through verbatim.

Cursor

ClassCSS
chai-cursor-pointercursor: pointer
chai-cursor-defaultcursor: default
chai-cursor-waitcursor: wait
chai-cursor-textcursor: text
chai-cursor-not-allowedcursor: not-allowed
chai-cursor-grabcursor: grab
chai-cursor-[help]arbitrary

Whatever follows cursor- is passed straight through, so any valid CSS cursor keyword works.

Pointer events & selection

ClassCSS
chai-pointer-events-nonepointer-events: none
chai-pointer-events-autopointer-events: auto
chai-select-noneuser-select: none
chai-select-textuser-select: text
chai-select-alluser-select: all
chai-select-autouser-select: auto

Made by Saad ยท @developedbysaad on X