All files / packages/core/src/themes/css index.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33                            60x 60x   60x                 22x            
// SPDX-License-Identifier: MIT
// CSS generation module - Public API
 
export * from './types.js';
 
import type { ThemeFlavor } from '../types.js';
import { generateSyntaxHighlightingCSS } from './syntax-generator.js';
import { generateThemeCSSVariables } from './bulma-generator.js';
import { cssGlobalOverrides as globalOverrides } from './global-overrides.js';
 
/**
 * Generate CSS for a specific flavor.
 */
export function cssForFlavor(flavor: ThemeFlavor): string {
  const syntaxCSS = generateSyntaxHighlightingCSS(flavor);
  const variablesCSS = generateThemeCSSVariables(flavor);
 
  return `/* SPDX-License-Identifier: MIT */
${syntaxCSS}
${variablesCSS}`;
}
 
/**
 * Generate global CSS overrides that apply theme variables.
 */
export function cssGlobalOverrides(): string {
  return globalOverrides();
}
 
// Re-export internal modules for advanced usage
export { generateSyntaxHighlightingCSS } from './syntax-generator.js';
export { generateThemeCSSVariables } from './bulma-generator.js';