Retrail/Configuration

Configuration

Site details, theme and footer options in settings.json.

Retrail is set up in settings.json in its folder. The file is read on the server on every request, so a saved change shows on the next refresh. Visitors never see the file.

settings.json
{
  "site": {
    "title": "Example Portfolio",
    "description": "Projects, skills and contact details.",
    "favicon": "/favicon.ico",
    "logo": ""
  },
  "theme": {
    "primaryColor": "neon-cyan",
    "defaultColorScheme": "dark",
    "radius": "sm",
    "containerSize": "md"
  },
  "footer": {
    "enabled": true,
    "text": "%sitename% • Made with Retrail",
    "links": [{ "label": "GitHub", "url": "https://github.com", "enabled": true }]
  },
  "blocks": []
}

blocks is the page itself. See the Page Builder.

site

OptionWhat it does
titleThe browser tab title, and the name used in link previews.
descriptionThe description used by search engines and link previews.
faviconThe browser tab icon, as a full URL or a file in public/.
logoReserved. Not shown yet.

theme

OptionDefaultWhat it does
primaryColorneon-cyanThe accent colour for buttons, badges and highlights.
defaultColorSchemedarkdark, light or auto to follow the visitor's device. Visitors can switch with the toggle in the footer.
radiussmCorner roundness: xs, sm, md, lg or xl.
containerSizemdHow wide the page gets: xs, sm, md, lg or xl.

primaryColor takes any Mantine colour, such as blue, teal, violet or orange, or one of Retrail's four neon colours:

ColourHex
neon-cyan#00f0ff
neon-green#00ff88
neon-purple#9933ff
neon-pink#ff007f

Dark mode uses a true black background.

OptionWhat it does
enabledSet to false to hide the footer.
textThe footer line.
linksLinks on the right, each with a label, url and optional enabled.
PlaceholderBecomes
%sitename%site.title.
%year%The current year.