Skip to content

Profectus / game/notifications / getNotifyStyle

Function: getNotifyStyle() ​

getNotifyStyle(color, strength): object

Gives a CSSProperties object that makes an object glow, to bring focus to it. Default values are for a "soft" white notif effect.

Parameters ​

color ​

string = "white"

The color of the glow effect.

strength ​

string = "8px"

The strength of the glow effect - affects its spread.

Returns ​

object

borderColor ​

borderColor: "rgba(0, 0, 0, 0.125)" = "rgba(0, 0, 0, 0.125)"

boxShadow ​

boxShadow: `-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${string} ${string}`

transform ​

transform: "scale(1.05, 1.05)" = "scale(1.05, 1.05)"

zIndex ​

zIndex: number = 1

Defined in ​

profectus/src/game/notifications.ts:16