UNPKG

lightning-auth-and-payment

Version:

Lightning Network authentication and payment processing library for modern web applications

34 lines 1.12 kB
/** * Theme utility functions * Helper functions for working with themes and CSS variables */ import { Theme, ThemeColors } from './types'; /** * Convert theme to CSS custom properties */ export declare function themeToCSSVariables(theme: Theme): Record<string, string>; /** * Apply theme CSS variables to an element */ export declare function applyThemeToElement(element: HTMLElement, theme: Theme): void; /** * Generate Tailwind-compatible color classes */ export declare function generateColorClasses(colors: ThemeColors): Record<string, string>; /** * Create a theme-aware className utility */ export declare function createThemeClassName(baseClass: string, lightClass?: string, darkClass?: string): string; /** * Get theme-aware color value */ export declare function getThemeColor(colorKey: keyof ThemeColors, fallback?: string): string; /** * Check if current theme is dark mode */ export declare function isDarkMode(): boolean; /** * Get contrast ratio between two colors */ export declare function getContrastRatio(color1: string, color2: string): number; //# sourceMappingURL=utils.d.ts.map