A small classifieds theme that puts type first. It uses native HTML elements, one hand-written stylesheet and almost no JavaScript. It is also the reference for the theme chrome contract.
- Shopclass 7.0.0 or later
- PHP 8.0 or later
- No plugins needed.
- Go to Appearance → Manage themes.
- Find Folio in Browse, or upload
folio_X.Y.Z.zipfrom the releases. - Click Install, then Activate.
- Go to Appearance → Folio:
- Logo: shown in the masthead instead of the site name. A transparent PNG fits best.
- Brand colour: replaces the navy of the masthead and footer.
- Footer note: one line above the copyright. Leave it empty to omit it.
- Go to Appearance → Manage widgets to fill the Masthead and Colophon areas.
<dialog>for the seller contact form,<details>for filters,<search>around the search fields.- Light and dark come from
color-schemeandlight-dark(). Right-to-left comes from logical properties. - One stylesheet,
style.css, with design tokens as CSS variables at the top. - A small inline script in the footer. Links work without it.
- No build step. What is committed is what ships.
- Core draws the account and sign-in pages inside Folio's masthead and footer. Folio ships none of those views, and
style.cssstyles core's markup. To change a page, add its file to the theme.
Edit the variables at the top of style.css to change the palette or type scale. Use a child theme to keep changes through updates.
- Folio declares its header and footer with
osc_add_theme_support('chrome', ...)infunctions.php. See the theme chrome docs and the account pages docs. - Hooks the theme fires:
header(throughosc_head()),footer,item_detailanditem_contact_form. Core fires the account and form hooks inside Folio's chrome. - Strings use the text domain
folio. Runnode bin/i18n.mjsto updatelanguages/folio.pot. It needs only Node. No translations ship yet. - To work on the theme, clone it and symlink it into
oc-content/themes/folio. - A
vX.Y.Ztag runs.github/workflows/release.yml, which publishesfolio_X.Y.Z.zip.
Report problems at github.com/mindstellar/theme-folio/issues.
GPL-3.0-or-later. Copyright Navjot Tomer (Mindstellar) and contributors.