Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feat/vite plugin mjml#1

Merged
nlemoine merged 4 commits into
mainfrom
feat/vite-plugin-mjml
Jun 18, 2026
Merged

Feat/vite plugin mjml#1
nlemoine merged 4 commits into
mainfrom
feat/vite-plugin-mjml

Conversation

@nlemoine

Copy link
Copy Markdown
Owner

No description provided.

nlemoine added 4 commits June 17, 2026 09:02
Vite plugin that compiles MJML email templates to HTML and serves a live dev preview: side-by-side Desktop/Mobile viewports, a Source view, a caniemail-backed compatibility Check tab, light/dark/system theme, and live reload.
List it in the root README, declare its client build entries in knip, ignore the local vite-plugin-inspect reference checkout and the gstack session dir, and update the lockfile.
pnpm publint packs each package and checks its exports resolve, but the CI job ran it without building — so dist/* was missing and every package failed. Build before knip/publint, matching the check script.
Toolbar split into three distinct controls per the design handoff:
View (segmented Preview/Source/Check switch), Viewport (independent
Desktop/Mobile toggles with an inline device-size strip), and a pulled-out
Edit action.

Frame UX:
- Size device frames to the email content, capped at the device height, with
  internal scroll; short emails hug their content.
- Widen the desktop frame to 800px.
- Drop the iframe's fixed px width (use w-full) so a vertical scrollbar no
  longer forces a spurious horizontal one.

Theming:
- Align surfaces/borders/text to the design system's neutral scale, with
  distinct surface-default / surface-card levels that diverge in dark mode.
- Fix borders that never rendered: presetWind3 ships no preflight, so add a
  Tailwind-style border reset and drop the button reset's border:none.
- Defer to native OS scrollbars (macOS overlay, hover-only) so the email stays
  centered at the exact device width.
@nlemoine nlemoine merged commit d227949 into main Jun 18, 2026
1 check passed
@nlemoine nlemoine deleted the feat/vite-plugin-mjml branch June 18, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant