Skip to content

$fn.getAppearance()

This is a built-in function added in v4.1.0.
Gets the current appearance mode of the application.

Arguments

None

Return Value

TypeDescription
stringReturns the current appearance mode from [light | dark | auto].

Sample

const mode = $fn.getAppearance();
console.log("Current appearance mode:", mode);