Kition
htmlTypography

Bistro Dinner Menu

A printed-style dinner menu with a centred masthead, dotted leaders between dishes and prices, small descriptions, dietary tags and a two-column course layout.

Bistro Dinner Menu — HTML sample rendered by Kition

Menu typography with CSS alone: a serif masthead and dishes (Lora, from the page's `Georgia, serif` stack), wide-tracked uppercase course headings between rules, dish and price joined by a dotted leader (a flex item with a dotted bottom border), tabular price figures, light descriptions and small rounded dietary tags, on a warm paper colour with a double frame.

Steps

1 command
showcase.yaml58 lines
steps:
  - command: html.setSource
    as: page
    params:
      source: |
        <!doctype html>
        <html lang="en">
        <head>
        <meta charset="utf-8">
        <title>Maison Ardoise, dinner</title>
        <style>
          * { box-sizing: border-box; }
          body { margin: 0; padding: 28px; font-family: Inter, sans-serif; background: #2f2a24; }
          .page { background: #f7f1e6; color: #2f2a24; border: 1px solid #b08d57; outline: 6px solid #f7f1e6; padding: 40px 56px; min-height: 0; box-shadow: 0 0 0 7px #b08d57; }
          .mast { text-align: center; }
          .mast small { font-size: 12px; letter-spacing: 6px; color: #8a6d3b; font-weight: 600; }
          .mast h1 { margin: 6px 0 4px; font-family: Lora, Georgia, serif; font-size: 50px; font-weight: 400; letter-spacing: 8px; text-transform: uppercase; }
          .mast p { margin: 0; font-size: 14px; color: #6b5d4d; font-weight: 300; letter-spacing: 1px; }
          .orn { text-align: center; color: #b08d57; letter-spacing: 12px; margin: 14px 0 6px; }
          .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
          h2 { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 5px; font-weight: 700; color: #8a6d3b; margin: 22px 0 8px; }
          h2::before, h2::after { content: ""; flex: 1; border-top: 1px solid #cdb68f; }
          .dish { margin: 12px 0; }
          .line { display: flex; align-items: baseline; gap: 8px; font-family: Lora, Georgia, serif; font-size: 18px; font-weight: 600; }
          .dots { flex: 1; border-bottom: 2px dotted #b9a27a; }
          .price { font-variant-numeric: tabular-nums; font-weight: 500; }
          .desc { font-size: 13px; color: #6b5d4d; font-weight: 300; margin-top: 3px; line-height: 1.45; }
          .tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 2px 7px; border-radius: 999px; border: 1px solid #8a6d3b; color: #8a6d3b; margin-left: 6px; }
          .foot { text-align: center; font-size: 12px; color: #6b5d4d; margin-top: 26px; font-weight: 300; }
        </style>
        </head>
        <body>
          <div class="page">
            <div class="mast"><small>EST. 2011 · RUE DES TANNEURS</small><h1>Maison Ardoise</h1><p>Dinner · served from 18:30 · autumn menu</p></div>
            <div class="orn">◆ ◆ ◆</div>
            <div class="cols">
              <div>
                <h2>TO START</h2>
                <div class="dish"><div class="line">Roast squash velouté <span class="dots"></span><span class="price">9</span></div><div class="desc">Brown butter, sage, toasted seeds <span class="tag">V</span></div></div>
                <div class="dish"><div class="line">Beetroot tartare <span class="dots"></span><span class="price">11</span></div><div class="desc">Horseradish cream, rye crisp, dill <span class="tag">VG</span></div></div>
                <div class="dish"><div class="line">Smoked trout rillettes <span class="dots"></span><span class="price">13</span></div><div class="desc">Pickled shallot, warm sourdough</div></div>
                <h2>TO SHARE</h2>
                <div class="dish"><div class="line">Baked mountain cheese <span class="dots"></span><span class="price">24</span></div><div class="desc">Garlic, thyme, potatoes and cornichons, for two <span class="tag">V</span></div></div>
              </div>
              <div>
                <h2>MAINS</h2>
                <div class="dish"><div class="line">Duck leg, lentils <span class="dots"></span><span class="price">26</span></div><div class="desc">Puy lentils, bacon, red wine jus</div></div>
                <div class="dish"><div class="line">Hake, mussels <span class="dots"></span><span class="price">28</span></div><div class="desc">Leeks, cider and saffron broth</div></div>
                <div class="dish"><div class="line">Wild mushroom pithivier <span class="dots"></span><span class="price">22</span></div><div class="desc">Celeriac purée, chestnuts <span class="tag">V</span></div></div>
                <h2>DESSERT</h2>
                <div class="dish"><div class="line">Tarte tatin <span class="dots"></span><span class="price">10</span></div><div class="desc">Calvados crème fraîche</div></div>
                <div class="dish"><div class="line">Dark chocolate pot <span class="dots"></span><span class="price">9</span></div><div class="desc">Salted caramel, hazelnut biscuit <span class="tag">GF</span></div></div>
              </div>
            </div>
            <div class="foot">V vegetarian · VG vegan · GF gluten free · Please tell us about allergies before you order</div>
          </div>
        </body>
        </html>

Checks

6 checks on every build
  • inspect.width = 1000
  • inspect.height = 712
  • inspect.source = {"contains":"border-bottom: 2px dotted"}
  • results.page.changed = true
  • Diagnostics: none, the kit's own check finds nothing wrong
  • The saved document opens again, and its thumbnail matches thumb.png within the render tolerance

Related

More HTML samples
htmlTypography

Inter Type Specimen

A type specimen sheet for the renderer's bundled Inter, showing nine weights, a size scale, tracking, line height, figures and a paragraph setting.

1200 × 680 px; 3.7 KB of HTML
htmlEmail Templates

Bakery Newsletter Email

A 600-pixel email newsletter built the way mail clients need it, with nested tables, inline styles, a bulletproof button and a two-column product row.

760 × 980 px; 3.4 KB of HTML
htmlLanding Pages

Coffee Roaster Landing Hero

The first screen of a coffee subscription site, with a navigation bar, a gradient hero, two call-to-action buttons, a product card and a row of trust figures.

1280 × 800 px; 4.1 KB of HTML
htmlComponents

Concert Ticket Card

A mobile e-ticket for an orchestra concert, with a gradient header, punched notches, a dashed tear line, seat details in a grid and a barcode drawn with a repeating gradient.

900 × 760 px; 2.9 KB of HTML