[{"data":1,"prerenderedAt":2326},["ShallowReactive",2],{"navigation_docs":3,"-kits-kit-yaml":205,"-kits-kit-yaml-surround":2321},[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":79,"body":207,"description":2314,"extension":2315,"links":2316,"meta":2317,"navigation":2318,"path":80,"seo":2319,"stem":81,"__hash__":2320},"docs\u002F3.kits\u002F2.kit-yaml.md",{"type":208,"value":209,"toc":2300},"minimark",[210,217,222,427,430,441,445,448,540,554,558,569,1050,1119,1124,1153,1159,1165,1407,1437,1443,1496,1502,1515,1519,1522,1643,1657,1661,1664,1726,1769,1778,1782,1793,2013,2074,2078,2095,2101,2110,2114,2119,2148,2155,2161,2165,2169,2217,2223,2264,2269,2273,2297],[211,212,213,216],"p",{},[214,215,79],"code",{}," sits at the root of the kit. It names the kit and holds everything the templates share: design tokens, copy constants, the styles of Markdown inlines, and the rules and Go types that apply to every template.",[218,219,221],"h2",{"id":220},"know-the-keys","Know the keys",[223,224,225,241],"table",{},[226,227,228],"thead",{},[229,230,231,235,238],"tr",{},[232,233,234],"th",{},"Key",[232,236,237],{},"Value",[232,239,240],{},"What it does",[242,243,244,266,283,296,319,332,349,364,376,402,415],"tbody",{},[229,245,246,252,255],{},[247,248,249],"td",{},[214,250,251],{},"name",[247,253,254],{},"string, required",[247,256,257,258,261,262,265],{},"The kit's name (",[214,259,260],{},"Kit.Name()","). ",[214,263,264],{},"lttr kit check"," prints it",[229,267,268,273,276],{},[247,269,270],{},[214,271,272],{},"version",[247,274,275],{},"integer",[247,277,278,279,282],{},"Your kit's version (",[214,280,281],{},"Kit.Version()",", 0 when absent). lttr gives it no meaning",[229,284,285,290,293],{},[247,286,287],{},[214,288,289],{},"default",[247,291,292],{},"a component name",[247,294,295],{},"The component loose top-level Markdown goes into. Without it, loose Markdown is a compile error",[229,297,298,303,312],{},[247,299,300],{},[214,301,302],{},"dark",[247,304,305,308,309],{},[214,306,307],{},"true"," or ",[214,310,311],{},"false",[247,313,314,315,318],{},"The kit supports dark mode. The lint then requires the ",[214,316,317],{},"color-scheme"," meta",[229,320,321,326,329],{},[247,322,323],{},[214,324,325],{},"tokens",[247,327,328],{},"mapping",[247,330,331],{},"Design values: colours, fonts, sizes",[229,333,334,339,342],{},[247,335,336],{},[214,337,338],{},"vars",[247,340,341],{},"mapping of strings",[247,343,344,345,348],{},"Copy constants such as the brand name. ",[214,346,347],{},"Config.Vars"," overrides them",[229,350,351,356,358],{},[247,352,353],{},[214,354,355],{},"spans",[247,357,328],{},[247,359,360,361],{},"The classes allowed in ",[214,362,363],{},"[text]{.class}",[229,365,366,371,373],{},[247,367,368],{},[214,369,370],{},"inline",[247,372,328],{},[247,374,375],{},"The styles of links, code, strong, em and strike",[229,377,378,383,392],{},[247,379,380],{},[214,381,382],{},"limits",[247,384,385,388,389],{},[214,386,387],{},"button",", ",[214,390,391],{},"link",[247,393,394,395,398,399],{},"Template-wide caps on ",[214,396,397],{},":button"," and ",[214,400,401],{},":link",[229,403,404,409,412],{},[247,405,406],{},[214,407,408],{},"types",[247,410,411],{},"list",[247,413,414],{},"The Go types components may bind",[229,416,417,422,424],{},[247,418,419],{},[214,420,421],{},"frontmatter",[247,423,328],{},[247,425,426],{},"The kit's own frontmatter keys, typed like attributes",[211,428,429],{},"Any other key is a load error at its position:",[431,432,439],"pre",{"className":433,"code":435,"filename":436,"language":437,"meta":438},[434],"language-text","$ lttr kit check .\u002Femailkit\nemailkit\u002Fkit.yaml:11:1: unknown key \"colour\"\n","Terminal","text","",[214,440,435],{"__ignoreMap":438},[218,442,444],{"id":443},"name-the-kit","Name the kit",[211,446,447],{},"Plain's header sets the name, the default component and dark mode:",[431,449,454],{"className":450,"code":451,"filename":452,"language":453,"meta":438,"style":438},"language-yaml shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark","# Plain: a small, neutral starter kit for lttr.\n#\n# One left-aligned column on a light canvas, a system sans-serif stack,\n# square buttons and light\u002Fdark colours. Copy it with `lttr kit init` and\n# change anything: tokens here, markup in layout.html, blocks.html and\n# components\u002F*\u002Fhtml.tmpl.\nname: plain\nversion: 1\ndefault: section\ndark: true\n","plain\u002Fkit.yaml#L1-L10","yaml",[214,455,456,465,471,477,483,489,495,509,520,530],{"__ignoreMap":438},[457,458,461],"span",{"class":459,"line":460},"line",1,[457,462,464],{"class":463},"sBq4M","# Plain: a small, neutral starter kit for lttr.\n",[457,466,468],{"class":459,"line":467},2,[457,469,470],{"class":463},"#\n",[457,472,474],{"class":459,"line":473},3,[457,475,476],{"class":463},"# One left-aligned column on a light canvas, a system sans-serif stack,\n",[457,478,480],{"class":459,"line":479},4,[457,481,482],{"class":463},"# square buttons and light\u002Fdark colours. Copy it with `lttr kit init` and\n",[457,484,486],{"class":459,"line":485},5,[457,487,488],{"class":463},"# change anything: tokens here, markup in layout.html, blocks.html and\n",[457,490,492],{"class":459,"line":491},6,[457,493,494],{"class":463},"# components\u002F*\u002Fhtml.tmpl.\n",[457,496,498,501,505],{"class":459,"line":497},7,[457,499,251],{"class":500},"s71pN",[457,502,504],{"class":503},"sihDN",": ",[457,506,508],{"class":507},"sRBGO","plain\n",[457,510,512,514,516],{"class":459,"line":511},8,[457,513,272],{"class":500},[457,515,504],{"class":503},[457,517,519],{"class":518},"sTl1q","1\n",[457,521,523,525,527],{"class":459,"line":522},9,[457,524,289],{"class":500},[457,526,504],{"class":503},[457,528,529],{"class":507},"section\n",[457,531,533,535,537],{"class":459,"line":532},10,[457,534,302],{"class":500},[457,536,504],{"class":503},[457,538,539],{"class":518},"true\n",[211,541,542,544,545,548,549,553],{},[214,543,289],{}," must name one of the kit's components. ",[214,546,547],{},"dark: true"," means the kit carries a dark palette: see ",[550,551,102],"a",{"href":552},"\u002Fkits\u002Femail-safe-html#support-dark-mode",".",[218,555,557],{"id":556},"define-tokens","Define tokens",[211,559,560,561,564,565,568],{},"Tokens are the design values templates read with ",[214,562,563],{},"{{token \"name\"}}",", or through ",[214,566,567],{},"{{style \"prop\" \"name\"}}",". Plain's tokens are colours, two font stacks and sizes:",[431,570,573],{"className":450,"code":571,"filename":572,"language":453,"meta":438,"style":438},"tokens:\n  # Colour tokens may use any CSS colour syntax: a hex value, or a\n  # function like rgb(47 111 235), rgba(31,35,40,0.9) or hsl(217 90% 70%).\n  color.canvas:  { light: \"#F6F8FA\", dark: \"#010409\" }\n  color.surface: { light: \"#FFFFFF\", dark: \"#0D1117\" }\n  color.text:    { light: \"#1F2328\", dark: \"#E6EDF3\" }\n  color.muted:   { light: \"#59636E\", dark: \"#9198A1\" }\n  color.accent:  { light: \"#2F6FEB\", dark: \"#4493F8\" }\n  color.button:  { light: \"#2F6FEB\", dark: \"#2F6FEB\" }\n  color.on_button: { light: \"#FFFFFF\", dark: \"#FFFFFF\" }\n  color.border:  { light: \"#D1D9E0\", dark: \"#3D444D\" }\n  color.subtle:  { light: \"#EFF2F5\", dark: \"#262C36\" }\n  # Quote family names with spaces in single quotes: \"'Helvetica Neue',Arial,sans-serif\".\n  font.sans: \"-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif\"\n  font.mono: \"ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"\n  # Sizes in px. Templates cannot do arithmetic, so derived sizes get\n  # their own token: keep size.content equal to size.width - 2 * size.side.\n  size.width: 560        # the message column\n  size.side: 32          # side padding of every component\n  size.side_mobile: 16   # side padding below 600px\n  size.content: 496      # size.width - 2 * size.side: the widest image\n  size.block: 16         # space below every Markdown block\n  size.gap: 32           # space below a component with no blocks\n  size.text: 16\n  size.line: 24\n  size.small: 13\n  size.small_line: 20\n  size.h1: 28\n  size.h1_line: 36\n  size.h1_mobile: 24\n  size.h1_mobile_line: 32\n  size.h2: 20\n  size.h2_line: 28\n","plain\u002Fkit.yaml#L12-L44",[214,574,575,582,587,592,620,646,672,698,723,746,769,795,821,827,838,849,855,861,875,889,903,917,930,943,954,965,976,987,998,1009,1019,1030,1040],{"__ignoreMap":438},[457,576,577,579],{"class":459,"line":460},[457,578,325],{"class":500},[457,580,581],{"class":503},":\n",[457,583,584],{"class":459,"line":467},[457,585,586],{"class":463},"  # Colour tokens may use any CSS colour syntax: a hex value, or a\n",[457,588,589],{"class":459,"line":473},[457,590,591],{"class":463},"  # function like rgb(47 111 235), rgba(31,35,40,0.9) or hsl(217 90% 70%).\n",[457,593,594,597,600,603,605,608,610,612,614,617],{"class":459,"line":479},[457,595,596],{"class":500},"  color.canvas",[457,598,599],{"class":503},":  { ",[457,601,602],{"class":500},"light",[457,604,504],{"class":503},[457,606,607],{"class":507},"\"#F6F8FA\"",[457,609,388],{"class":503},[457,611,302],{"class":500},[457,613,504],{"class":503},[457,615,616],{"class":507},"\"#010409\"",[457,618,619],{"class":503}," }\n",[457,621,622,625,628,630,632,635,637,639,641,644],{"class":459,"line":485},[457,623,624],{"class":500},"  color.surface",[457,626,627],{"class":503},": { ",[457,629,602],{"class":500},[457,631,504],{"class":503},[457,633,634],{"class":507},"\"#FFFFFF\"",[457,636,388],{"class":503},[457,638,302],{"class":500},[457,640,504],{"class":503},[457,642,643],{"class":507},"\"#0D1117\"",[457,645,619],{"class":503},[457,647,648,651,654,656,658,661,663,665,667,670],{"class":459,"line":491},[457,649,650],{"class":500},"  color.text",[457,652,653],{"class":503},":    { ",[457,655,602],{"class":500},[457,657,504],{"class":503},[457,659,660],{"class":507},"\"#1F2328\"",[457,662,388],{"class":503},[457,664,302],{"class":500},[457,666,504],{"class":503},[457,668,669],{"class":507},"\"#E6EDF3\"",[457,671,619],{"class":503},[457,673,674,677,680,682,684,687,689,691,693,696],{"class":459,"line":497},[457,675,676],{"class":500},"  color.muted",[457,678,679],{"class":503},":   { ",[457,681,602],{"class":500},[457,683,504],{"class":503},[457,685,686],{"class":507},"\"#59636E\"",[457,688,388],{"class":503},[457,690,302],{"class":500},[457,692,504],{"class":503},[457,694,695],{"class":507},"\"#9198A1\"",[457,697,619],{"class":503},[457,699,700,703,705,707,709,712,714,716,718,721],{"class":459,"line":511},[457,701,702],{"class":500},"  color.accent",[457,704,599],{"class":503},[457,706,602],{"class":500},[457,708,504],{"class":503},[457,710,711],{"class":507},"\"#2F6FEB\"",[457,713,388],{"class":503},[457,715,302],{"class":500},[457,717,504],{"class":503},[457,719,720],{"class":507},"\"#4493F8\"",[457,722,619],{"class":503},[457,724,725,728,730,732,734,736,738,740,742,744],{"class":459,"line":522},[457,726,727],{"class":500},"  color.button",[457,729,599],{"class":503},[457,731,602],{"class":500},[457,733,504],{"class":503},[457,735,711],{"class":507},[457,737,388],{"class":503},[457,739,302],{"class":500},[457,741,504],{"class":503},[457,743,711],{"class":507},[457,745,619],{"class":503},[457,747,748,751,753,755,757,759,761,763,765,767],{"class":459,"line":532},[457,749,750],{"class":500},"  color.on_button",[457,752,627],{"class":503},[457,754,602],{"class":500},[457,756,504],{"class":503},[457,758,634],{"class":507},[457,760,388],{"class":503},[457,762,302],{"class":500},[457,764,504],{"class":503},[457,766,634],{"class":507},[457,768,619],{"class":503},[457,770,772,775,777,779,781,784,786,788,790,793],{"class":459,"line":771},11,[457,773,774],{"class":500},"  color.border",[457,776,599],{"class":503},[457,778,602],{"class":500},[457,780,504],{"class":503},[457,782,783],{"class":507},"\"#D1D9E0\"",[457,785,388],{"class":503},[457,787,302],{"class":500},[457,789,504],{"class":503},[457,791,792],{"class":507},"\"#3D444D\"",[457,794,619],{"class":503},[457,796,798,801,803,805,807,810,812,814,816,819],{"class":459,"line":797},12,[457,799,800],{"class":500},"  color.subtle",[457,802,599],{"class":503},[457,804,602],{"class":500},[457,806,504],{"class":503},[457,808,809],{"class":507},"\"#EFF2F5\"",[457,811,388],{"class":503},[457,813,302],{"class":500},[457,815,504],{"class":503},[457,817,818],{"class":507},"\"#262C36\"",[457,820,619],{"class":503},[457,822,824],{"class":459,"line":823},13,[457,825,826],{"class":463},"  # Quote family names with spaces in single quotes: \"'Helvetica Neue',Arial,sans-serif\".\n",[457,828,830,833,835],{"class":459,"line":829},14,[457,831,832],{"class":500},"  font.sans",[457,834,504],{"class":503},[457,836,837],{"class":507},"\"-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif\"\n",[457,839,841,844,846],{"class":459,"line":840},15,[457,842,843],{"class":500},"  font.mono",[457,845,504],{"class":503},[457,847,848],{"class":507},"\"ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"\n",[457,850,852],{"class":459,"line":851},16,[457,853,854],{"class":463},"  # Sizes in px. Templates cannot do arithmetic, so derived sizes get\n",[457,856,858],{"class":459,"line":857},17,[457,859,860],{"class":463},"  # their own token: keep size.content equal to size.width - 2 * size.side.\n",[457,862,864,867,869,872],{"class":459,"line":863},18,[457,865,866],{"class":500},"  size.width",[457,868,504],{"class":503},[457,870,871],{"class":518},"560",[457,873,874],{"class":463},"        # the message column\n",[457,876,878,881,883,886],{"class":459,"line":877},19,[457,879,880],{"class":500},"  size.side",[457,882,504],{"class":503},[457,884,885],{"class":518},"32",[457,887,888],{"class":463},"          # side padding of every component\n",[457,890,892,895,897,900],{"class":459,"line":891},20,[457,893,894],{"class":500},"  size.side_mobile",[457,896,504],{"class":503},[457,898,899],{"class":518},"16",[457,901,902],{"class":463},"   # side padding below 600px\n",[457,904,906,909,911,914],{"class":459,"line":905},21,[457,907,908],{"class":500},"  size.content",[457,910,504],{"class":503},[457,912,913],{"class":518},"496",[457,915,916],{"class":463},"      # size.width - 2 * size.side: the widest image\n",[457,918,920,923,925,927],{"class":459,"line":919},22,[457,921,922],{"class":500},"  size.block",[457,924,504],{"class":503},[457,926,899],{"class":518},[457,928,929],{"class":463},"         # space below every Markdown block\n",[457,931,933,936,938,940],{"class":459,"line":932},23,[457,934,935],{"class":500},"  size.gap",[457,937,504],{"class":503},[457,939,885],{"class":518},[457,941,942],{"class":463},"           # space below a component with no blocks\n",[457,944,946,949,951],{"class":459,"line":945},24,[457,947,948],{"class":500},"  size.text",[457,950,504],{"class":503},[457,952,953],{"class":518},"16\n",[457,955,957,960,962],{"class":459,"line":956},25,[457,958,959],{"class":500},"  size.line",[457,961,504],{"class":503},[457,963,964],{"class":518},"24\n",[457,966,968,971,973],{"class":459,"line":967},26,[457,969,970],{"class":500},"  size.small",[457,972,504],{"class":503},[457,974,975],{"class":518},"13\n",[457,977,979,982,984],{"class":459,"line":978},27,[457,980,981],{"class":500},"  size.small_line",[457,983,504],{"class":503},[457,985,986],{"class":518},"20\n",[457,988,990,993,995],{"class":459,"line":989},28,[457,991,992],{"class":500},"  size.h1",[457,994,504],{"class":503},[457,996,997],{"class":518},"28\n",[457,999,1001,1004,1006],{"class":459,"line":1000},29,[457,1002,1003],{"class":500},"  size.h1_line",[457,1005,504],{"class":503},[457,1007,1008],{"class":518},"36\n",[457,1010,1012,1015,1017],{"class":459,"line":1011},30,[457,1013,1014],{"class":500},"  size.h1_mobile",[457,1016,504],{"class":503},[457,1018,964],{"class":518},[457,1020,1022,1025,1027],{"class":459,"line":1021},31,[457,1023,1024],{"class":500},"  size.h1_mobile_line",[457,1026,504],{"class":503},[457,1028,1029],{"class":518},"32\n",[457,1031,1033,1036,1038],{"class":459,"line":1032},32,[457,1034,1035],{"class":500},"  size.h2",[457,1037,504],{"class":503},[457,1039,986],{"class":518},[457,1041,1043,1046,1048],{"class":459,"line":1042},33,[457,1044,1045],{"class":500},"  size.h2_line",[457,1047,504],{"class":503},[457,1049,997],{"class":518},[1051,1052,1053,1080,1099,1105],"ul",{},[1054,1055,1056,1060,1061,388,1064,398,1067,1069,1070,388,1073,398,1076,1079],"li",{},[1057,1058,1059],"strong",{},"Names"," start with an ASCII letter, followed by letters, digits, ",[214,1062,1063],{},"_",[214,1065,1066],{},"-",[214,1068,553],{},". The ",[214,1071,1072],{},"color.",[214,1074,1075],{},"font.",[214,1077,1078],{},"size."," prefixes are a convention, not a rule.",[1054,1081,1082,1085,1086,388,1088,1090,1091,1094,1095,1098],{},[1057,1083,1084],{},"A colour"," is a mapping with ",[214,1087,602],{},[214,1089,302],{}," or both. ",[214,1092,1093],{},"{{token}}"," gives the light value and ",[214,1096,1097],{},"{{dark}}"," the dark one.",[1054,1100,1101,1104],{},[1057,1102,1103],{},"Any other token"," is a single value.",[1054,1106,1107,1110,1111,1114,1115,1118],{},[1057,1108,1109],{},"Sizes"," are plain integers, in px by convention: templates write ",[214,1112,1113],{},"{{token \"size.side\"}}px",". Templates cannot do arithmetic, so a derived size gets its own token, as the comment above ",[214,1116,1117],{},"size.width"," says.",[1120,1121,1123],"h3",{"id":1122},"keep-token-values-css-safe","Keep token values CSS-safe",[211,1125,1126,1127,1130,1131,388,1134,388,1137,388,1140,388,1143,388,1146,388,1149,1152],{},"Token values are written into ",[214,1128,1129],{},"styles.css"," unescaped, so a value may not be empty or contain ",[214,1132,1133],{},"\u003C",[214,1135,1136],{},">",[214,1138,1139],{},"{",[214,1141,1142],{},"}",[214,1144,1145],{},";",[214,1147,1148],{},"\"",[214,1150,1151],{},"\\"," or a control character. A rejected token is then unknown to everything that names it:",[431,1154,1157],{"className":1155,"code":1156,"filename":436,"language":437,"meta":438},[434],"$ lttr kit check .\u002Femailkit\nemailkit\u002Fkit.yaml:26:14: tokens.font.mono: unsafe character '\"' in \"\\\"Menlo\\\",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"\nemailkit\u002Fkit.yaml:56:17: spans.mono.font: unknown token \"font.mono\"\nemailkit\u002Fkit.yaml:62:26: inline.code.font-family: unknown token \"font.mono\"\n",[214,1158,1156],{"__ignoreMap":438},[211,1160,1161,1164],{},[1057,1162,1163],{},"Quote font family names with single quotes."," The tutorial kit swaps Plain's system stack for a quoted one (this excerpt ends before the sizes, which are Plain's, unchanged):",[431,1166,1169],{"className":450,"code":1167,"filename":1168,"language":453,"meta":438,"style":438},"tokens:\n  color.canvas:  { light: \"#F6F8FA\", dark: \"#010409\" }\n  color.surface: { light: \"#FFFFFF\", dark: \"#0D1117\" }\n  color.text:    { light: \"#1F2328\", dark: \"#E6EDF3\" }\n  color.muted:   { light: \"#59636E\", dark: \"#9198A1\" }\n  color.accent:  { light: \"#1A7F37\", dark: \"#3FB950\" }  # was Plain's blue\n  color.button:  { light: \"#1A7F37\", dark: \"#1A7F37\" }  # was Plain's blue\n  color.on_button: { light: \"#FFFFFF\", dark: \"#FFFFFF\" }\n  color.border:  { light: \"#D1D9E0\", dark: \"#3D444D\" }\n  color.subtle:  { light: \"#EFF2F5\", dark: \"#262C36\" }\n  # Quote family names with spaces in single quotes: \"'Helvetica Neue',Arial,sans-serif\".\n  font.sans: \"'Helvetica Neue',Arial,sans-serif\"  # was the system stack\n  font.mono: \"ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"\n","tutorial\u002Fkit\u002Fkit.yaml#L14-L26",[214,1170,1171,1177,1199,1221,1243,1265,1293,1317,1339,1361,1383,1387,1399],{"__ignoreMap":438},[457,1172,1173,1175],{"class":459,"line":460},[457,1174,325],{"class":500},[457,1176,581],{"class":503},[457,1178,1179,1181,1183,1185,1187,1189,1191,1193,1195,1197],{"class":459,"line":467},[457,1180,596],{"class":500},[457,1182,599],{"class":503},[457,1184,602],{"class":500},[457,1186,504],{"class":503},[457,1188,607],{"class":507},[457,1190,388],{"class":503},[457,1192,302],{"class":500},[457,1194,504],{"class":503},[457,1196,616],{"class":507},[457,1198,619],{"class":503},[457,1200,1201,1203,1205,1207,1209,1211,1213,1215,1217,1219],{"class":459,"line":473},[457,1202,624],{"class":500},[457,1204,627],{"class":503},[457,1206,602],{"class":500},[457,1208,504],{"class":503},[457,1210,634],{"class":507},[457,1212,388],{"class":503},[457,1214,302],{"class":500},[457,1216,504],{"class":503},[457,1218,643],{"class":507},[457,1220,619],{"class":503},[457,1222,1223,1225,1227,1229,1231,1233,1235,1237,1239,1241],{"class":459,"line":479},[457,1224,650],{"class":500},[457,1226,653],{"class":503},[457,1228,602],{"class":500},[457,1230,504],{"class":503},[457,1232,660],{"class":507},[457,1234,388],{"class":503},[457,1236,302],{"class":500},[457,1238,504],{"class":503},[457,1240,669],{"class":507},[457,1242,619],{"class":503},[457,1244,1245,1247,1249,1251,1253,1255,1257,1259,1261,1263],{"class":459,"line":485},[457,1246,676],{"class":500},[457,1248,679],{"class":503},[457,1250,602],{"class":500},[457,1252,504],{"class":503},[457,1254,686],{"class":507},[457,1256,388],{"class":503},[457,1258,302],{"class":500},[457,1260,504],{"class":503},[457,1262,695],{"class":507},[457,1264,619],{"class":503},[457,1266,1267,1269,1271,1273,1275,1278,1280,1282,1284,1287,1290],{"class":459,"line":491},[457,1268,702],{"class":500},[457,1270,599],{"class":503},[457,1272,602],{"class":500},[457,1274,504],{"class":503},[457,1276,1277],{"class":507},"\"#1A7F37\"",[457,1279,388],{"class":503},[457,1281,302],{"class":500},[457,1283,504],{"class":503},[457,1285,1286],{"class":507},"\"#3FB950\"",[457,1288,1289],{"class":503}," }  ",[457,1291,1292],{"class":463},"# was Plain's blue\n",[457,1294,1295,1297,1299,1301,1303,1305,1307,1309,1311,1313,1315],{"class":459,"line":497},[457,1296,727],{"class":500},[457,1298,599],{"class":503},[457,1300,602],{"class":500},[457,1302,504],{"class":503},[457,1304,1277],{"class":507},[457,1306,388],{"class":503},[457,1308,302],{"class":500},[457,1310,504],{"class":503},[457,1312,1277],{"class":507},[457,1314,1289],{"class":503},[457,1316,1292],{"class":463},[457,1318,1319,1321,1323,1325,1327,1329,1331,1333,1335,1337],{"class":459,"line":511},[457,1320,750],{"class":500},[457,1322,627],{"class":503},[457,1324,602],{"class":500},[457,1326,504],{"class":503},[457,1328,634],{"class":507},[457,1330,388],{"class":503},[457,1332,302],{"class":500},[457,1334,504],{"class":503},[457,1336,634],{"class":507},[457,1338,619],{"class":503},[457,1340,1341,1343,1345,1347,1349,1351,1353,1355,1357,1359],{"class":459,"line":522},[457,1342,774],{"class":500},[457,1344,599],{"class":503},[457,1346,602],{"class":500},[457,1348,504],{"class":503},[457,1350,783],{"class":507},[457,1352,388],{"class":503},[457,1354,302],{"class":500},[457,1356,504],{"class":503},[457,1358,792],{"class":507},[457,1360,619],{"class":503},[457,1362,1363,1365,1367,1369,1371,1373,1375,1377,1379,1381],{"class":459,"line":532},[457,1364,800],{"class":500},[457,1366,599],{"class":503},[457,1368,602],{"class":500},[457,1370,504],{"class":503},[457,1372,809],{"class":507},[457,1374,388],{"class":503},[457,1376,302],{"class":500},[457,1378,504],{"class":503},[457,1380,818],{"class":507},[457,1382,619],{"class":503},[457,1384,1385],{"class":459,"line":771},[457,1386,826],{"class":463},[457,1388,1389,1391,1393,1396],{"class":459,"line":797},[457,1390,832],{"class":500},[457,1392,504],{"class":503},[457,1394,1395],{"class":507},"\"'Helvetica Neue',Arial,sans-serif\"",[457,1397,1398],{"class":463},"  # was the system stack\n",[457,1400,1401,1403,1405],{"class":459,"line":823},[457,1402,843],{"class":500},[457,1404,504],{"class":503},[457,1406,848],{"class":507},[211,1408,1409,1410,1413,1414,1417,1418,1421,1422,1424,1425,1428,1429,1432,1433,1436],{},"A quoted stack works because Plain's templates write fonts through the core ",[214,1411,1412],{},"style"," function, which accepts paired single quotes: ",[214,1415,1416],{},"{{style \"font-family\" \"font.sans\"}}"," renders ",[214,1419,1420],{},"font-family:'Helvetica Neue',Arial,sans-serif;",". Written straight into a ",[214,1423,1412],{}," attribute as ",[214,1426,1427],{},"font-family:{{token \"font.sans\"}}",", the same token would be rejected by ",[214,1430,1431],{},"html\u002Ftemplate","'s CSS filter and render as ",[214,1434,1435],{},"ZgotmplZ",", which the lint reports:",[431,1438,1441],{"className":1439,"code":1440,"filename":436,"language":437,"meta":438},[434],"$ lttr kit check .\u002Femailkit\nemailkit\u002Fsamples\u002Freceipt-free.md: html: contains \"ZgotmplZ\" at byte 5409 and 1 more (a value html\u002Ftemplate rejected)\nemailkit\u002Fsamples\u002Fwelcome.md: html: contains \"ZgotmplZ\" at byte 5396 (a value html\u002Ftemplate rejected)\nlttr kit check: .\u002Femailkit: 2 problems\n",[214,1442,1440],{"__ignoreMap":438},[211,1444,1445,1448,1449,1452,1453,1456,1457,388,1460,388,1463,1466,1467,1469,1470,1472,1473,1476,1477,1480,1481,1483,1484,1487,1488,1491,1492,1495],{},[1057,1446,1447],{},"Write colours in any CSS syntax."," A colour token may be ",[214,1450,1451],{},"#1A7F37",", a keyword such as ",[214,1454,1455],{},"white",", or a function: ",[214,1458,1459],{},"rgb(26 127 55)",[214,1461,1462],{},"rgba(31,35,40,0.9)",[214,1464,1465],{},"hsl(135 60% 50%)",". Plain, and every kit copied from it, writes colour tokens into ",[214,1468,1412],{}," attributes through the same ",[214,1471,1412],{}," function, ",[214,1474,1475],{},"{{style \"color\" \"color.accent\"}}",", so a functional colour reaches the HTML intact. A colour in an HTML attribute such as ",[214,1478,1479],{},"bgcolor=\"{{token \"color.canvas\"}}\""," is escaped as text and is fine too. Only a colour written straight into a ",[214,1482,1412],{}," attribute, as ",[214,1485,1486],{},"color:{{token \"color.accent\"}};",", is rejected when it holds ",[214,1489,1490],{},"(",", and the lint catches it. With ",[214,1493,1494],{},"color.accent: { light: \"rgb(26 127 55)\", … }"," and one link written that way in the footer:",[431,1497,1500],{"className":1498,"code":1499,"filename":436,"language":437,"meta":438},[434],"$ lttr kit check .\u002Femailkit\nemailkit\u002Fsamples\u002Freceipt-free.md: html: contains \"ZgotmplZ\" at byte 13687 (a value html\u002Ftemplate rejected)\nemailkit\u002Fsamples\u002Fwelcome.md: html: contains \"ZgotmplZ\" at byte 10556 (a value html\u002Ftemplate rejected)\nlttr kit check: .\u002Femailkit: 2 problems\n",[214,1501,1499],{"__ignoreMap":438},[211,1503,1504,1505,1507,1508,1511,1512,1514],{},"The core ",[214,1506,387],{}," function is stricter: its fill and text colours must be ",[214,1509,1510],{},"#hex"," or a keyword, and anything else renders as ",[214,1513,1435],{},". Plain's button component doesn't use it.",[1120,1516,1518],{"id":1517},"resolve-token-names","Resolve token names",[211,1520,1521],{},"A token name can stand in for a value in several places. Each resolves it the same way: a value that names a token becomes the token's value, the light value for a colour.",[223,1523,1524,1537],{},[226,1525,1526],{},[229,1527,1528,1531,1534],{},[232,1529,1530],{},"Where",[232,1532,1533],{},"Example",[232,1535,1536],{},"A name that is not a token",[242,1538,1539,1561,1579,1601,1624],{},[229,1540,1541,1546,1551],{},[247,1542,1543,1545],{},[214,1544,563],{}," in a template",[247,1547,1548],{},[214,1549,1550],{},"{{token \"size.text\"}}",[247,1552,1553,1554,1557,1558,1560],{},"A load error, ",[214,1555,1556],{},"token: unknown token \"size.txt\" (did you mean size.text?)",". A token with only a ",[214,1559,302],{}," value is an error too",[229,1562,1563,1568,1573],{},[247,1564,1565,1545],{},[214,1566,1567],{},"{{dark \"name\"}}",[247,1569,1570],{},[214,1571,1572],{},"{{dark \"color.canvas\"}}",[247,1574,1575,1576,1578],{},"A load error. So is a token with no ",[214,1577,302],{}," value",[229,1580,1581,1587,1591],{},[247,1582,1583,1586],{},[214,1584,1585],{},"{{style \"prop\" \"value\" …}}"," in an HTML template",[247,1588,1589],{},[214,1590,1416],{},[247,1592,1593,1594,1597,1598],{},"Written as a literal CSS value. A literal that reads as a token name in one of the kit's token groups, such as ",[214,1595,1596],{},"\"color.txt\"",", must be a token: a load error, ",[214,1599,1600],{},"style: unknown token \"color.txt\" (did you mean color.text?)",[229,1602,1603,1612,1617],{},[247,1604,1605,398,1607,1609,1610],{},[214,1606,355],{},[214,1608,370],{}," in ",[214,1611,79],{},[247,1613,1614],{},[214,1615,1616],{},"link: { color: color.accent }",[247,1618,1619,1620,1623],{},"A dotted name that names no token is an error (",[214,1621,1622],{},"unknown token",", with a suggestion when a token is close). Anything else is a literal CSS value",[229,1625,1626,1635,1640],{},[247,1627,1628,1631,1632],{},[214,1629,1630],{},"spans.*.size"," and component ",[214,1633,1634],{},"spacing",[247,1636,1637],{},[214,1638,1639],{},"bottom: size.gap",[247,1641,1642],{},"Must be a non-negative integer, or a token whose value is one",[211,1644,1645,388,1648,398,1650,1653,1654,1656],{},[214,1646,1647],{},"token",[214,1649,302],{},[214,1651,1652],{},"var"," check a literal argument when the kit loads, and so does ",[214,1655,1412],{}," for a literal value shaped like a token name. An argument computed in the template is checked when it renders.",[218,1658,1660],{"id":1659},"set-vars","Set vars",[211,1662,1663],{},"Vars are string constants for copy: the brand, the site URL, the sender's address.",[431,1665,1668],{"className":450,"code":1666,"filename":1667,"language":453,"meta":438,"style":438},"vars:\n  brand: Example\n  site: https:\u002F\u002Fexample.com\n  company: Example Inc.\n  address: 100 Main Street, Springfield\n  asset_base: https:\u002F\u002Fexample.com\u002Fassets\n","plain\u002Fkit.yaml#L46-L51",[214,1669,1670,1676,1686,1696,1706,1716],{"__ignoreMap":438},[457,1671,1672,1674],{"class":459,"line":460},[457,1673,338],{"class":500},[457,1675,581],{"class":503},[457,1677,1678,1681,1683],{"class":459,"line":467},[457,1679,1680],{"class":500},"  brand",[457,1682,504],{"class":503},[457,1684,1685],{"class":507},"Example\n",[457,1687,1688,1691,1693],{"class":459,"line":473},[457,1689,1690],{"class":500},"  site",[457,1692,504],{"class":503},[457,1694,1695],{"class":507},"https:\u002F\u002Fexample.com\n",[457,1697,1698,1701,1703],{"class":459,"line":479},[457,1699,1700],{"class":500},"  company",[457,1702,504],{"class":503},[457,1704,1705],{"class":507},"Example Inc.\n",[457,1707,1708,1711,1713],{"class":459,"line":485},[457,1709,1710],{"class":500},"  address",[457,1712,504],{"class":503},[457,1714,1715],{"class":507},"100 Main Street, Springfield\n",[457,1717,1718,1721,1723],{"class":459,"line":491},[457,1719,1720],{"class":500},"  asset_base",[457,1722,504],{"class":503},[457,1724,1725],{"class":507},"https:\u002F\u002Fexample.com\u002Fassets\n",[1051,1727,1728,1738,1750],{},[1054,1729,1730,1731,1734,1735,553],{},"Templates read them with ",[214,1732,1733],{},"{{var \"brand\"}}",". An unknown name is a load error: ",[214,1736,1737],{},"var: unknown var \"compnay\" (did you mean company?)",[1054,1739,1740,1742,1743,388,1745,1747,1748,553],{},[214,1741,347],{}," overrides them per renderer. Every key must be a kit var, and a value may not contain ",[214,1744,1133],{},[214,1746,1136],{}," or a control character, because vars can reach ",[214,1749,1129],{},[1054,1751,1752,1755,1756,1758,1759,1762,1763,1765,1766,553],{},[214,1753,1754],{},"asset_base"," always exists, even when ",[214,1757,79],{}," does not declare it. ",[214,1760,1761],{},"Config.AssetBase"," sets it, not ",[214,1764,347],{},". Plain builds its logo URL from it: ",[214,1767,1768],{},"{{var \"asset_base\"}}\u002Flogo.png",[211,1770,1771,1772,1774,1775,553],{},"See ",[550,1773,118],{"href":119}," for ",[214,1776,1777],{},"Config",[218,1779,1781],{"id":1780},"style-spans-and-inline-markdown","Style spans and inline Markdown",[211,1783,1784,1786,1787,1789,1790,1792],{},[214,1785,355],{}," lists the classes a template may use in ",[214,1788,363],{},". ",[214,1791,370],{}," styles the Markdown inlines:",[431,1794,1797],{"className":450,"code":1795,"filename":1796,"language":453,"meta":438,"style":438},"spans:\n  muted: { color: color.muted }\n  accent: { color: color.accent }\n  mono: { font: font.mono }\n  small: { size: size.small }\n  bold: { weight: bold }\n\ninline:\n  link:   { color: color.accent, text-decoration: underline }\n  code:   { font-family: font.mono, font-size: 14px, background-color: color.subtle, padding: 1px 4px }\n  strong: { font-weight: 600 }\n  strike: { color: color.muted, text-decoration: line-through }\n","plain\u002Fkit.yaml#L53-L64",[214,1798,1799,1805,1822,1838,1855,1872,1889,1895,1901,1926,1972,1989],{"__ignoreMap":438},[457,1800,1801,1803],{"class":459,"line":460},[457,1802,355],{"class":500},[457,1804,581],{"class":503},[457,1806,1807,1810,1812,1815,1817,1820],{"class":459,"line":467},[457,1808,1809],{"class":500},"  muted",[457,1811,627],{"class":503},[457,1813,1814],{"class":500},"color",[457,1816,504],{"class":503},[457,1818,1819],{"class":507},"color.muted",[457,1821,619],{"class":503},[457,1823,1824,1827,1829,1831,1833,1836],{"class":459,"line":473},[457,1825,1826],{"class":500},"  accent",[457,1828,627],{"class":503},[457,1830,1814],{"class":500},[457,1832,504],{"class":503},[457,1834,1835],{"class":507},"color.accent",[457,1837,619],{"class":503},[457,1839,1840,1843,1845,1848,1850,1853],{"class":459,"line":479},[457,1841,1842],{"class":500},"  mono",[457,1844,627],{"class":503},[457,1846,1847],{"class":500},"font",[457,1849,504],{"class":503},[457,1851,1852],{"class":507},"font.mono",[457,1854,619],{"class":503},[457,1856,1857,1860,1862,1865,1867,1870],{"class":459,"line":485},[457,1858,1859],{"class":500},"  small",[457,1861,627],{"class":503},[457,1863,1864],{"class":500},"size",[457,1866,504],{"class":503},[457,1868,1869],{"class":507},"size.small",[457,1871,619],{"class":503},[457,1873,1874,1877,1879,1882,1884,1887],{"class":459,"line":491},[457,1875,1876],{"class":500},"  bold",[457,1878,627],{"class":503},[457,1880,1881],{"class":500},"weight",[457,1883,504],{"class":503},[457,1885,1886],{"class":507},"bold",[457,1888,619],{"class":503},[457,1890,1891],{"class":459,"line":497},[457,1892,1894],{"emptyLinePlaceholder":1893},true,"\n",[457,1896,1897,1899],{"class":459,"line":511},[457,1898,370],{"class":500},[457,1900,581],{"class":503},[457,1902,1903,1906,1908,1910,1912,1914,1916,1919,1921,1924],{"class":459,"line":522},[457,1904,1905],{"class":500},"  link",[457,1907,679],{"class":503},[457,1909,1814],{"class":500},[457,1911,504],{"class":503},[457,1913,1835],{"class":507},[457,1915,388],{"class":503},[457,1917,1918],{"class":500},"text-decoration",[457,1920,504],{"class":503},[457,1922,1923],{"class":507},"underline",[457,1925,619],{"class":503},[457,1927,1928,1931,1933,1936,1938,1940,1942,1945,1947,1950,1952,1955,1957,1960,1962,1965,1967,1970],{"class":459,"line":532},[457,1929,1930],{"class":500},"  code",[457,1932,679],{"class":503},[457,1934,1935],{"class":500},"font-family",[457,1937,504],{"class":503},[457,1939,1852],{"class":507},[457,1941,388],{"class":503},[457,1943,1944],{"class":500},"font-size",[457,1946,504],{"class":503},[457,1948,1949],{"class":507},"14px",[457,1951,388],{"class":503},[457,1953,1954],{"class":500},"background-color",[457,1956,504],{"class":503},[457,1958,1959],{"class":507},"color.subtle",[457,1961,388],{"class":503},[457,1963,1964],{"class":500},"padding",[457,1966,504],{"class":503},[457,1968,1969],{"class":507},"1px 4px",[457,1971,619],{"class":503},[457,1973,1974,1977,1979,1982,1984,1987],{"class":459,"line":771},[457,1975,1976],{"class":500},"  strong",[457,1978,627],{"class":503},[457,1980,1981],{"class":500},"font-weight",[457,1983,504],{"class":503},[457,1985,1986],{"class":518},"600",[457,1988,619],{"class":503},[457,1990,1991,1994,1996,1998,2000,2002,2004,2006,2008,2011],{"class":459,"line":797},[457,1992,1993],{"class":500},"  strike",[457,1995,627],{"class":503},[457,1997,1814],{"class":500},[457,1999,504],{"class":503},[457,2001,1819],{"class":507},[457,2003,388],{"class":503},[457,2005,1918],{"class":500},[457,2007,504],{"class":503},[457,2009,2010],{"class":507},"line-through",[457,2012,619],{"class":503},[1051,2014,2015,2035,2062],{},[1054,2016,2017,2020,2021,388,2023,398,2025,2027,2028,2030,2031,2034],{},[1057,2018,2019],{},"A span"," sets any of ",[214,2022,1814],{},[214,2024,1847],{},[214,2026,1881],{}," (a token name or a literal) and ",[214,2029,1864],{}," (px, or a size token). Class names match ",[214,2032,2033],{},"[a-z][a-z0-9_-]*",". A span with several classes combines them, later classes winning.",[1054,2036,2037,2041,2042,388,2044,388,2046,388,2048,398,2051,2054,2055,2058,2059,2061],{},[1057,2038,2039],{},[214,2040,370],{}," has one entry per inline kind: ",[214,2043,391],{},[214,2045,214],{},[214,2047,1057],{},[214,2049,2050],{},"em",[214,2052,2053],{},"strike",". Each is an ordered mapping of CSS properties (",[214,2056,2057],{},"[a-z-]+",") to a token name or a literal, written into the element's ",[214,2060,1412],{}," attribute in that order.",[1054,2063,2064,2065,2067,2068,2071,2072,553],{},"A class that ",[214,2066,355],{}," does not declare is a compile error in the template: ",[214,2069,2070],{},"unknown span class \".loud\"",". See ",[550,2073,58],{"href":59},[218,2075,2077],{"id":2076},"cap-buttons-and-links","Cap buttons and links",[211,2079,2080,2082,2083,398,2085,2087,2088,2091,2092,2094],{},[214,2081,382],{}," caps the ",[214,2084,397],{},[214,2086,401],{}," inline components across a whole template. Plain sets none. With ",[214,2089,2090],{},"limits: { button: 1 }",", a second ",[214,2093,397],{}," is a compile error:",[431,2096,2099],{"className":2097,"code":2098,"filename":436,"language":437,"meta":438},[434],"$ lttr lint -kit .\u002Femailkit templates\u002Flaunch.md\ntemplates\u002Flaunch.md:12:1: more than one :button in the template\n",[214,2100,2098],{"__ignoreMap":438},[211,2102,2103,2104,2106,2107,553],{},"A component can set its own ",[214,2105,382],{}," for the buttons and links inside its content. See ",[550,2108,84],{"href":2109},"\u002Fkits\u002Fcomponent-schemas#cap-actions-and-set-the-order",[218,2111,2113],{"id":2112},"register-go-types","Register Go types",[211,2115,2116,2118],{},[214,2117,408],{}," lists the Go types that component bindings may name. The tutorial kit binds one:",[431,2120,2123],{"className":450,"code":2121,"filename":2122,"language":453,"meta":438,"style":438},"# Go types components may bind. The kit's Go package registers each one\n# with kit.Types, so this kit loads from Go, not from the CLI.\ntypes: [Invoice]\n","tutorial\u002Fkit\u002Fkit.yaml#L10-L12",[214,2124,2125,2130,2135],{"__ignoreMap":438},[457,2126,2127],{"class":459,"line":460},[457,2128,2129],{"class":463},"# Go types components may bind. The kit's Go package registers each one\n",[457,2131,2132],{"class":459,"line":467},[457,2133,2134],{"class":463},"# with kit.Types, so this kit loads from Go, not from the CLI.\n",[457,2136,2137,2139,2142,2145],{"class":459,"line":473},[457,2138,408],{"class":500},[457,2140,2141],{"class":503},": [",[457,2143,2144],{"class":507},"Invoice",[457,2146,2147],{"class":503},"]\n",[211,2149,2150,2151,2154],{},"Every listed name must be registered from Go with ",[214,2152,2153],{},"kit.Types",", or the kit does not load:",[431,2156,2159],{"className":2157,"code":2158,"filename":436,"language":437,"meta":438},[434],"$ lttr kit check examples\u002Ftutorial\u002Fkit\nexamples\u002Ftutorial\u002Fkit\u002Fkit.yaml:12:9: types: \"Invoice\" is not registered\nexamples\u002Ftutorial\u002Fkit: kit directories load without Go types; check kits that bind Go types from Go (see README)\n",[214,2160,2158],{"__ignoreMap":438},[211,2162,1771,2163,553],{},[550,2164,97],{"href":98},[218,2166,2168],{"id":2167},"declare-frontmatter-keys","Declare frontmatter keys",[211,2170,2171,2173,2174,388,2177,388,2180,388,2183,398,2186,2189,2190,388,2193,388,2196,388,2199,388,2201,2204,2205,2208,2209,2212,2213,2216],{},[214,2172,421],{}," declares keys a Markdown template may set in its frontmatter, besides the core ",[214,2175,2176],{},"template",[214,2178,2179],{},"profile",[214,2181,2182],{},"subject",[214,2184,2185],{},"preheader",[214,2187,2188],{},"from",". Each key is typed exactly like a component attribute (",[214,2191,2192],{},"type",[214,2194,2195],{},"required",[214,2197,2198],{},"required_with",[214,2200,289],{},[214,2202,2203],{},"values","; see ",[550,2206,84],{"href":2207},"\u002Fkits\u002Fcomponent-schemas#type-the-attributes","). For example, ",[214,2210,2211],{},"frontmatter: { campaign: { type: enum, values: [spring, autumn] } }"," makes ",[214,2214,2215],{},"campaign:"," a checked key:",[431,2218,2221],{"className":2219,"code":2220,"filename":436,"language":437,"meta":438},[434],"$ lttr lint -kit .\u002Femailkit templates\u002Fspring.md\ntemplates\u002Fspring.md:5:1: frontmatter: \"campaign\" must be one of spring, autumn\n",[214,2222,2220],{"__ignoreMap":438},[1051,2224,2225,2235,2258],{},[1054,2226,2227,2228,2231,2232,553],{},"Layouts and component templates read the value as ",[214,2229,2230],{},".Doc.Front.campaign",". Blocks do not see ",[214,2233,2234],{},".Doc",[1054,2236,2237,2238,2241,2242,388,2245,2247,2248,2250,2251,2254,2255,553],{},"An unset key takes its default, else the zero value of its type: ",[214,2239,2240],{},"\"\""," for text, url and enum, an empty list, ",[214,2243,2244],{},"0",[214,2246,311],{},", or a nil ",[214,2249,370],{},". So ",[214,2252,2253],{},"{{if .Doc.Front.campaign}}"," is false, and printing it writes nothing, never ",[214,2256,2257],{},"\u003Cno value>",[1054,2259,2260,2261,553],{},"Redeclaring a core key is a load error: ",[214,2262,2263],{},"frontmatter: \"subject\" is a core key",[211,2265,1771,2266,2268],{},[550,2267,43],{"href":44}," for the template side.",[218,2270,2272],{"id":2271},"next-steps","Next steps",[1051,2274,2275,2283],{},[1054,2276,2277,504,2279,2282],{},[550,2278,84],{"href":85},[214,2280,2281],{},"component.yaml",", key by key.",[1054,2284,2285,2287,2288,388,2290,388,2292,398,2294,2296],{},[550,2286,88],{"href":89},": where ",[214,2289,1647],{},[214,2291,302],{},[214,2293,1652],{},[214,2295,1412],{}," fit.",[1412,2298,2299],{},"html pre.shiki code .sBq4M, html code.shiki .sBq4M{--shiki-light:#66707B;--shiki-default:#66707B;--shiki-dark:#6A737D}html pre.shiki code .s71pN, html code.shiki .s71pN{--shiki-light:#024C1A;--shiki-default:#024C1A;--shiki-dark:#85E89D}html pre.shiki code .sihDN, html code.shiki .sihDN{--shiki-light:#0E1116;--shiki-default:#0E1116;--shiki-dark:#E1E4E8}html pre.shiki code .sRBGO, html code.shiki .sRBGO{--shiki-light:#032563;--shiki-default:#032563;--shiki-dark:#9ECBFF}html pre.shiki code .sTl1q, html code.shiki .sTl1q{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#79B8FF}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);}",{"title":438,"searchDepth":467,"depth":467,"links":2301},[2302,2303,2304,2308,2309,2310,2311,2312,2313],{"id":220,"depth":467,"text":221},{"id":443,"depth":467,"text":444},{"id":556,"depth":467,"text":557,"children":2305},[2306,2307],{"id":1122,"depth":473,"text":1123},{"id":1517,"depth":473,"text":1518},{"id":1659,"depth":467,"text":1660},{"id":1780,"depth":467,"text":1781},{"id":2076,"depth":467,"text":2077},{"id":2112,"depth":467,"text":2113},{"id":2167,"depth":467,"text":2168},{"id":2271,"depth":467,"text":2272},"Every key of kit.yaml — name, default component, dark mode, tokens, vars, spans, inline styles, limits, Go types and frontmatter — and how token names resolve.","md",null,{},{"icon":82},{"title":79,"description":2314},"KLKysc4StPBMXK1zIr8XeQ3nlnQoc8CZLpYuG5NuPU8",[2322,2324],{"title":74,"path":75,"stem":76,"description":2323,"icon":77,"children":-1},"A kit is a directory of YAML and Go templates that gives lttr its look and its components. The files, how Go loads them, and the two kits lttr ships.",{"title":84,"path":85,"stem":86,"description":2325,"icon":51,"children":-1},"component.yaml, key by key — attributes, bindings, content rules, children, ordering, limits and spacing — and the compile errors each rule produces.",1790467458233]