Real IMAP connection via imapflow library: - Connects to IMAP server (IMAPFlow, TLS on port 993) - Fetches recent messages (configurable limit, default 20) - Extracts: from, fromEmail, subject, date, snippet (200 chars) - Thread-to-contact matching (PRD §6.1): 1. Match sender email against persons table 2. If no person match, extract domain and match against company.website 3. Returns matchedCompany + matchedPerson for each email - Audit-logged (action: crm.mailsync:imap) - Zod validated (host, port, user, password, folder, limit) - 502 on IMAP connection failure with detail - 400 on validation failure Tested: invalid creds → 502 'IMAP connection failed', missing host → 400
56 lines
1.5 KiB
Markdown
Executable File
56 lines
1.5 KiB
Markdown
Executable File
---
|
|
name: Modern
|
|
colors:
|
|
primary: "#553F83"
|
|
secondary: "#111111"
|
|
success: "#16A34A"
|
|
warning: "#D97706"
|
|
danger: "#DC2626"
|
|
surface: "#553F83"
|
|
text: "#ffffff"
|
|
neutral: "#553F83"
|
|
typography:
|
|
h1:
|
|
fontFamily: "IBM Plex Serif"
|
|
fontSize: 2rem
|
|
body-md:
|
|
fontFamily: "IBM Plex Serif"
|
|
fontSize: 1rem
|
|
label-caps:
|
|
fontFamily: "JetBrains Mono"
|
|
fontSize: 0.75rem
|
|
sourceScale: "12/14/16/20/24/32"
|
|
weights: "100, 200, 300, 400, 500, 600, 700, 800, 900"
|
|
rounded:
|
|
sm: 4px
|
|
md: 8px
|
|
spacing:
|
|
sm: 4px
|
|
md: 8px
|
|
sourceScale: "4/8/12/16/24/32"
|
|
---
|
|
|
|
## Overview
|
|
|
|
Contemporary editorial style with serif typography, minimal palettes, and clean layouts for polished digital products.
|
|
|
|
## Style Foundations
|
|
|
|
- **Visual style:** modern, minimal, clean, editorial
|
|
- **Typography scale:** 12/14/16/20/24/32
|
|
- **Typography fonts:** primary=IBM Plex Serif, display=IBM Plex Serif, mono=JetBrains Mono
|
|
- **Typography weights:** 100, 200, 300, 400, 500, 600, 700, 800, 900
|
|
- **Color palette:** primary, secondary
|
|
- **Spacing scale:** 4/8/12/16/24/32
|
|
|
|
## Colors
|
|
|
|
- **Primary (#553F83):** Token from style foundations.
|
|
- **Secondary (#111111):** Token from style foundations.
|
|
- **Success (#16A34A):** Token from style foundations.
|
|
- **Warning (#D97706):** Token from style foundations.
|
|
- **Danger (#DC2626):** Token from style foundations.
|
|
- **Surface (#553F83):** Token from style foundations.
|
|
- **Text (#ffffff):** Token from style foundations.
|
|
- **Neutral (#553F83):** Derived from the surface token for official format compatibility.
|