@freecodecamp/ui
Version:
The freeCodeCamp.org open-source UI components
7 lines (6 loc) • 343 B
TypeScript
/**
* This function returns the theming class that would be added to the consumer's `body` element.
* The function accepts `theme`, which can be controled by the consumer,
* and default to the system theme if `theme` isn't specified.
*/
export declare const getThemingClass: (theme?: "light" | "dark") => "dark-palette" | "light-palette";