feat: implement CSS extraction and style preservation system (task 8)

Complete implementation of comprehensive CSS extraction system for
theme-aware Typst PDF exports:

- CSSExtractor.ts: Core DOM style extraction with theme detection
- CSSToTypstMapper.ts: CSS to Typst property conversion with color parsing
- ThemeManager.ts: Theme-specific variable handling for popular themes
- PopularThemeSupport.ts: Enhanced support for Minimal, Blue Topaz, Sanctum
- PluginSpecificStyleHandler.ts: Style extraction for Dataview, Templater, etc
- HybridExportMode.ts: Main integration system with conflict resolution
- Updated index.ts to export all new components and types

System supports automatic theme detection, CSS variable extraction,
plugin-specific styling, and hybrid export modes with configurable
conflict resolution strategies.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-08-29 23:23:35 +02:00
1 parent 83b52c6f41
commit 0d81bb31b4
8 files changed
+3839 -9

No files matched your search

+31 -1
View File
@@ -3,6 +3,14 @@ export { TemplateManager } from './template-manager';
export { TemplateSubstitution } from './template-substitution';
export { TemplateValidator } from './template-validator';
// CSS Extraction and Style Preservation System Exports
export { CSSExtractor } from './CSSExtractor';
export { CSSToTypstMapper } from './CSSToTypstMapper';
export { ThemeManager } from './ThemeManager';
export { PopularThemeSupport } from './PopularThemeSupport';
export { PluginSpecificStyleHandler } from './PluginSpecificStyleHandler';
export { HybridExportMode } from './HybridExportMode';
// Type Exports
export type {
Template,
@@ -10,4 +18,26 @@ export type {
TemplateMetadata,
TemplateValidationResult,
SubstitutionContext
} from './types';
} from './types';
// CSS System Type Exports
export type {
ExtractedStyle,
ThemeInfo,
CSSExtractionOptions,
TypstStyleRule,
MappingOptions,
ColorFormat,
ThemeVariableMapping,
ThemeProfile,
ThemeDetectionResult,
EnhancedThemeProfile,
ThemeCustomization,
ThemeTestResult,
PluginStyleProfile,
PluginDetectionResult,
HybridExportOptions,
HybridStyleResult,
StyleConflict,
ConflictResolution
} from './CSSExtractor';