Skip to content
fossil-skin Craft Design Fossil Skin — User’s Manual
Login

Craft Design Fossil Skin — User’s Manual

A practical guide to installing, using, and configuring fossil-skin and its optional ticket workbench templates in dark or light mode.


1. Choosing a Build

Every build in dist/ is self-contained. It embeds the stylesheet, header, footer, details, logo, favicon, main menu, and a11y.js so any Fossil 2.20+ repository can import it with no external assets.

File Theme Font Approximate size
dist/craftdesign-skin.cfg Dark Viewer's system UI font ~323 KB
dist/craftdesign-skin-instrument-sans.cfg Dark Embedded Instrument Sans (WOFF2) ~415 KB
dist/craftdesign-skin-light.cfg Light Viewer's system UI font ~321 KB
dist/craftdesign-skin-light-instrument-sans.cfg Light Embedded Instrument Sans (WOFF2) ~413 KB

Why dark and light are separate skins

Fossil computes user, branch, and Pikchr colors on the server using the white-foreground setting in the skin's details block:

A CSS-only theme toggle cannot swap those server-generated colors cleanly, so dark and light ship as distinct importable skins generated from the same stylesheet (skin/css.txt + skin/build.py).


2. Installing, Switching, and Removing the Skin

Install on any repository

fossil config import dist/craftdesign-skin-instrument-sans.cfg -R /path/to/repo.fossil

For light mode:

fossil config import dist/craftdesign-skin-light-instrument-sans.cfg -R /path/to/repo.fossil

Changes take effect on the next page load. No server restart is required.

What fossil config import changes

The .cfg file sets seven configuration entries:

It does not touch repository content, users, permissions, ticket tables, or ticket templates.

Switch or revert

These are repository-level settings that a skin file cannot enable on its own:

# Enable full-text search so the Search menu link and ticket Full-text button work
fossil fts-config enable check-in wiki ticket forum document -R repo.fossil
fossil fts-config index on -R repo.fossil

# Optional: use a wiki page as the repository home page
fossil config -R repo.fossil set index-page '/wiki?name=index'

# Optional: adjust two users whose hashed chat/timeline colors look too close
# Visit /hash-color-test?rand in Fossil to preview alternate hash words
fossil setting user-color-map "alice alice4 bob bob9" -R repo.fossil

3. Installing the Ticket Workbench Templates (Optional)

The base skin .cfg styles Fossil's default ticket pages and saved SQL reports (/rptview) automatically. To replace Fossil's default /reportlist, /tktview, /tktnew, and /tktedit pages with the full Ticket Workbench, install the four TH1 templates from skin/tickets/:

File Fossil config key Page
skin/tickets/reportlist.th1 ticket-reportlist Ticket workbench (/reportlist)
skin/tickets/viewpage.th1 ticket-viewpage Ticket detail, inline edit, history (/tktview)
skin/tickets/newpage.th1 ticket-newpage New ticket form (/tktnew)
skin/tickets/editpage.th1 ticket-editpage Full edit form (/tktedit)

Single repository

python3 - <<'PY'
import sqlite3, time
repo = "/path/to/repo.fossil"
con = sqlite3.connect(repo)
now = int(time.time())
for key, fname in (
    ("ticket-reportlist", "skin/tickets/reportlist.th1"),
    ("ticket-viewpage",   "skin/tickets/viewpage.th1"),
    ("ticket-newpage",    "skin/tickets/newpage.th1"),
    ("ticket-editpage",   "skin/tickets/editpage.th1"),
):
    con.execute(
        "INSERT OR REPLACE INTO config(name, value, mtime) VALUES(?, ?, ?)",
        (key, open(fname).read(), now),
    )
con.commit()
con.close()
PY

Multi-repo server (skin/apply.py)

skin/apply.py applies skin/tickets/*.th1 to every repository that uses Fossil's default ticket-table. Repositories with a custom ticket-table (such as mirrored upstream projects) are left untouched unless their sidecar .meta file includes skin-tickets on line 5.

Schema auto-detection

The templates require zero schema changes and work cleanly under vuln-report=fatal. On each request, /reportlist probes whether optional columns exist on ticket and adapts automatically:


4. Using the Ticket Workbench (/reportlist)

State tabs and Deleted tickets

The top-left control switches between Open, Closed, and All.

Display modes

Switch modes in the top-right segmented control (list | table | board | summary):

Sort order

The priority | recent | oldest control orders List and Board views:

Quick queues and orthogonal role scope

Quick-queue pills beneath the header let you pivot in one click:

Role scope (scope=mine, submitted, mine_or_sub, involved, unassigned) is orthogonal to Open | Closed | All. Picking Mine or Submitted and switching to Closed or All keeps your role filter active instead of dropping it. The role facet popover offers all five scopes with live counts for the current state tab.

Timestamps (Human Time-of-Day)

All list, table, and board timestamps format automatically in the viewer's local timezone:

Without JavaScript, timestamps fall back cleanly to YYYY-MM-DD (UTC).

Reports popover and /rptview SQL reports

Click Reports ▾ in the header to open:

  1. Pinned views (if configured in ticket-common), linking straight to filtered workbench views.
  2. Saved SQL reports (Fossil's built-in reportfmt queries at /rptview?rn=N).
  3. Admin links (New report format, Pending moderation) when you hold the required capability.

On /rptview pages, custom SQL reports often paint rows with bright or named CSS colors (white, #f2dcdc, #cfe8bd). The skin applies a theme-aware color veil (--report-veil) and --link-on-tint link color so arbitrary report palettes stay readable at WCAG AA contrast in both dark and light builds.


5. Viewing, Creating, and Editing Tickets

Ticket detail (/tktview)

Composer: Write / Preview gate, slash snippets, and drafts

Because Fossil ticket artifacts are permanent, both /tktnew and the /tktview comment box include:

New ticket (/tktnew)


6. Per-Repo Ticket Configuration (ticket-common)

Two optional TH1 variables in Fossil's existing ticket-common script let each repository customize the Ticket Workbench with zero schema changes and zero SQL edits.

tkt_unassigned_aliases

A list of legacy or retired logins that should count as Unassigned (in addition to blank and nobody). Matching tickets:

Up to 8 custom aliases (plus nobody) are bound as SQLite parameters.

tkt_saved_views

A flat list of Label QueryString pairs defining reusable workbench views. Each entry:

Query strings accept any /reportlist parameter (st, view, sort, group, q, tp, pr, sv, sb, fs, scope, as, age, done).

Complete ticket-common example

# Existing choices (keep whatever your repository already defines)
set status_choices {Open Pending Closed Deleted}

# Treat retired or placeholder owners as Unassigned (shows "@user · reassign")
set tkt_unassigned_aliases {nobody miguel msofer}

# Pinned workbench views (flat Label / QueryString pairs)
set tkt_saved_views {
  {Blocking}           {st=open&pr=9}
  {Most Stale}         {st=open&sort=oldest}
  {Recent Closed Bugs} {st=closed&tp=Bug&age=30}
  {Zipfs}              {st=open&q=zipfs}
}

Applying ticket-common from the command line

To edit ticket-common in the web UI, go to Admin → Tickets → Common. To append the variables from the shell without disturbing existing definitions:

fossil config export ticket /tmp/tkt.cfg -R /path/to/repo.fossil
# or update the 'ticket-common' row in the repository's config table

7. Timeline, Chat, Mobile, and Accessibility


8. Building and Customizing

If you modify skin/css.txt, skin/header.txt, skin/footer.txt, or www/a11y.js, rebuild all four importable files:

python3 skin/build.py

Troubleshooting