Enables or disables the dark theme at runtime by applying or removing the dark theme class on the document root.
Use this for scenarios such as a dark/light theme toggle. The change takes effect immediately, without a page reload.
Parameters
IsDark: boolean
True to enable the dark theme, False to disable it.
Returns string
JSON string with Success and ErrorMessage, consistent with the other client actions.
Enables or disables the dark theme at runtime by applying or removing the dark theme class on the document root. Use this for scenarios such as a dark/light theme toggle. The change takes effect immediately, without a page reload.