-
-
Notifications
You must be signed in to change notification settings - Fork 213
Open
Description
Description
Implement a Legal Styling Studio within the Template Playground to allow users to customize the visual appearance, typography, and layout of generated legal documents in real-time.
Use Case
While the Playground is powerful for logic and data modeling, the final output (Preview & PDF) is currently limited to basic web styling. Legal professionals require high-fidelity documents that adhere to industry standards.
With this feature, users can:
- Typography: Switch between professional Serif (Classic Legal) and Sans-Serif (Modern Corporate) typefaces.
- Layout Controls: Adjust line-height, page margins, and text justification to match law firm templates.
- High-Quality PDF: Export documents that maintain these styles perfectly.
Proposed Solution
- State Management: Add a
legalThemestate in the Zustand store to track user preferences (fonts, margins, etc.). - UI Component: A new slide-out panel in the Preview section with:
- Font Selectors: Premium web fonts (Crimson Pro, Inter, Playfair Display).
- Sliders: Real-time adjustment of margins and spacing.
- Dynamic Styling: Use CSS variables injected into the document container for zero-latency updates.
- PDF Integration: Configure
html2pdf.jsto capture the custom CSS environment during download.
Visual Comparison
Current Document Look (Baseline)
Functional but visually basic, lacks professional legal formatting:
Expected Professional Output (Target)
Premium typography, proper margins, and authoritative legal layout:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels