[{"data":1,"prerenderedAt":2518},["ShallowReactive",2],{"navigation_docs":3,"-kits-email-safe-html":205,"-kits-email-safe-html-surround":2513},[4,31,67,111,132,163,189],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start","i-lucide-play",{"title":26,"path":27,"stem":28,"icon":29},"Agent Skill","\u002Fgetting-started\u002Fagent-skill","1.getting-started\u002F4.agent-skill","i-lucide-sparkles",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"Authoring","i-lucide-pen-line","\u002Fauthoring","2.authoring",[37,42,47,52,57,62],{"title":38,"path":39,"stem":40,"icon":41},"Comark syntax","\u002Fauthoring\u002Fcomark-syntax","2.authoring\u002F1.comark-syntax","i-lucide-file-code",{"title":43,"path":44,"stem":45,"icon":46},"Frontmatter","\u002Fauthoring\u002Ffrontmatter","2.authoring\u002F2.frontmatter","i-lucide-heading",{"title":48,"path":49,"stem":50,"icon":51},"Components","\u002Fauthoring\u002Fcomponents","2.authoring\u002F3.components","i-lucide-blocks",{"title":53,"path":54,"stem":55,"icon":56},"Merge tags and data","\u002Fauthoring\u002Fmerge-tags-and-data","2.authoring\u002F4.merge-tags-and-data","i-lucide-braces",{"title":58,"path":59,"stem":60,"icon":61},"Actions and spans","\u002Fauthoring\u002Factions-and-spans","2.authoring\u002F5.actions-and-spans","i-lucide-mouse-pointer-click",{"title":63,"path":64,"stem":65,"icon":66},"Compile errors","\u002Fauthoring\u002Fcompile-errors","2.authoring\u002F6.compile-errors","i-lucide-circle-alert",{"title":68,"icon":69,"path":70,"stem":71,"children":72,"page":30},"Kits","i-lucide-palette","\u002Fkits","3.kits",[73,78,83,87,91,96,101,106],{"title":74,"path":75,"stem":76,"icon":77},"What is a kit","\u002Fkits\u002Fwhat-is-a-kit","3.kits\u002F1.what-is-a-kit","i-lucide-package",{"title":79,"path":80,"stem":81,"icon":82},"kit.yaml","\u002Fkits\u002Fkit-yaml","3.kits\u002F2.kit-yaml","i-lucide-file-cog",{"title":84,"path":85,"stem":86,"icon":51},"Component schemas","\u002Fkits\u002Fcomponent-schemas","3.kits\u002F3.component-schemas",{"title":88,"path":89,"stem":90,"icon":56},"Templates and views","\u002Fkits\u002Ftemplates-and-views","3.kits\u002F4.templates-and-views",{"title":92,"path":93,"stem":94,"icon":95},"Template checking","\u002Fkits\u002Ftemplate-checking","3.kits\u002F5.template-checking","i-lucide-shield-check",{"title":97,"path":98,"stem":99,"icon":100},"Go types and funcs","\u002Fkits\u002Fgo-types-and-funcs","3.kits\u002F6.go-types-and-funcs","i-lucide-code",{"title":102,"path":103,"stem":104,"icon":105},"Email-safe HTML","\u002Fkits\u002Femail-safe-html","3.kits\u002F7.email-safe-html","i-lucide-mail-check",{"title":107,"path":108,"stem":109,"icon":110},"Plain text","\u002Fkits\u002Fplain-text","3.kits\u002F8.plain-text","i-lucide-file-text",{"title":112,"icon":113,"path":114,"stem":115,"children":116,"page":30},"Sending","i-lucide-send","\u002Fsending","4.sending",[117,122,127],{"title":118,"path":119,"stem":120,"icon":121},"Profiles and config","\u002Fsending\u002Fprofiles-and-config","4.sending\u002F1.profiles-and-config","i-lucide-settings",{"title":123,"path":124,"stem":125,"icon":126},"Message and MIME","\u002Fsending\u002Fmessage-and-mime","4.sending\u002F2.message-and-mime","i-lucide-mail",{"title":128,"path":129,"stem":130,"icon":131},"SMTP","\u002Fsending\u002Fsmtp","4.sending\u002F3.smtp","i-lucide-server",{"title":133,"icon":134,"path":135,"stem":136,"children":137,"page":30},"Tooling","i-lucide-wrench","\u002Ftooling","5.tooling",[138,143,148,153,158],{"title":139,"path":140,"stem":141,"icon":142},"The lttr CLI","\u002Ftooling\u002Fcli","5.tooling\u002F1.cli","i-lucide-terminal",{"title":144,"path":145,"stem":146,"icon":147},"Studio","\u002Ftooling\u002Fstudio","5.tooling\u002F2.studio","i-lucide-eye",{"title":149,"path":150,"stem":151,"icon":152},"Editor setup","\u002Ftooling\u002Feditor-setup","5.tooling\u002F3.editor-setup","i-lucide-plug",{"title":154,"path":155,"stem":156,"icon":157},"Screenshots","\u002Ftooling\u002Fscreenshots","5.tooling\u002F4.screenshots","i-lucide-camera",{"title":159,"path":160,"stem":161,"icon":162},"Goldens and testing","\u002Ftooling\u002Fgoldens-and-testing","5.tooling\u002F5.goldens-and-testing","i-lucide-flask-conical",{"title":164,"icon":165,"path":166,"stem":167,"children":168,"page":30},"Guides","i-lucide-book-open","\u002Fguides","6.guides",[169,174,179,184],{"title":170,"path":171,"stem":172,"icon":173},"Build your own kit","\u002Fguides\u002Fbuild-your-own-kit","6.guides\u002F1.build-your-own-kit","i-lucide-hammer",{"title":175,"path":176,"stem":177,"icon":178},"The Quiet kit","\u002Fguides\u002Fthe-quiet-kit","6.guides\u002F2.the-quiet-kit","i-lucide-mail-open",{"title":180,"path":181,"stem":182,"icon":183},"Migrating from v0.1","\u002Fguides\u002Fmigrating-from-v0-1","6.guides\u002F3.migrating-from-v0-1","i-lucide-arrow-right-left",{"title":185,"path":186,"stem":187,"icon":188},"Releasing","\u002Fguides\u002Freleasing","6.guides\u002F4.releasing","i-lucide-tag",{"title":190,"icon":191,"path":192,"stem":193,"children":194,"page":30},"Reference","i-lucide-library","\u002Freference","7.reference",[195,200],{"title":196,"path":197,"stem":198,"icon":199},"API reference","\u002Freference\u002Fapi-reference","7.reference\u002F1.api-reference","i-lucide-list-tree",{"title":201,"path":202,"stem":203,"icon":204},"Gallery","\u002Freference\u002Fgallery","7.reference\u002F2.gallery","i-lucide-images",{"id":206,"title":102,"body":207,"description":2506,"extension":2507,"links":2508,"meta":2509,"navigation":2510,"path":103,"seo":2511,"stem":104,"__hash__":2512},"docs\u002F3.kits\u002F7.email-safe-html.md",{"type":208,"value":209,"toc":2498},"minimark",[210,219,224,238,424,431,459,462,466,469,1143,1206,1391,1395,1400,1477,1491,1536,1550,1755,1759,1770,1842,1854,1858,1878,2401,2466,2469,2474,2478,2495],[211,212,213,214,218],"p",{},"A kit owns every tag of its HTML, so it owns the job of writing markup mail clients render: tables for layout, inline styles, images with explicit sizes, and Outlook's conditional comments. lttr helps in three ways. The core functions write the fiddly parts, ",[215,216,217],"code",{},"html\u002Ftemplate"," escapes every value, and a structural lint checks the rendered result.",[220,221,223],"h2",{"id":222},"lint-the-rendered-html","Lint the rendered HTML",[211,225,226,229,230,233,234,237],{},[215,227,228],{},"lttr kit check"," renders every sample of a kit and lints the HTML. ",[215,231,232],{},"lttr lint -kit .\u002Femailkit file.md"," lints the HTML of a file only when its ",[215,235,236],{},"template:"," names one of the kit's samples: it compiles the file like that sample, renders it with the sample's data and lints the result. Any other file is compiled as untyped data only, with no render and no HTML lint. Both exit 1 on any problem, and print compile warnings without failing. The lint reports:",[239,240,241,254],"table",{},[242,243,244],"thead",{},[245,246,247,251],"tr",{},[248,249,250],"th",{},"Rule",[248,252,253],{},"Output from a copy of Plain that breaks it",[255,256,257,275,299,325,341,363,379,389,399,413],"tbody",{},[245,258,259,270],{},[260,261,262,263,266,267],"td",{},"Every ",[215,264,265],{},"\u003Ctable>"," has ",[215,268,269],{},"role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"",[260,271,272],{},[215,273,274],{},"html: \u003Ctable> at byte 8151: missing role=\"presentation\"",[245,276,277,294],{},[260,278,262,279,266,282,285,286,289,290,293],{},[215,280,281],{},"\u003Cimg>",[215,283,284],{},"alt",", ",[215,287,288],{},"width"," and ",[215,291,292],{},"border:0"," in its style",[260,295,296],{},[215,297,298],{},"html: \u003Cimg> at byte 7066: missing alt",[245,300,301,320],{},[260,302,303,304,307,308,311,312,315,316,319],{},"No ",[215,305,306],{},"flex"," or ",[215,309,310],{},"grid"," in a ",[215,313,314],{},"style"," attribute or ",[215,317,318],{},"\u003Cstyle>"," element",[260,321,322],{},[215,323,324],{},"html: css contains \"flex\" at byte 5348",[245,326,327,336],{},[260,328,303,329,332,333],{},[215,330,331],{},"\u003Cdiv>"," styled ",[215,334,335],{},"display:flex",[260,337,338],{},[215,339,340],{},"html: \u003Cdiv> at byte 5540: style has display:flex",[245,342,343,358],{},[260,344,303,345,285,348,285,351,307,354,357],{},[215,346,347],{},"var(",[215,349,350],{},"@import",[215,352,353],{},"\u003Cscript",[215,355,356],{},"{{"," anywhere",[260,359,360],{},[215,361,362],{},"html: contains \"var(\" at byte 5400",[245,364,365,374],{},[260,366,303,367,370,371,373],{},[215,368,369],{},"ZgotmplZ",": a value ",[215,372,217],{}," rejected",[260,375,376],{},[215,377,378],{},"html: contains \"ZgotmplZ\" at byte 10556 (a value html\u002Ftemplate rejected)",[245,380,381,384],{},[260,382,383],{},"Outlook conditional comments open and close in order",[260,385,386],{},[215,387,388],{},"html: mso conditional closed before it was opened at byte 10631",[245,390,391,394],{},[260,392,393],{},"Outlook conditional openers and closers balance",[260,395,396],{},[215,397,398],{},"html: mso conditionals unbalanced: 2 openers, 3 closers",[245,400,401,408],{},[260,402,403,404,407],{},"A kit with ",[215,405,406],{},"dark: true"," declares its colour schemes",[260,409,410],{},[215,411,412],{},"html: missing \u003Cmeta name=\"color-scheme\" content=\"light dark\">",[245,414,415,418],{},[260,416,417],{},"The document is under 100 KB",[260,419,420,421],{},"Rendering stops first: ",[215,422,423],{},"render: html is 110700 bytes; gmail clips at 102 KB",[211,425,426,427,430],{},"In the output, each line starts with the sample's path: ",[215,428,429],{},"emailkit\u002Fsamples\u002Fwelcome.md: html: …",". Markup inside Outlook-only comments is linted too: its tables and images follow the same rules.",[211,432,433,434,437,438,441,442,445,446,449,450,452,453,458],{},"The lint is the public package ",[215,435,436],{},"github.com\u002Fsulv-io\u002Flttr\u002Flint",". ",[215,439,440],{},"lint.Lint(html, lint.Options{Dark: k.Dark()})"," returns one message per violation for a rendered document, and ",[215,443,444],{},"lint.Check(set)"," compiles, renders and lints every sample of an ",[215,447,448],{},"lttr.SampleSet",". For a kit the CLI can load, ",[215,451,228],{}," runs it for you. For a kit that binds Go types, see ",[454,455,457],"a",{"href":456},"\u002Fkits\u002Fgo-types-and-funcs#check-a-typed-kit-from-go","Check a typed kit from Go",".",[211,460,461],{},"Rendering itself fails at 100 KB of HTML and adds a warning to the message above 90 KB, because Gmail clips messages at 102 KB.",[220,463,465],{"id":464},"build-with-presentation-tables","Build with presentation tables",[211,467,468],{},"Plain's layout is tables all the way down: the canvas, an Outlook-only fixed-width table, and the surface that holds one row per component.",[470,471,477],"pre",{"className":472,"code":473,"filename":474,"language":475,"meta":476,"style":476},"language-html shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","\u003Cbody id=\"body\" class=\"pl-canvas\" style=\"margin:0;padding:0;{{style \"background-color\" \"color.canvas\"}}\">\n{{preheader .Preheader}}\n\u003Ctable role=\"presentation\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"{{token \"color.canvas\"}}\" class=\"pl-canvas\">\u003Ctr>\u003Ctd class=\"pl-outer\" align=\"center\" valign=\"top\" style=\"padding:24px 12px;\">\n{{\u002F* Outlook ignores max-width, so it gets a fixed-width table. This is\nwhat msoOpen writes, spelled out because msoOpen takes an int and tokens\nare strings. *\u002F -}}\n{{msoIf}}\u003Ctable role=\"presentation\" width=\"{{token \"size.width\"}}\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\u003Ctr>\u003Ctd>{{msoEnd}}\n\u003Ctable role=\"presentation\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"{{token \"color.surface\"}}\" class=\"pl-surface\" style=\"max-width:{{token \"size.width\"}}px;{{style \"background-color\" \"color.surface\"}}{{style \"border\" (printf \"1px solid %s\" (token \"color.border\"))}}\">\n\u003Ctr>\u003Ctd class=\"pl-px\" align=\"left\" style=\"padding:24px {{token \"size.side\"}}px;\">\n\u003Ctable role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\u003Ctr>\n\u003Ctd valign=\"middle\" style=\"padding:0 10px 0 0;\">\u003Ca href=\"{{var \"site\"}}\">\u003Cimg src=\"{{var \"asset_base\"}}\u002Flogo.png\" alt=\"{{var \"brand\"}}\" width=\"28\" height=\"28\" style=\"display:block;width:28px;height:28px;border:0;\">\u003C\u002Fa>\u003C\u002Ftd>\n\u003Ctd valign=\"middle\" class=\"pl-text\" style=\"{{style \"font-family\" \"font.sans\"}}font-size:{{token \"size.text\"}}px;line-height:20px;font-weight:600;{{style \"color\" \"color.text\"}}\">{{var \"brand\"}}\u003C\u002Ftd>\n\u003C\u002Ftr>\u003C\u002Ftable>\n\u003C\u002Ftd>\u003C\u002Ftr>\n{{.Body}}\n\u003C\u002Ftable>\n{{msoIf}}\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftable>{{msoEnd}}\n\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftable>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n","plain\u002Flayout.html#L14-L33","html","",[215,478,479,532,538,644,650,656,662,722,820,860,897,997,1048,1062,1075,1081,1090,1108,1125,1134],{"__ignoreMap":476},[480,481,484,488,492,496,499,503,506,508,511,514,516,519,522,526,529],"span",{"class":482,"line":483},"line",1,[480,485,487],{"class":486},"sihDN","\u003C",[480,489,491],{"class":490},"s71pN","body",[480,493,495],{"class":494},"sQJpg"," id",[480,497,498],{"class":486},"=",[480,500,502],{"class":501},"sRBGO","\"body\"",[480,504,505],{"class":494}," class",[480,507,498],{"class":486},[480,509,510],{"class":501},"\"pl-canvas\"",[480,512,513],{"class":494}," style",[480,515,498],{"class":486},[480,517,518],{"class":501},"\"margin:0;padding:0;{{style \"",[480,520,521],{"class":494},"background-color",[480,523,525],{"class":524},"s-oVe","\"",[480,527,528],{"class":524}," \"color.canvas\"}}\"",[480,530,531],{"class":486},">\n",[480,533,535],{"class":482,"line":534},2,[480,536,537],{"class":486},"{{preheader .Preheader}}\n",[480,539,541,543,545,548,550,553,556,558,561,564,566,569,572,574,576,579,581,583,586,588,591,594,597,599,601,603,606,608,610,612,614,616,619,622,624,627,630,632,635,637,639,642],{"class":482,"line":540},3,[480,542,487],{"class":486},[480,544,239],{"class":490},[480,546,547],{"class":494}," role",[480,549,498],{"class":486},[480,551,552],{"class":501},"\"presentation\"",[480,554,555],{"class":494}," width",[480,557,498],{"class":486},[480,559,560],{"class":501},"\"100%\"",[480,562,563],{"class":494}," cellpadding",[480,565,498],{"class":486},[480,567,568],{"class":501},"\"0\"",[480,570,571],{"class":494}," cellspacing",[480,573,498],{"class":486},[480,575,568],{"class":501},[480,577,578],{"class":524}," border",[480,580,498],{"class":486},[480,582,568],{"class":501},[480,584,585],{"class":524}," bgcolor",[480,587,498],{"class":486},[480,589,590],{"class":501},"\"{{token \"",[480,592,593],{"class":494},"color.canvas",[480,595,596],{"class":524},"\"}}\"",[480,598,505],{"class":494},[480,600,498],{"class":486},[480,602,510],{"class":501},[480,604,605],{"class":486},">\u003C",[480,607,245],{"class":490},[480,609,605],{"class":486},[480,611,260],{"class":490},[480,613,505],{"class":494},[480,615,498],{"class":486},[480,617,618],{"class":501},"\"pl-outer\"",[480,620,621],{"class":524}," align",[480,623,498],{"class":486},[480,625,626],{"class":501},"\"center\"",[480,628,629],{"class":494}," valign",[480,631,498],{"class":486},[480,633,634],{"class":501},"\"top\"",[480,636,513],{"class":494},[480,638,498],{"class":486},[480,640,641],{"class":501},"\"padding:24px 12px;\"",[480,643,531],{"class":486},[480,645,647],{"class":482,"line":646},4,[480,648,649],{"class":486},"{{\u002F* Outlook ignores max-width, so it gets a fixed-width table. This is\n",[480,651,653],{"class":482,"line":652},5,[480,654,655],{"class":486},"what msoOpen writes, spelled out because msoOpen takes an int and tokens\n",[480,657,659],{"class":482,"line":658},6,[480,660,661],{"class":486},"are strings. *\u002F -}}\n",[480,663,665,668,670,672,674,676,678,680,682,685,687,689,691,693,695,697,699,701,703,705,707,709,711,713,715,717,719],{"class":482,"line":664},7,[480,666,667],{"class":486},"{{msoIf}}\u003C",[480,669,239],{"class":490},[480,671,547],{"class":494},[480,673,498],{"class":486},[480,675,552],{"class":501},[480,677,555],{"class":494},[480,679,498],{"class":486},[480,681,590],{"class":501},[480,683,684],{"class":494},"size.width",[480,686,596],{"class":524},[480,688,621],{"class":524},[480,690,498],{"class":486},[480,692,626],{"class":501},[480,694,563],{"class":494},[480,696,498],{"class":486},[480,698,568],{"class":501},[480,700,571],{"class":494},[480,702,498],{"class":486},[480,704,568],{"class":501},[480,706,578],{"class":524},[480,708,498],{"class":486},[480,710,568],{"class":501},[480,712,605],{"class":486},[480,714,245],{"class":490},[480,716,605],{"class":486},[480,718,260],{"class":490},[480,720,721],{"class":486},">{{msoEnd}}\n",[480,723,725,727,729,731,733,735,737,739,741,743,745,747,749,751,753,755,757,759,761,763,765,768,770,772,774,777,779,781,784,786,789,792,795,798,801,804,807,810,812,815,818],{"class":482,"line":724},8,[480,726,487],{"class":486},[480,728,239],{"class":490},[480,730,547],{"class":494},[480,732,498],{"class":486},[480,734,552],{"class":501},[480,736,555],{"class":494},[480,738,498],{"class":486},[480,740,560],{"class":501},[480,742,563],{"class":494},[480,744,498],{"class":486},[480,746,568],{"class":501},[480,748,571],{"class":494},[480,750,498],{"class":486},[480,752,568],{"class":501},[480,754,578],{"class":524},[480,756,498],{"class":486},[480,758,568],{"class":501},[480,760,585],{"class":524},[480,762,498],{"class":486},[480,764,590],{"class":501},[480,766,767],{"class":494},"color.surface",[480,769,596],{"class":524},[480,771,505],{"class":494},[480,773,498],{"class":486},[480,775,776],{"class":501},"\"pl-surface\"",[480,778,513],{"class":494},[480,780,498],{"class":486},[480,782,783],{"class":501},"\"max-width:{{token \"",[480,785,684],{"class":494},[480,787,788],{"class":524},"\"}}px;{{style",[480,790,791],{"class":524}," \"background-color\"",[480,793,794],{"class":524}," \"color.surface\"}}{{style",[480,796,797],{"class":524}," \"border\"",[480,799,800],{"class":494}," (printf",[480,802,803],{"class":524}," \"1px",[480,805,806],{"class":494}," solid",[480,808,809],{"class":494}," %s",[480,811,525],{"class":524},[480,813,814],{"class":494}," (token",[480,816,817],{"class":524}," \"color.border\"))}}\"",[480,819,531],{"class":486},[480,821,823,825,827,829,831,833,835,838,840,842,845,847,849,852,855,858],{"class":482,"line":822},9,[480,824,487],{"class":486},[480,826,245],{"class":490},[480,828,605],{"class":486},[480,830,260],{"class":490},[480,832,505],{"class":494},[480,834,498],{"class":486},[480,836,837],{"class":501},"\"pl-px\"",[480,839,621],{"class":524},[480,841,498],{"class":486},[480,843,844],{"class":501},"\"left\"",[480,846,513],{"class":494},[480,848,498],{"class":486},[480,850,851],{"class":501},"\"padding:24px {{token \"",[480,853,854],{"class":494},"size.side",[480,856,857],{"class":524},"\"}}px;\"",[480,859,531],{"class":486},[480,861,863,865,867,869,871,873,875,877,879,881,883,885,887,889,891,893,895],{"class":482,"line":862},10,[480,864,487],{"class":486},[480,866,239],{"class":490},[480,868,547],{"class":494},[480,870,498],{"class":486},[480,872,552],{"class":501},[480,874,563],{"class":494},[480,876,498],{"class":486},[480,878,568],{"class":501},[480,880,571],{"class":494},[480,882,498],{"class":486},[480,884,568],{"class":501},[480,886,578],{"class":524},[480,888,498],{"class":486},[480,890,568],{"class":501},[480,892,605],{"class":486},[480,894,245],{"class":490},[480,896,531],{"class":486},[480,898,900,902,904,906,908,911,913,915,918,920,922,925,927,930,933,935,937,940,943,945,947,950,953,956,958,960,963,965,967,969,972,975,977,979,981,983,986,989,991,993,995],{"class":482,"line":899},11,[480,901,487],{"class":486},[480,903,260],{"class":490},[480,905,629],{"class":494},[480,907,498],{"class":486},[480,909,910],{"class":501},"\"middle\"",[480,912,513],{"class":494},[480,914,498],{"class":486},[480,916,917],{"class":501},"\"padding:0 10px 0 0;\"",[480,919,605],{"class":486},[480,921,454],{"class":490},[480,923,924],{"class":494}," href",[480,926,498],{"class":486},[480,928,929],{"class":501},"\"{{var \"",[480,931,932],{"class":494},"site",[480,934,596],{"class":524},[480,936,605],{"class":486},[480,938,939],{"class":490},"img",[480,941,942],{"class":494}," src",[480,944,498],{"class":486},[480,946,929],{"class":501},[480,948,949],{"class":494},"asset_base",[480,951,952],{"class":524},"\"}}\u002Flogo.png\"",[480,954,955],{"class":494}," alt",[480,957,498],{"class":486},[480,959,929],{"class":501},[480,961,962],{"class":494},"brand",[480,964,596],{"class":524},[480,966,555],{"class":494},[480,968,498],{"class":486},[480,970,971],{"class":501},"\"28\"",[480,973,974],{"class":494}," height",[480,976,498],{"class":486},[480,978,971],{"class":501},[480,980,513],{"class":494},[480,982,498],{"class":486},[480,984,985],{"class":501},"\"display:block;width:28px;height:28px;border:0;\"",[480,987,988],{"class":486},">\u003C\u002F",[480,990,454],{"class":490},[480,992,988],{"class":486},[480,994,260],{"class":490},[480,996,531],{"class":486},[480,998,1000,1002,1004,1006,1008,1010,1012,1014,1017,1019,1021,1024,1027,1029,1032,1035,1038,1041,1044,1046],{"class":482,"line":999},12,[480,1001,487],{"class":486},[480,1003,260],{"class":490},[480,1005,629],{"class":494},[480,1007,498],{"class":486},[480,1009,910],{"class":501},[480,1011,505],{"class":494},[480,1013,498],{"class":486},[480,1015,1016],{"class":501},"\"pl-text\"",[480,1018,513],{"class":494},[480,1020,498],{"class":486},[480,1022,1023],{"class":501},"\"{{style \"",[480,1025,1026],{"class":494},"font-family",[480,1028,525],{"class":524},[480,1030,1031],{"class":524}," \"font.sans\"}}font-size:{{token",[480,1033,1034],{"class":524}," \"size.text\"}}px;line-height:20px;font-weight:600;{{style",[480,1036,1037],{"class":524}," \"color\"",[480,1039,1040],{"class":524}," \"color.text\"}}\"",[480,1042,1043],{"class":486},">{{var \"brand\"}}\u003C\u002F",[480,1045,260],{"class":490},[480,1047,531],{"class":486},[480,1049,1051,1054,1056,1058,1060],{"class":482,"line":1050},13,[480,1052,1053],{"class":486},"\u003C\u002F",[480,1055,245],{"class":490},[480,1057,988],{"class":486},[480,1059,239],{"class":490},[480,1061,531],{"class":486},[480,1063,1065,1067,1069,1071,1073],{"class":482,"line":1064},14,[480,1066,1053],{"class":486},[480,1068,260],{"class":490},[480,1070,988],{"class":486},[480,1072,245],{"class":490},[480,1074,531],{"class":486},[480,1076,1078],{"class":482,"line":1077},15,[480,1079,1080],{"class":486},"{{.Body}}\n",[480,1082,1084,1086,1088],{"class":482,"line":1083},16,[480,1085,1053],{"class":486},[480,1087,239],{"class":490},[480,1089,531],{"class":486},[480,1091,1093,1096,1098,1100,1102,1104,1106],{"class":482,"line":1092},17,[480,1094,1095],{"class":486},"{{msoIf}}\u003C\u002F",[480,1097,260],{"class":490},[480,1099,988],{"class":486},[480,1101,245],{"class":490},[480,1103,988],{"class":486},[480,1105,239],{"class":490},[480,1107,721],{"class":486},[480,1109,1111,1113,1115,1117,1119,1121,1123],{"class":482,"line":1110},18,[480,1112,1053],{"class":486},[480,1114,260],{"class":490},[480,1116,988],{"class":486},[480,1118,245],{"class":490},[480,1120,988],{"class":486},[480,1122,239],{"class":490},[480,1124,531],{"class":486},[480,1126,1128,1130,1132],{"class":482,"line":1127},19,[480,1129,1053],{"class":486},[480,1131,491],{"class":490},[480,1133,531],{"class":486},[480,1135,1137,1139,1141],{"class":482,"line":1136},20,[480,1138,1053],{"class":486},[480,1140,475],{"class":490},[480,1142,531],{"class":486},[1144,1145,1146,1168,1189,1198],"ul",{},[1147,1148,1149,1156,1157,1159,1160,1163,1164,1167],"li",{},[1150,1151,1152,1153],"strong",{},"Outlook ignores ",[215,1154,1155],{},"max-width",", so the surface is capped with ",[215,1158,1155],{}," for everyone else and wrapped in a fixed-width table only Outlook sees. The core ",[215,1161,1162],{},"msoOpen"," writes that table from an ",[215,1165,1166],{},"int",". Plain spells it out because its width is a token, and tokens are strings.",[1147,1169,1170,1173,1174,1177,1178,289,1181,1184,1185,1188],{},[1150,1171,1172],{},"Every section is a row"," (",[215,1175,1176],{},"\u003Ctr>\u003Ctd …>","), padded with ",[215,1179,1180],{},".Section.Top",[215,1182,1183],{},".Section.Bottom"," (see ",[454,1186,84],{"href":1187},"\u002Fkits\u002Fcomponent-schemas#space-the-sections",").",[1147,1190,1191,1194,1195,1197],{},[1150,1192,1193],{},"Styles are inline",", on every element, because some clients drop or rewrite ",[215,1196,318],{},". Outlook does not inherit fonts from a table cell, so Plain repeats the font on every block.",[1147,1199,1200,1205],{},[1150,1201,1202,1203],{},"Images carry ",[215,1204,288],{},", because Outlook sizes images from the attribute, not CSS. Plain's image caps it at the content width:",[470,1207,1210],{"className":472,"code":1208,"filename":1209,"language":475,"meta":476,"style":476},"{{- \u002F* Outlook sizes images from the width attribute, so it is capped at the\ncontent width (size.content). *\u002F -}}\n{{- $w := .Attrs.width}}{{if lt $w 1}}{{fail \"width must be at least 1\"}}{{end}}{{if gt $w 496}}{{$w = 496}}{{end -}}\n\u003Ctr>\u003Ctd class=\"pl-px\" align=\"left\" style=\"padding:{{px .Section.Top}} {{token \"size.side\"}}px {{px .Section.Bottom}};\">\n{{- if .Attrs.href}}\u003Ca href=\"{{.Attrs.href}}\">{{end -}}\n\u003Cimg src=\"{{.Attrs.src}}\" alt=\"{{.Attrs.alt}}\" width=\"{{$w}}\" style=\"display:block;width:{{px $w}};max-width:100%;height:auto;border:0;\">\n{{- if .Attrs.href}}\u003C\u002Fa>{{end}}\n{{- if .Attrs.caption}}\u003Cp class=\"pl-muted\" style=\"margin:8px 0 0;{{style \"font-family\" \"font.sans\"}}font-size:{{token \"size.small\"}}px;line-height:{{token \"size.small_line\"}}px;{{style \"color\" \"color.muted\"}}\">{{.Attrs.caption}}\u003C\u002Fp>{{end -}}\n\u003C\u002Ftd>\u003C\u002Ftr>\n","plain\u002Fcomponents\u002Fimage\u002Fhtml.tmpl",[215,1211,1212,1217,1222,1227,1271,1288,1324,1334,1379],{"__ignoreMap":476},[480,1213,1214],{"class":482,"line":483},[480,1215,1216],{"class":486},"{{- \u002F* Outlook sizes images from the width attribute, so it is capped at the\n",[480,1218,1219],{"class":482,"line":534},[480,1220,1221],{"class":486},"content width (size.content). *\u002F -}}\n",[480,1223,1224],{"class":482,"line":540},[480,1225,1226],{"class":486},"{{- $w := .Attrs.width}}{{if lt $w 1}}{{fail \"width must be at least 1\"}}{{end}}{{if gt $w 496}}{{$w = 496}}{{end -}}\n",[480,1228,1229,1231,1233,1235,1237,1239,1241,1243,1245,1247,1249,1251,1253,1256,1258,1261,1264,1267,1269],{"class":482,"line":646},[480,1230,487],{"class":486},[480,1232,245],{"class":490},[480,1234,605],{"class":486},[480,1236,260],{"class":490},[480,1238,505],{"class":494},[480,1240,498],{"class":486},[480,1242,837],{"class":501},[480,1244,621],{"class":524},[480,1246,498],{"class":486},[480,1248,844],{"class":501},[480,1250,513],{"class":494},[480,1252,498],{"class":486},[480,1254,1255],{"class":501},"\"padding:{{px .Section.Top}} {{token \"",[480,1257,854],{"class":494},[480,1259,1260],{"class":524},"\"}}px",[480,1262,1263],{"class":494}," {{px",[480,1265,1266],{"class":494}," .Section.Bottom}};",[480,1268,525],{"class":524},[480,1270,531],{"class":486},[480,1272,1273,1276,1278,1280,1282,1285],{"class":482,"line":652},[480,1274,1275],{"class":486},"{{- if .Attrs.href}}\u003C",[480,1277,454],{"class":490},[480,1279,924],{"class":494},[480,1281,498],{"class":486},[480,1283,1284],{"class":501},"\"{{.Attrs.href}}\"",[480,1286,1287],{"class":486},">{{end -}}\n",[480,1289,1290,1292,1294,1296,1298,1301,1303,1305,1308,1310,1312,1315,1317,1319,1322],{"class":482,"line":658},[480,1291,487],{"class":486},[480,1293,939],{"class":490},[480,1295,942],{"class":494},[480,1297,498],{"class":486},[480,1299,1300],{"class":501},"\"{{.Attrs.src}}\"",[480,1302,955],{"class":494},[480,1304,498],{"class":486},[480,1306,1307],{"class":501},"\"{{.Attrs.alt}}\"",[480,1309,555],{"class":494},[480,1311,498],{"class":486},[480,1313,1314],{"class":501},"\"{{$w}}\"",[480,1316,513],{"class":494},[480,1318,498],{"class":486},[480,1320,1321],{"class":501},"\"display:block;width:{{px $w}};max-width:100%;height:auto;border:0;\"",[480,1323,531],{"class":486},[480,1325,1326,1329,1331],{"class":482,"line":664},[480,1327,1328],{"class":486},"{{- if .Attrs.href}}\u003C\u002F",[480,1330,454],{"class":490},[480,1332,1333],{"class":486},">{{end}}\n",[480,1335,1336,1339,1341,1343,1345,1348,1350,1352,1355,1357,1359,1361,1364,1367,1369,1372,1375,1377],{"class":482,"line":724},[480,1337,1338],{"class":486},"{{- if .Attrs.caption}}\u003C",[480,1340,211],{"class":490},[480,1342,505],{"class":494},[480,1344,498],{"class":486},[480,1346,1347],{"class":501},"\"pl-muted\"",[480,1349,513],{"class":494},[480,1351,498],{"class":486},[480,1353,1354],{"class":501},"\"margin:8px 0 0;{{style \"",[480,1356,1026],{"class":494},[480,1358,525],{"class":524},[480,1360,1031],{"class":524},[480,1362,1363],{"class":524}," \"size.small\"}}px;line-height:{{token",[480,1365,1366],{"class":524}," \"size.small_line\"}}px;{{style",[480,1368,1037],{"class":524},[480,1370,1371],{"class":524}," \"color.muted\"}}\"",[480,1373,1374],{"class":486},">{{.Attrs.caption}}\u003C\u002F",[480,1376,211],{"class":490},[480,1378,1287],{"class":486},[480,1380,1381,1383,1385,1387,1389],{"class":482,"line":822},[480,1382,1053],{"class":486},[480,1384,260],{"class":490},[480,1386,988],{"class":486},[480,1388,245],{"class":490},[480,1390,531],{"class":486},[220,1392,1394],{"id":1393},"serve-outlook","Serve Outlook",[211,1396,1397,1399],{},[215,1398,217],{}," strips HTML comments, including the conditional comments Outlook depends on. The core functions are the only way to write them:",[239,1401,1402,1412],{},[242,1403,1404],{},[245,1405,1406,1409],{},[248,1407,1408],{},"Function",[248,1410,1411],{},"Writes",[255,1413,1414,1426,1438,1458],{},[245,1415,1416,1421],{},[260,1417,1418],{},[215,1419,1420],{},"msoOpen N",[260,1422,1423],{},[215,1424,1425],{},"\u003C!--[if mso]>\u003Ctable role=\"presentation\" width=\"N\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\u003Ctr>\u003Ctd>\u003C![endif]-->",[245,1427,1428,1433],{},[260,1429,1430],{},[215,1431,1432],{},"msoClose",[260,1434,1435],{},[215,1436,1437],{},"\u003C!--[if mso]>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftable>\u003C![endif]-->",[245,1439,1440,1449],{},[260,1441,1442,1445,1446],{},[215,1443,1444],{},"msoIf"," … ",[215,1447,1448],{},"msoEnd",[260,1450,1451,1445,1454,1457],{},[215,1452,1453],{},"\u003C!--[if mso]>",[215,1455,1456],{},"\u003C![endif]-->",": markup only Outlook renders",[245,1459,1460,1468],{},[260,1461,1462,1445,1465],{},[215,1463,1464],{},"notMsoOpen",[215,1466,1467],{},"notMsoClose",[260,1469,1470,1445,1473,1476],{},[215,1471,1472],{},"\u003C!--[if !mso]>\u003C!-->",[215,1474,1475],{},"\u003C!--\u003C![endif]-->",": markup every client but Outlook renders",[211,1478,1479,1482,1483,1486,1487,1490],{},[215,1480,1481],{},"button"," writes a bulletproof pill button: a VML ",[215,1484,1485],{},"v:roundrect"," for Outlook, and an ",[215,1488,1489],{},"\u003Ca>"," styled as an inline block for everyone else.",[1144,1492,1493,1502,1508,1518],{},[1147,1494,1495,1498,1499,458],{},[1150,1496,1497],{},"Signature",": ",[215,1500,1501],{},"button(href template.URL, label, fill, text string, width, height int) template.HTML",[1147,1503,1504,1507],{},[1150,1505,1506],{},"Size",": a width or height of 0 means an estimate: 9px per character of the label plus 48px, and 48px tall. The corners are half the height.",[1147,1509,1510,1513,1514,1517],{},[1150,1511,1512],{},"Type",": the label is set in ",[215,1515,1516],{},"Arial,sans-serif"," at 15px bold, since Outlook ignores web font stacks.",[1147,1519,1520,1498,1523,289,1526,1529,1530,1533,1534,458],{},[1150,1521,1522],{},"Colours",[215,1524,1525],{},"fill",[215,1527,1528],{},"text"," must be a ",[215,1531,1532],{},"#hex"," colour or a colour keyword. Anything else becomes ",[215,1535,369],{},[211,1537,1538,1539,1541,1542,1545,1546,1549],{},"Plain does not use ",[215,1540,1481],{},". Its buttons are a square ",[215,1543,1544],{},"bgcolor"," cell with ",[215,1547,1548],{},"mso-padding-alt",", which Outlook renders as padding:",[470,1551,1554],{"className":472,"code":1552,"filename":1553,"language":475,"meta":476,"style":476},"{{define \"action\"}}\n{{- if .Primary}}\u003Ctable role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\u003Ctr>\u003Ctd class=\"pl-btn\" bgcolor=\"{{token \"color.button\"}}\" style=\"{{style \"background-color\" \"color.button\"}}mso-padding-alt:10px 20px;\">\u003Ca class=\"pl-btn-a\" href=\"{{.Href}}\" style=\"display:inline-block;padding:10px 20px;{{style \"font-family\" \"font.sans\"}}font-size:{{token \"size.text\"}}px;line-height:20px;font-weight:600;{{style \"color\" \"color.on_button\"}}text-decoration:none;\">{{.Label}}\u003C\u002Fa>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftable>\n{{- else}}\u003Ca class=\"pl-link\" href=\"{{.Href}}\" style=\"{{style \"font-family\" \"font.sans\"}}font-size:{{token \"size.text\"}}px;line-height:20px;font-weight:600;{{style \"color\" \"color.accent\"}}text-decoration:none;\">{{.Label}}{{if .Arrow}}&nbsp;&rarr;{{end}}\u003C\u002Fa>\n{{- end}}\n{{- end}}\n","plain\u002Fblocks.html#L37-L41",[215,1555,1556,1561,1693,1746,1751],{"__ignoreMap":476},[480,1557,1558],{"class":482,"line":483},[480,1559,1560],{"class":486},"{{define \"action\"}}\n",[480,1562,1563,1566,1568,1570,1572,1574,1576,1578,1580,1582,1584,1586,1588,1590,1592,1594,1596,1598,1600,1602,1604,1607,1609,1611,1613,1616,1618,1620,1622,1624,1626,1628,1631,1634,1636,1638,1640,1642,1644,1647,1649,1651,1654,1656,1658,1661,1663,1665,1667,1669,1671,1674,1677,1679,1681,1683,1685,1687,1689,1691],{"class":482,"line":534},[480,1564,1565],{"class":486},"{{- if .Primary}}\u003C",[480,1567,239],{"class":490},[480,1569,547],{"class":494},[480,1571,498],{"class":486},[480,1573,552],{"class":501},[480,1575,563],{"class":494},[480,1577,498],{"class":486},[480,1579,568],{"class":501},[480,1581,571],{"class":494},[480,1583,498],{"class":486},[480,1585,568],{"class":501},[480,1587,578],{"class":524},[480,1589,498],{"class":486},[480,1591,568],{"class":501},[480,1593,605],{"class":486},[480,1595,245],{"class":490},[480,1597,605],{"class":486},[480,1599,260],{"class":490},[480,1601,505],{"class":494},[480,1603,498],{"class":486},[480,1605,1606],{"class":501},"\"pl-btn\"",[480,1608,585],{"class":524},[480,1610,498],{"class":486},[480,1612,590],{"class":501},[480,1614,1615],{"class":494},"color.button",[480,1617,596],{"class":524},[480,1619,513],{"class":494},[480,1621,498],{"class":486},[480,1623,1023],{"class":501},[480,1625,521],{"class":494},[480,1627,525],{"class":524},[480,1629,1630],{"class":524}," \"color.button\"}}mso-padding-alt:10px",[480,1632,1633],{"class":494}," 20px;",[480,1635,525],{"class":524},[480,1637,605],{"class":486},[480,1639,454],{"class":490},[480,1641,505],{"class":494},[480,1643,498],{"class":486},[480,1645,1646],{"class":501},"\"pl-btn-a\"",[480,1648,924],{"class":494},[480,1650,498],{"class":486},[480,1652,1653],{"class":501},"\"{{.Href}}\"",[480,1655,513],{"class":494},[480,1657,498],{"class":486},[480,1659,1660],{"class":501},"\"display:inline-block;padding:10px 20px;{{style \"",[480,1662,1026],{"class":494},[480,1664,525],{"class":524},[480,1666,1031],{"class":524},[480,1668,1034],{"class":524},[480,1670,1037],{"class":524},[480,1672,1673],{"class":524}," \"color.on_button\"}}text-decoration:none;\"",[480,1675,1676],{"class":486},">{{.Label}}\u003C\u002F",[480,1678,454],{"class":490},[480,1680,988],{"class":486},[480,1682,260],{"class":490},[480,1684,988],{"class":486},[480,1686,245],{"class":490},[480,1688,988],{"class":486},[480,1690,239],{"class":490},[480,1692,531],{"class":486},[480,1694,1695,1698,1700,1702,1704,1707,1709,1711,1713,1715,1717,1719,1721,1723,1725,1727,1729,1732,1735,1739,1742,1744],{"class":482,"line":540},[480,1696,1697],{"class":486},"{{- else}}\u003C",[480,1699,454],{"class":490},[480,1701,505],{"class":494},[480,1703,498],{"class":486},[480,1705,1706],{"class":501},"\"pl-link\"",[480,1708,924],{"class":494},[480,1710,498],{"class":486},[480,1712,1653],{"class":501},[480,1714,513],{"class":494},[480,1716,498],{"class":486},[480,1718,1023],{"class":501},[480,1720,1026],{"class":494},[480,1722,525],{"class":524},[480,1724,1031],{"class":524},[480,1726,1034],{"class":524},[480,1728,1037],{"class":524},[480,1730,1731],{"class":524}," \"color.accent\"}}text-decoration:none;\"",[480,1733,1734],{"class":486},">{{.Label}}{{if .Arrow}}",[480,1736,1738],{"class":1737},"sFaxo","&nbsp;&rarr;",[480,1740,1741],{"class":486},"{{end}}\u003C\u002F",[480,1743,454],{"class":490},[480,1745,531],{"class":486},[480,1747,1748],{"class":482,"line":646},[480,1749,1750],{"class":486},"{{- end}}\n",[480,1752,1753],{"class":482,"line":652},[480,1754,1750],{"class":486},[220,1756,1758],{"id":1757},"check-every-url","Check every URL",[211,1760,1761,1762,1765,1766,1769],{},"lttr checks every URL that comes from the Markdown or the recipient before a template sees it: ",[215,1763,1764],{},"url"," attributes and frontmatter keys, links, action targets, image sources and the unsubscribe URL. A URL from anywhere else, such as a string in a bound Go value or one built in the template, should go through ",[215,1767,1768],{},"{{url …}}",", which applies the same rules:",[239,1771,1772,1782],{},[242,1773,1774],{},[245,1775,1776,1779],{},[248,1777,1778],{},"URL",[248,1780,1781],{},"Result",[255,1783,1784,1798,1811,1823,1831],{},[245,1785,1786,1795],{},[260,1787,1788,307,1791,1794],{},[215,1789,1790],{},"https:\u002F\u002F",[215,1792,1793],{},"http:\u002F\u002F"," with a host",[260,1796,1797],{},"Allowed",[245,1799,1800,1809],{},[260,1801,1802,307,1805,1808],{},[215,1803,1804],{},"mailto:",[215,1806,1807],{},"tel:"," with an address",[260,1810,1797],{},[245,1812,1813,1816],{},[260,1814,1815],{},"A relative URL",[260,1817,1818,1819,1822],{},"Allowed only with ",[215,1820,1821],{},"Config.AllowRelativeURLs",", for previews",[245,1824,1825,1828],{},[260,1826,1827],{},"Empty, or with whitespace or a control character",[260,1829,1830],{},"An error",[245,1832,1833,1836],{},[260,1834,1835],{},"Any other scheme",[260,1837,1838,1839],{},"An error, such as ",[215,1840,1841],{},"url \"javascript:alert(1)\": scheme \"javascript\" not allowed",[211,1843,1844,1845,1848,1849,1851,1852,458],{},"A failed check is a render error, never a silent ",[215,1846,1847],{},"#",". A passing URL keeps its bytes, so ",[215,1850,1807],{}," links survive ",[215,1853,217],{},[220,1855,1857],{"id":1856},"support-dark-mode","Support dark mode",[211,1859,1860,1862,1863,1865,1866,1869,1870,1873,1874,1877],{},[215,1861,406],{}," in ",[215,1864,79],{}," says the kit has a dark palette. The lint then requires the ",[215,1867,1868],{},"color-scheme"," meta, which Plain writes in its head (",[215,1871,1872],{},"document"," writes it for kits that use it). The light palette is inline; the dark one lives in ",[215,1875,1876],{},"styles.css",", keyed to classes on the elements:",[470,1879,1884],{"className":1880,"code":1881,"filename":1882,"language":1883,"meta":476,"style":476},"language-css shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","@media (prefers-color-scheme:dark){\n.pl-canvas{background-color:{{dark \"color.canvas\"}}!important}\n.pl-surface{background-color:{{dark \"color.surface\"}}!important;border-color:{{dark \"color.border\"}}!important}\n.pl-rule{border-color:{{dark \"color.border\"}}!important}\n.pl-text{color:{{dark \"color.text\"}}!important}\n.pl-muted{color:{{dark \"color.muted\"}}!important}\n.pl-text a,.pl-muted a,.pl-link{color:{{dark \"color.accent\"}}!important}\n.pl-text code{background-color:{{dark \"color.subtle\"}}!important}\n.pl-btn{background-color:{{dark \"color.button\"}}!important;border-color:{{dark \"color.button\"}}!important}\n.pl-btn .pl-btn-a{color:{{dark \"color.on_button\"}}!important}\n.pl-text s,.pl-muted s{color:{{dark \"color.muted\"}}!important}\n}\n[data-ogsc] .pl-text{color:{{dark \"color.text\"}}!important}\n[data-ogsc] .pl-muted{color:{{dark \"color.muted\"}}!important}\n[data-ogsc] .pl-text a,[data-ogsc] .pl-muted a,[data-ogsc] .pl-link{color:{{dark \"color.accent\"}}!important}\n[data-ogsc] .pl-btn .pl-btn-a{color:{{dark \"color.on_button\"}}!important}\n[data-ogsc] .pl-text s{color:{{dark \"color.muted\"}}!important}\n[data-ogsc] .pl-rule{border-color:{{dark \"color.border\"}}!important}\n[data-ogsb] .pl-canvas{background-color:{{dark \"color.canvas\"}}!important}\n[data-ogsb] .pl-surface{background-color:{{dark \"color.surface\"}}!important}\n[data-ogsb] .pl-btn{background-color:{{dark \"color.button\"}}!important}\n[data-ogsb] .pl-text code{background-color:{{dark \"color.subtle\"}}!important}\n","plain\u002Fstyles.css#L17-L38","css",[215,1885,1886,1895,1918,1958,1976,1994,2012,2044,2064,2098,2118,2143,2148,2173,2195,2238,2262,2286,2308,2331,2353,2376],{"__ignoreMap":476},[480,1887,1888,1892],{"class":482,"line":483},[480,1889,1891],{"class":1890},"s1Q0q","@media",[480,1893,1894],{"class":486}," (prefers-color-scheme:dark){\n",[480,1896,1897,1900,1903,1906,1909,1912,1915],{"class":482,"line":534},[480,1898,1899],{"class":494},".pl-canvas",[480,1901,1902],{"class":486},"{",[480,1904,521],{"class":1905},"sTl1q",[480,1907,1908],{"class":486},":{{",[480,1910,1911],{"class":1905},"dark",[480,1913,1914],{"class":501}," \"color.canvas\"",[480,1916,1917],{"class":486},"}}!important}\n",[480,1919,1920,1923,1925,1927,1929,1931,1934,1937,1940,1942,1944,1947,1950,1952,1955],{"class":482,"line":540},[480,1921,1922],{"class":494},".pl-surface",[480,1924,1902],{"class":486},[480,1926,521],{"class":1905},[480,1928,1908],{"class":486},[480,1930,1911],{"class":1905},[480,1932,1933],{"class":501}," \"color.surface\"",[480,1935,1936],{"class":486},"}}!important;",[480,1938,1939],{"class":490},"border-color",[480,1941,1908],{"class":486},[480,1943,1911],{"class":1905},[480,1945,1946],{"class":486}," \"",[480,1948,1949],{"class":1905},"color",[480,1951,458],{"class":486},[480,1953,1954],{"class":1905},"border",[480,1956,1957],{"class":486},"\"}}!important}\n",[480,1959,1960,1963,1965,1967,1969,1971,1974],{"class":482,"line":646},[480,1961,1962],{"class":494},".pl-rule",[480,1964,1902],{"class":486},[480,1966,1939],{"class":1905},[480,1968,1908],{"class":486},[480,1970,1911],{"class":1905},[480,1972,1973],{"class":501}," \"color.border\"",[480,1975,1917],{"class":486},[480,1977,1978,1981,1983,1985,1987,1989,1992],{"class":482,"line":652},[480,1979,1980],{"class":494},".pl-text",[480,1982,1902],{"class":486},[480,1984,1949],{"class":1905},[480,1986,1908],{"class":486},[480,1988,1911],{"class":1905},[480,1990,1991],{"class":501}," \"color.text\"",[480,1993,1917],{"class":486},[480,1995,1996,1999,2001,2003,2005,2007,2010],{"class":482,"line":658},[480,1997,1998],{"class":494},".pl-muted",[480,2000,1902],{"class":486},[480,2002,1949],{"class":1905},[480,2004,1908],{"class":486},[480,2006,1911],{"class":1905},[480,2008,2009],{"class":501}," \"color.muted\"",[480,2011,1917],{"class":486},[480,2013,2014,2016,2019,2022,2024,2026,2028,2031,2033,2035,2037,2039,2042],{"class":482,"line":664},[480,2015,1980],{"class":494},[480,2017,2018],{"class":490}," a",[480,2020,2021],{"class":486},",",[480,2023,1998],{"class":494},[480,2025,2018],{"class":490},[480,2027,2021],{"class":486},[480,2029,2030],{"class":494},".pl-link",[480,2032,1902],{"class":486},[480,2034,1949],{"class":1905},[480,2036,1908],{"class":486},[480,2038,1911],{"class":1905},[480,2040,2041],{"class":501}," \"color.accent\"",[480,2043,1917],{"class":486},[480,2045,2046,2048,2051,2053,2055,2057,2059,2062],{"class":482,"line":724},[480,2047,1980],{"class":494},[480,2049,2050],{"class":490}," code",[480,2052,1902],{"class":486},[480,2054,521],{"class":1905},[480,2056,1908],{"class":486},[480,2058,1911],{"class":1905},[480,2060,2061],{"class":501}," \"color.subtle\"",[480,2063,1917],{"class":486},[480,2065,2066,2069,2071,2073,2075,2077,2080,2082,2084,2086,2088,2090,2092,2094,2096],{"class":482,"line":822},[480,2067,2068],{"class":494},".pl-btn",[480,2070,1902],{"class":486},[480,2072,521],{"class":1905},[480,2074,1908],{"class":486},[480,2076,1911],{"class":1905},[480,2078,2079],{"class":501}," \"color.button\"",[480,2081,1936],{"class":486},[480,2083,1939],{"class":490},[480,2085,1908],{"class":486},[480,2087,1911],{"class":1905},[480,2089,1946],{"class":486},[480,2091,1949],{"class":1905},[480,2093,458],{"class":486},[480,2095,1481],{"class":1905},[480,2097,1957],{"class":486},[480,2099,2100,2102,2105,2107,2109,2111,2113,2116],{"class":482,"line":862},[480,2101,2068],{"class":494},[480,2103,2104],{"class":494}," .pl-btn-a",[480,2106,1902],{"class":486},[480,2108,1949],{"class":1905},[480,2110,1908],{"class":486},[480,2112,1911],{"class":1905},[480,2114,2115],{"class":501}," \"color.on_button\"",[480,2117,1917],{"class":486},[480,2119,2120,2122,2125,2127,2129,2131,2133,2135,2137,2139,2141],{"class":482,"line":899},[480,2121,1980],{"class":494},[480,2123,2124],{"class":490}," s",[480,2126,2021],{"class":486},[480,2128,1998],{"class":494},[480,2130,2124],{"class":490},[480,2132,1902],{"class":486},[480,2134,1949],{"class":1905},[480,2136,1908],{"class":486},[480,2138,1911],{"class":1905},[480,2140,2009],{"class":501},[480,2142,1917],{"class":486},[480,2144,2145],{"class":482,"line":999},[480,2146,2147],{"class":486},"}\n",[480,2149,2150,2153,2156,2159,2161,2163,2165,2167,2169,2171],{"class":482,"line":1050},[480,2151,2152],{"class":486},"[",[480,2154,2155],{"class":494},"data-ogsc",[480,2157,2158],{"class":486},"] ",[480,2160,1980],{"class":494},[480,2162,1902],{"class":486},[480,2164,1949],{"class":1905},[480,2166,1908],{"class":486},[480,2168,1911],{"class":1905},[480,2170,1991],{"class":501},[480,2172,1917],{"class":486},[480,2174,2175,2177,2179,2181,2183,2185,2187,2189,2191,2193],{"class":482,"line":1064},[480,2176,2152],{"class":486},[480,2178,2155],{"class":494},[480,2180,2158],{"class":486},[480,2182,1998],{"class":494},[480,2184,1902],{"class":486},[480,2186,1949],{"class":1905},[480,2188,1908],{"class":486},[480,2190,1911],{"class":1905},[480,2192,2009],{"class":501},[480,2194,1917],{"class":486},[480,2196,2197,2199,2201,2203,2205,2207,2210,2212,2214,2216,2218,2220,2222,2224,2226,2228,2230,2232,2234,2236],{"class":482,"line":1077},[480,2198,2152],{"class":486},[480,2200,2155],{"class":494},[480,2202,2158],{"class":486},[480,2204,1980],{"class":494},[480,2206,2018],{"class":490},[480,2208,2209],{"class":486},",[",[480,2211,2155],{"class":494},[480,2213,2158],{"class":486},[480,2215,1998],{"class":494},[480,2217,2018],{"class":490},[480,2219,2209],{"class":486},[480,2221,2155],{"class":494},[480,2223,2158],{"class":486},[480,2225,2030],{"class":494},[480,2227,1902],{"class":486},[480,2229,1949],{"class":1905},[480,2231,1908],{"class":486},[480,2233,1911],{"class":1905},[480,2235,2041],{"class":501},[480,2237,1917],{"class":486},[480,2239,2240,2242,2244,2246,2248,2250,2252,2254,2256,2258,2260],{"class":482,"line":1083},[480,2241,2152],{"class":486},[480,2243,2155],{"class":494},[480,2245,2158],{"class":486},[480,2247,2068],{"class":494},[480,2249,2104],{"class":494},[480,2251,1902],{"class":486},[480,2253,1949],{"class":1905},[480,2255,1908],{"class":486},[480,2257,1911],{"class":1905},[480,2259,2115],{"class":501},[480,2261,1917],{"class":486},[480,2263,2264,2266,2268,2270,2272,2274,2276,2278,2280,2282,2284],{"class":482,"line":1092},[480,2265,2152],{"class":486},[480,2267,2155],{"class":494},[480,2269,2158],{"class":486},[480,2271,1980],{"class":494},[480,2273,2124],{"class":490},[480,2275,1902],{"class":486},[480,2277,1949],{"class":1905},[480,2279,1908],{"class":486},[480,2281,1911],{"class":1905},[480,2283,2009],{"class":501},[480,2285,1917],{"class":486},[480,2287,2288,2290,2292,2294,2296,2298,2300,2302,2304,2306],{"class":482,"line":1110},[480,2289,2152],{"class":486},[480,2291,2155],{"class":494},[480,2293,2158],{"class":486},[480,2295,1962],{"class":494},[480,2297,1902],{"class":486},[480,2299,1939],{"class":1905},[480,2301,1908],{"class":486},[480,2303,1911],{"class":1905},[480,2305,1973],{"class":501},[480,2307,1917],{"class":486},[480,2309,2310,2312,2315,2317,2319,2321,2323,2325,2327,2329],{"class":482,"line":1127},[480,2311,2152],{"class":486},[480,2313,2314],{"class":494},"data-ogsb",[480,2316,2158],{"class":486},[480,2318,1899],{"class":494},[480,2320,1902],{"class":486},[480,2322,521],{"class":1905},[480,2324,1908],{"class":486},[480,2326,1911],{"class":1905},[480,2328,1914],{"class":501},[480,2330,1917],{"class":486},[480,2332,2333,2335,2337,2339,2341,2343,2345,2347,2349,2351],{"class":482,"line":1136},[480,2334,2152],{"class":486},[480,2336,2314],{"class":494},[480,2338,2158],{"class":486},[480,2340,1922],{"class":494},[480,2342,1902],{"class":486},[480,2344,521],{"class":1905},[480,2346,1908],{"class":486},[480,2348,1911],{"class":1905},[480,2350,1933],{"class":501},[480,2352,1917],{"class":486},[480,2354,2356,2358,2360,2362,2364,2366,2368,2370,2372,2374],{"class":482,"line":2355},21,[480,2357,2152],{"class":486},[480,2359,2314],{"class":494},[480,2361,2158],{"class":486},[480,2363,2068],{"class":494},[480,2365,1902],{"class":486},[480,2367,521],{"class":1905},[480,2369,1908],{"class":486},[480,2371,1911],{"class":1905},[480,2373,2079],{"class":501},[480,2375,1917],{"class":486},[480,2377,2379,2381,2383,2385,2387,2389,2391,2393,2395,2397,2399],{"class":482,"line":2378},22,[480,2380,2152],{"class":486},[480,2382,2314],{"class":494},[480,2384,2158],{"class":486},[480,2386,1980],{"class":494},[480,2388,2050],{"class":490},[480,2390,1902],{"class":486},[480,2392,521],{"class":1905},[480,2394,1908],{"class":486},[480,2396,1911],{"class":1905},[480,2398,2061],{"class":501},[480,2400,1917],{"class":486},[1144,2402,2403,2423,2435,2441],{},[1147,2404,2405,2411,2412,2414,2415,2418,2419,2422],{},[1150,2406,2407,2408],{},"Clients that support ",[215,2409,2410],{},"prefers-color-scheme",", Apple Mail among them, apply the ",[215,2413,1891],{}," block. Each ",[215,2416,2417],{},"pl-*"," class maps to a dark token with ",[215,2420,2421],{},"!important",", which beats the inline light style.",[1147,2424,2425,2428,2429,2431,2432,2434],{},[1150,2426,2427],{},"Outlook.com"," recolours emails itself and marks what it changed with ",[215,2430,2155],{}," (text) and ",[215,2433,2314],{}," (backgrounds). Repeating the rules under those selectors makes it use the kit's dark palette instead of its own guesses.",[1147,2436,2437,2440],{},[1150,2438,2439],{},"Clients that read neither"," keep the light palette.",[1147,2442,2443,2448,2449,2452,2453,311,2456,2458,2459,2461,2462,2465],{},[1150,2444,2445],{},[215,2446,2447],{},"{{dark \"color.canvas\"}}"," gives a colour token's dark value. The templates write the inline light value on the same element with ",[215,2450,2451],{},"{{style \"color\" \"color.text\"}}"," (or ",[215,2454,2455],{},"{{token}}",[215,2457,1544],{}," attribute), and a class connects the two. ",[215,2460,1876],{}," is plain text, so a dark value in any CSS colour syntax, ",[215,2463,2464],{},"hsl()"," included, is written as is.",[211,2467,2468],{},"Switch this preview to dark to see Plain's dark palette. The preview's scheme is its own toggle, independent of this site's:",[2470,2471],"email-preview",{"kit":2472,"name":2473},"plain","01-receipt-free",[220,2475,2477],{"id":2476},"next-steps","Next steps",[1144,2479,2480,2485],{},[1147,2481,2482,2484],{},[454,2483,107],{"href":108},": the other half of every message.",[1147,2486,2487,1498,2490,289,2492,458],{},[454,2488,2489],{"href":140},"CLI",[215,2491,228],{},[215,2493,2494],{},"lttr lint",[314,2496,2497],{},"html pre.shiki code .sihDN, html code.shiki .sihDN{--shiki-light:#0E1116;--shiki-default:#0E1116;--shiki-dark:#E1E4E8}html pre.shiki code .s71pN, html code.shiki .s71pN{--shiki-light:#024C1A;--shiki-default:#024C1A;--shiki-dark:#85E89D}html pre.shiki code .sQJpg, html code.shiki .sQJpg{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#B392F0}html pre.shiki code .sRBGO, html code.shiki .sRBGO{--shiki-light:#032563;--shiki-default:#032563;--shiki-dark:#9ECBFF}html pre.shiki code .s-oVe, html code.shiki .s-oVe{--shiki-light:#6E011A;--shiki-light-font-style:italic;--shiki-default:#6E011A;--shiki-default-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sFaxo, html code.shiki .sFaxo{--shiki-light:#A0111F;--shiki-default:#A0111F;--shiki-dark:#79B8FF}html pre.shiki code .s1Q0q, html code.shiki .s1Q0q{--shiki-light:#A0111F;--shiki-default:#A0111F;--shiki-dark:#F97583}html pre.shiki code .sTl1q, html code.shiki .sTl1q{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#79B8FF}",{"title":476,"searchDepth":534,"depth":534,"links":2499},[2500,2501,2502,2503,2504,2505],{"id":222,"depth":534,"text":223},{"id":464,"depth":534,"text":465},{"id":1393,"depth":534,"text":1394},{"id":1757,"depth":534,"text":1758},{"id":1856,"depth":534,"text":1857},{"id":2476,"depth":534,"text":2477},"The rules a kit's HTML must follow to survive mail clients, the lint that enforces them, the Outlook helpers, and how Plain handles dark mode.","md",null,{},{"icon":105},{"title":102,"description":2506},"tlNFjuU5pBOTC7r-OLAwWc-2UIyxL_1a3gRnAvxH_v8",[2514,2516],{"title":97,"path":98,"stem":99,"description":2515,"icon":100,"children":-1},"Register the Go types components bind with kit.Types, add template functions with kit.Funcs, and check such a kit from Go, since the CLI cannot load it.",{"title":107,"path":108,"stem":109,"description":2517,"icon":110,"children":-1},"How a kit writes the plain-text part — text templates, the core block forms and blocks.txt, separators, the wrapping and table helpers, and how the parts are joined.",1790467458233]