app
Resend Studio
Public Made by Adomby adom
A local editor for Resend email templates: paste your API key, then edit, preview, lint, test-send, and publish templates without Resend's dashboard. Also imports SendGrid dynamic templates and converts their Handlebars to Resend's variable syntax.
main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
@font-face { font-family: 'Familjen Grotesk'; src: url('https://wiki.adom.inc/static/fonts/familjen-grotesk-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('https://wiki.adom.inc/static/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('https://wiki.adom.inc/static/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('https://cdn.jsdelivr.net/npm/@fontsource/jetbrains-mono@5/files/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root {
--bg: #0d1117;
--surface: #161b22;
--surface2: #1c2129;
--elevated: #1c2128;
--border: #30363d;
--border-muted: #21262d;
--text: #e6edf3;
--text2: #8b949e;
--text3: #59616b;
--accent: #00b8b0;
--accent-ink: #04211f;
--green: #3fb950;
--red: #f85149;
--yellow: #d29922;
--blue: #58a6ff;
--z-floating-menu: 200;
--z-toast: 400;
--z-modal: 600;
--z-tooltip: 99999;
}
* { box-sizing: border-box; }
html, body {
margin: 0; padding: 0; height: 100%;
background: var(--bg); color: var(--text);
font: 13px/1.45 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.mono { font-family: 'JetBrains Mono', monospace !important; font-size: 12px !important; }
[hidden] { display: none !important; }
/* ---------- Header ---------- */
header {
display: flex; align-items: center; gap: 12px;
padding: 0 16px; height: 44px;
border-bottom: 1px solid var(--border-muted);
background: var(--surface);
position: relative; flex-shrink: 0;
font-family: 'Familjen Grotesk', sans-serif;
}
header .brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: default; flex-shrink: 0; outline: none; }
header .brand .logo { width: 18px; height: 18px; }
header .brand .app-name { color: var(--accent); }
header .brand .app-subtitle { color: var(--text2); font-weight: 500; }
header .brand .sep { color: var(--text3); }
header .vsep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }
header .subject { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
header .subject-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header .subject-meta { display: flex; align-items: center; gap: 6px; color: var(--text2); font-family: 'JetBrains Mono', monospace; font-size: 11px; white-space: nowrap; }
header .actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.status-pill { font-family: 'Satoshi', sans-serif; font-weight: 500; font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text2); }
.status-pill.ok { color: var(--green); border-color: rgba(63,185,80,0.4); }
.status-pill.bad { color: var(--red); border-color: rgba(248,81,73,0.4); }
.status-pill.off { color: var(--text3); }
.status-pill.warn { color: var(--yellow); border-color: rgba(210,153,34,0.45); }
.status-pill.as-btn { background: none; cursor: pointer; }
.status-pill.as-btn:hover { border-color: var(--text2); }
.settings-grid { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; align-items: center; }
.settings-grid .k { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text2); }
.settings-grid input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 10px; font-size: 13px; }
.settings-note { font-size: 12px; color: var(--text2); margin: 4px 0 0; grid-column: 2; }
.settings-note.ok { color: var(--green); }
.settings-note.warn { color: var(--yellow); }
.settings-note.bad { color: var(--red); }
.settings-section { font-family: 'Familjen Grotesk', sans-serif; font-weight: 700; font-size: 13px; margin: 18px 0 8px; grid-column: 1 / -1; }
.settings-section:first-child { margin-top: 0; }
.modal-body a { color: var(--accent); }
header .hover-popover {
position: absolute; top: calc(100% + 6px); left: 16px;
background: var(--elevated); border: 1px solid var(--border); border-radius: 8px;
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
padding: 12px 14px; min-width: 300px; max-width: 440px;
font-family: 'Satoshi', sans-serif; font-size: 12px;
z-index: var(--z-floating-menu);
opacity: 0; transform: translateY(-2px); pointer-events: none;
transition: opacity 120ms ease, transform 120ms ease;
}
header .hover-popover.show { opacity: 1; transform: none; pointer-events: auto; }
.popover-title { font-family: 'Familjen Grotesk', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.popover-row { display: flex; gap: 12px; padding: 3px 0; align-items: baseline; }
.popover-row .k { color: var(--text3); font-family: 'JetBrains Mono', monospace; font-size: 10px; width: 64px; flex-shrink: 0; }
.popover-row .v { flex: 1; }
#global-tooltip {
position: fixed; z-index: var(--z-tooltip); top: 0; left: 0;
transform: translate(var(--tip-x, -9999px), var(--tip-y, -9999px));
background: rgba(22,27,34,0.97); backdrop-filter: blur(16px);
border: 1px solid rgba(0,184,177,0.25); border-radius: 10px;
padding: 10px 14px; font-size: 12px; line-height: 1.55; color: #e6edf3;
max-width: min(320px, calc(100vw - 40px)); white-space: pre-wrap;
pointer-events: none; box-shadow: 0 12px 40px rgba(0,0,0,0.55);
opacity: 0; display: none; transition: opacity 0.18s ease;
}
#global-tooltip.visible { display: block; }
#global-tooltip.shown { opacity: 1; }
/* ---------- Layout ---------- */
.layout { display: flex; height: calc(100vh - 44px); }
.sidebar { width: 290px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border-muted); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 14px; font-family: 'Familjen Grotesk', sans-serif; font-weight: 600; font-size: 12px; color: var(--text2); border-bottom: 1px solid var(--border-muted); }
.sidebar-actions { display: flex; gap: 6px; }
.list-filter { padding: 8px 12px; border-bottom: 1px solid var(--border-muted); }
.list-filter input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 6px 9px; font-size: 12px; }
.remote-error { margin: 8px 12px; padding: 8px 10px; border-radius: 6px; font-size: 11.5px; color: var(--yellow); background: rgba(210,153,34,0.08); border: 1px solid rgba(210,153,34,0.3); }
.template-list { overflow-y: auto; flex: 1; }
.template-item { padding: 9px 14px; border-bottom: 1px solid var(--border-muted); cursor: pointer; border-left: 2px solid transparent; }
.template-item:hover { background: var(--surface2); }
.template-item.active { background: var(--surface2); border-left-color: var(--accent); }
.template-item .row1 { display: flex; align-items: center; gap: 7px; }
.template-item .name { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.template-item .alias { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text3); margin: 2px 0 0 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.template-item .badges { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 0 15px; }
.badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); color: var(--text2); white-space: nowrap; }
.badge.warn { color: var(--yellow); border-color: rgba(210,153,34,0.4); }
.badge.info { color: var(--blue); border-color: rgba(88,166,255,0.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--text3); }
.dot.live { background: var(--green); }
.dot.draft { background: var(--yellow); }
.dot.local { background: transparent; border: 1.5px solid var(--text2); }
.legend { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--border-muted); font-size: 10.5px; color: var(--text3); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.editor { flex: 1; display: flex; flex-direction: column; overflow: auto; padding: 14px 16px 16px; gap: 12px; min-width: 0; }
.empty-state { color: var(--text2); padding: 24px; text-align: center; }
.empty-state.large { margin: auto; font-size: 13px; }
.big-title { font-family: 'Familjen Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.link-btn { background: none; border: none; color: var(--accent); padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.status-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text2); min-height: 20px; }
.status-line .chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); }
.status-line .chip.ok { color: var(--green); border-color: rgba(63,185,80,0.35); }
.status-line .chip.warn { color: var(--yellow); border-color: rgba(210,153,34,0.4); }
.status-line .chip.unsaved { color: var(--accent); border-color: rgba(0,184,176,0.45); }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 10px 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.wide { grid-column: span 1; }
.field span { font-size: 11px; color: var(--text2); font-family: 'JetBrains Mono', monospace; }
.field input { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 7px 10px; font-size: 13px; min-width: 0; }
.field input:focus, .code-area:focus, .notes-area:focus { outline: 1px solid rgba(0,184,176,0.5); }
.toolbar-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; position: relative; }
.btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 7px 13px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--text2); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-accent:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--accent); }
.btn-danger { color: #ffb4ae; border-color: rgba(248,81,73,0.45); }
.btn-danger:hover:not(:disabled) { background: rgba(248,81,73,0.12); border-color: var(--red); }
.btn.pulse { border-color: var(--accent); color: var(--accent); }
.icon-btn { background: transparent; border: 1px solid var(--border); border-radius: 6px; color: var(--text2); min-width: 26px; height: 26px; font-size: 14px; line-height: 1; padding: 0 6px; }
.icon-btn.wide { font-size: 11px; padding: 0 8px; }
.icon-btn.small { height: 22px; min-width: 22px; font-size: 12px; }
.icon-btn.wide.small { font-size: 10.5px; }
.icon-btn:hover { color: var(--text); border-color: var(--text2); }
.menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--elevated); border: 1px solid var(--border); border-radius: 8px; padding: 4px; z-index: var(--z-floating-menu); box-shadow: 0 8px 24px rgba(0,0,0,0.5); min-width: 240px; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 7px 10px; border-radius: 5px; font-size: 12.5px; }
.menu button:hover { background: var(--surface2); }
.editor-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1 0 420px; min-height: 420px; }
.lower-panes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; flex: 0 0 auto; }
.pane { background: var(--surface); border: 1px solid var(--border-muted); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.pane-header { padding: 9px 14px; border-bottom: 1px solid var(--border-muted); font-family: 'Familjen Grotesk', sans-serif; font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.pane-header .icon-btn:first-of-type { margin-left: auto; }
.side-stack .pane-header { border-top: 1px solid var(--border-muted); }
.side-stack .pane-header:first-child { border-top: none; }
.pane-sub { font-family: 'Satoshi', sans-serif; font-weight: 400; font-size: 11px; color: var(--text2); }
.code-area { flex: 1; resize: none; border: none; background: var(--bg); color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.55; padding: 12px; tab-size: 2; white-space: pre; }
.seg { margin-left: auto; display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg button { background: none; border: none; color: var(--text2); font-size: 11px; padding: 3px 9px; }
.seg button.on { background: var(--surface2); color: var(--text); }
.inbox-head { padding: 8px 14px; border-bottom: 1px solid var(--border-muted); background: var(--surface2); font-size: 12px; }
.ih-row { display: flex; gap: 10px; padding: 1px 0; min-width: 0; }
.ih-row .k { color: var(--text3); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; width: 52px; flex-shrink: 0; padding-top: 1px; }
.ih-row span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-subject { font-weight: 500; }
.pv-missing { color: var(--red); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.preview-wrap { flex: 1; display: flex; justify-content: center; background: #e9ebef; overflow: hidden; }
.preview-frame { flex: 1; width: 100%; border: none; background: #fff; }
.preview-wrap.mobile .preview-frame { flex: 0 0 375px; width: 375px; box-shadow: 0 0 0 1px #c9ccd2; }
.var-head, .var-row { display: grid; grid-template-columns: minmax(110px,1.1fr) 82px 1fr 1.2fr 24px; gap: 8px; align-items: center; }
.var-head { padding: 7px 14px 4px; font-size: 10.5px; color: var(--text3); font-family: 'JetBrains Mono', monospace; }
.variables-table { overflow-y: auto; padding: 0 14px 10px; max-height: 300px; }
.var-row { padding: 5px 0; border-bottom: 1px solid var(--border-muted); }
.var-row input, .var-row select { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 5px 8px; font-size: 12px; width: 100%; min-width: 0; }
.var-row input.k { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.var-row input.k.bad { border-color: rgba(248,81,73,0.6); }
.var-row input.k.unused { color: var(--text2); }
.var-row .remove-var { background: none; border: none; color: var(--text3); font-size: 15px; }
.var-row .remove-var:hover { color: var(--red); }
.var-empty { color: var(--text3); font-size: 12px; padding: 10px 0; }
.lint-list { padding: 8px 14px 10px; display: flex; flex-direction: column; gap: 5px; max-height: 190px; overflow-y: auto; }
.lint { display: flex; gap: 8px; font-size: 12px; line-height: 1.45; align-items: baseline; }
.lint .lv { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; width: 38px; flex-shrink: 0; }
.lint.error .lv { color: var(--red); }
.lint.warn .lv { color: var(--yellow); }
.lint.info .lv { color: var(--text3); }
.lint.info { color: var(--text2); }
.lint-ok { color: var(--green); font-size: 12px; }
.send-test { padding: 10px 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.send-test input { flex: 1; min-width: 160px; }
.send-test input, .send-test select { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 7px 10px; font-size: 12.5px; }
.notes-area { margin: 10px 14px; min-height: 64px; resize: vertical; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 10px; font-size: 12.5px; line-height: 1.5; }
.remote-info { padding: 10px 14px 14px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.remote-info .popover-row .k { width: 92px; }
.remote-info .popover-row .v { font-family: 'JetBrains Mono', monospace; font-size: 11px; word-break: break-all; }
/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(1,4,9,0.7); z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: min(980px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,0.6); }
.modal.narrow { width: min(480px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-muted); font-family: 'Familjen Grotesk', sans-serif; font-weight: 700; font-size: 15px; }
.modal-body { padding: 16px 18px; overflow-y: auto; font-size: 13px; }
.modal-body p { margin: 0 0 10px; color: var(--text2); }
.modal-body input[type=text] { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 10px; font-size: 13px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border-muted); }
.modal-foot:empty { display: none; }
.sg-card { border: 1px solid var(--border-muted); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface2); }
.sg-top { display: flex; align-items: center; gap: 10px; }
.sg-name { font-weight: 600; font-size: 13.5px; }
.sg-id { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text3); }
.sg-subject { font-size: 12px; color: var(--text2); margin: 3px 0 8px; }
.sg-row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; margin: 6px 0; font-size: 12px; }
.sg-row .k { color: var(--text3); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; }
.sg-row input { background: var(--bg) !important; padding: 5px 8px !important; font-size: 12px !important; }
.cond-table { display: grid; grid-template-columns: minmax(120px, 0.8fr) 220px 1fr; gap: 6px 10px; align-items: center; font-size: 12px; }
.cond-table .var { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.cond-table input { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 4px 8px; font-size: 12px; width: 100%; }
.cond-table .seg { margin-left: 0; }
.cond-table .seg button { padding: 3px 10px; }
.variants { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.variants code { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--bg); border: 1px solid var(--border-muted); padding: 2px 7px; border-radius: 5px; }
.sg-unsupported { color: var(--yellow); font-size: 12px; margin-top: 6px; }
.sg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; align-items: center; }
.sg-actions .hint { font-size: 11.5px; color: var(--text2); margin-right: auto; }
/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: var(--z-toast); max-width: 420px; }
.toast { background: var(--elevated); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); animation: tin 160ms ease; white-space: pre-wrap; }
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--yellow); }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1200px) {
.meta-grid { grid-template-columns: 1fr 1fr; }
.toolbar-actions { grid-column: 1 / -1; justify-content: flex-start; }
.editor-panes, .lower-panes { grid-template-columns: 1fr; }
.editor-panes { flex-basis: auto; }
.editor-panes .pane { min-height: 380px; }
}