Skip to content
HTML Templates For Developers

Documentation

Findr — Search Results Page

Version 1.0.0 · Tailwind CSS · 11 files · 75 KB

Back to the template

Getting started

  1. Unzip the download and open index.html in a browser. The compiled stylesheet is included, so no build step is needed to use it.
  2. To change utilities or tokens, edit the HTML and src/input.css, then rebuild with: npx @tailwindcss/cli -i src/input.css -o assets/css/style.css --minify
  3. Replace the artwork in assets/images/ with your own images.
  4. Upload the whole folder to any static host.

File structure

The download contains these 11 files:

  • LICENSE.txt1.3 KB
  • README.md2.6 KB
  • assets/css/style.css18 KB
  • assets/fonts/inter-LICENSE.txt4.4 KB
  • assets/fonts/inter-latin-wght-normal.woff247 KB
  • assets/images/favicon.svg320 B
  • assets/js/main.js27 KB
  • documentation/index.html11 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • index.html6.3 KB
  • src/input.css1.9 KB

Colours

These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.

  • --color-ink#111113
  • --color-link#2563eb
  • --color-link-visited#6d28d9
  • --color-quiet#5b5f6b
  • --color-hair#e7e8ec
  • --color-wash#f6f7f9
  • --color-hit#fef08a

Interactive features

Dataset

Edit the PAGES array in assets/js/main.js: [title, site, path, type, date, snippet, tags]. Change TODAY to the current date for the date filter.

Search function

search(q, type, days, sort) returns matching pages; replace its body with a request to your own search API.

Suggestions

suggestions() combines recent searches, the POPULAR list and page titles; edit it to use your own autocomplete source.

Result limits

Change PAGE_SIZE for results per page and the TYPES array to rename or add result types.

Customisation notes

Tailwind workflow

Edit utilities in index.html and tokens in src/input.css, then compile with Tailwind v4 (input src/input.css, output assets/css/style.css). The compiled file is included.

Link and highlight colours

Change --color-link, --color-link-visited and --color-hit in @theme; the mark element style is in src/input.css.

Match highlighting

highlight() splits text into text nodes and mark elements so user input is never parsed as HTML. Keep that approach when you adapt it.

What is front-end only

This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.

  • Results come from a small built-in dataset of invented pages, not a real search index
  • Recent searches are held in memory and cleared on reload
  • Result links point to example.com placeholders

Bundled components and licences

Everything the template needs is inside the download; nothing is loaded from the network.

  • Inter typeface — OFL-1.1 (assets/fonts/inter-LICENSE.txt)
  • Tailwind CSS (compiled output) 4.3.3 — MIT
  • Lucide icons (inlined SVG) — ISC (documentation/licenses/lucide-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 24, 2026

  • Initial release.