UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

32 lines 1.14 kB
/** * Theme Selector Module * Provides UI components for syntax highlighting theme selection */ /** * Generate theme selector CSS styles * Used in markdown preview pages for syntax highlighting theme selection */ export declare function getThemeSelectorStyles(): string; /** * Generate theme selector HTML with dropdown * @param themeOptions - HTML string of option elements */ export declare function getThemeSelectorHtml(themeOptions: string): string; /** * Generate theme change JavaScript * Handles toggling dark mode based on theme selection */ export declare function getThemeSelectorScript(): string; /** * Generate frontmatter display HTML * @param data - Frontmatter key-value pairs */ export declare function getFrontmatterHtml(data: Record<string, unknown>): string; /** * Check if a theme name indicates a dark theme */ export declare function isDarkTheme(themeName: string): boolean; /** * List of dark theme keywords for theme detection */ export declare const DARK_THEME_KEYWORDS: readonly ['dark', 'night', 'monokai', 'dracula', 'nord', 'material', 'ayu', 'one-dark', 'tokyo', 'gruvbox', 'solarized-dark'];