s72
  • File and search inputs

    input[type="file"]

    <input type="file"> and <input type="search"> are styled as they are. The file input's own button takes the button fill; the search input takes the pill corner.

    Basic

    html
    <article data-tone="card" style="display:grid;gap:1rem">
      <label data-field><span>Import config</span><input type="file"></label>
      <label data-field><span>Search the log</span><input type="search" placeholder="guide/old"></label>
    </article>

    The file input shows the chosen file name beside its button, which is the browser's own text.

    Notes