We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd889fa commit dd22299Copy full SHA for dd22299
src/utils/theme/themeEngine.ts
@@ -49,6 +49,17 @@ const PRECEDENCE_VARIABLE_MAPPING = {
49
/**
50
* Main theme application function
51
* Applies Auth0 branding data as CSS variables with proper precedence
52
+ * USAGE PATTERN:
53
+ * ```typescript
54
+ * // In any Auth0 screen component
55
+ * import { applyAuth0Theme } from "@/utils/theme";
56
+ *
57
+ * function LoginScreen() {
58
+ * const { screenInstance } = useScreenManager();
59
+ * applyAuth0Theme(screenInstance); // Apply theme when screen loads
60
+ * return <div>...</div>;
61
+ * }
62
+ * ```
63
*/
64
export function applyAuth0Theme(screenInstance: any): void {
65
if (!screenInstance?.branding) {
0 commit comments