The web interface's design

How the Salt web console looks and why: the mark, the salt band, the colour tokens, the type and the components. The tokens live in assets/css/app.css, the components in SaltDnsWeb.CoreComponents and SaltDnsWeb.Console.Components, the layouts in SaltDnsWeb.Layouts; this page and that code change together.

Salt shares one design vein with Karta and Kantoor: a calm tool with one ornament and one character. The rules they share are in the suite note DESIGN-VEIN.md (kept outside this repository); this page says what Salt does with them.

Direction

The console is a tool for operators who look at DNS records: dense tables, exact values (zone names, record data, keys and tokens), states that can be read at a glance. It is quiet, with one ornament and one character:

  • The salt band runs along the top of every page: a sun-yellow line over salt navy, carrying a small repeating row of white salt pyramids. It is the only decoration; nothing else is striped, tilted or gradient.
  • The mark — the salt and the sun — stands beside the product name. The name is never part of the picture.

The mark and the name

FileWhatWhere
priv/static/images/mark.svgThe salt and sun picture, with the salt pyramids and the shaker. Wide.The sign-in page and the front page, next to the wordmark.
priv/static/images/mark-small.svgThe simplified square mark, on its own white tile.The sidebar and the top bar, and any place under 28 px.
priv/static/images/logo.svgThe full logo with the lettering as outlines.Downloads and documentation; not used in the interface.
priv/static/images/logo.png, mark.png, icon-192.png, icon-512.png, apple-touch-icon.png, priv/static/favicon.icoRendered copies.The README, the manifest and browser icons.
  • The name is never part of the image. "Salt" is HTML text next to the mark, the wordmark: Nunito ExtraBold (800), letter spacing −0.015 em, salt navy on light backgrounds and white on dark ones (s-wordmark). The image then has an empty alt; the text names the product.
  • The wordmark never wraps. s-wordmark sets white-space: nowrap, so "Salt" stays on one line even in a narrow top bar; the space around it gives way instead.
  • Lockup: the mark, then the wordmark, centred on each other vertically; the gap is a quarter of the mark's height.
  • Clear space: keep a quarter of the mark's height free on every side of the lockup.
  • Minimum size: the wide mark at least 28 px high; below that use mark-small.svg, which works down to 16 px.
  • Dark backgrounds: the wide mark is one drawing for both colour schemes; its navy outlines get a light halo from the stylesheet (.s-mark under prefers-color-scheme: dark). The small mark needs none: it brings its own white tile.
  • Do not recolour, outline, rotate or crop the mark, put text into it, or set it on a busy background.
  • The SVG files use presentation attributes only: no <style>, no script and no link to anything outside the file, so they can be served under a strict content security policy.

Colours

"The colours of Salt are salt navy and sun yellow" — Bonaire's flag colours, taken from the mark.

NameValueUse
Salt navy#0d2f6bprimary (the primary button in the light scheme); the wordmark; the band's ground.
Sun#ffc20ebrand: the current navigation item's marker, the tabs' active rule and the band's line. Never text: it is too light on white.
Sun deep#7a5a00 / #ffd75ebrand-deep: text on brand-soft, such as the "pending" badge.
Paper#f4f1e6The background of the sign-in pages.
Salt blue#2a55a3 / #6fa6e0chart: bars and lines of charts.

Tokens

Every colour on a page is a token, defined once per colour scheme on :root (--s-*) and exposed to Tailwind (bg-surface, text-muted, border-line, …). The scheme follows the browser (prefers-color-scheme); there is no switch, because a switch would need a script before the first paint, which the content security policy does not allow inline. Pages use the tokens only: never a raw colour, never dark: variants.

TokenLightDarkUse
canvas#f5f6f9#101116The page behind the panels.
surface#ffffff#17181fPanels, the sidebar, the top bar, inputs.
sunken#eef0f4#1e2029Table headings, code, hover.
line#dfe2e9#2a2d39Borders and dividers.
line-strong#8a90a2#6b7184Input borders (3:1 against their surface).
ink#16161b#ecedf2Text.
muted#5a6072#a3a8b8Secondary text (≥ 5.4:1 on surface and sunken).
link#1d4589#9cc0f2Links in text, tables and forms.
primary / on-primary#0d2f6b / white#a9c4f0 / #0d2f6bThe primary button.
brand#ffc20e#ffc20eThe current navigation item's marker and the band's line.
brand-soft#fff3d1#332a0eThe current navigation item's background.
brand-deep#7a5a00#ffd75eText on brand-soft.
focus#a16207#ffd75eThe focus ring.
danger / on-danger#b42318 / white#ff8a80 / #16161bButtons that remove or stop.
paper#f4f1e6#1b2440The sign-in pages' background.
chart#2a55a3#6fa6e0Bars and lines of charts.

Status tones, each a strong colour for text and icons and a soft one for backgrounds (text on its soft colour ≥ 4.7:1 in both schemes):

ToneLight (text / soft)Dark (text / soft)Means
ok#157a43 / #e3f4ea#6fd39a / #13301fDone, working: active, verified, saved.
warn#8a5300 / #fff1d6#f5c26b / #33260eWaiting or needs attention: pending checks, retries.
bad#b42318 / #fde8e6#ff8a80 / #3a1715Failed for good, or refused.
info#2d47a0 / #e6ecfa#a9bcf5 / #1b2442Neutral events: signing, checking, notes.
neutral#4a5063 / #edeff3#b4b9c8 / #252833Not started or over: off, disabled.
violet#6941c6 / #f0ebfc#c4b0f5 / #2a2142Deliberately set aside.

Sun is the brand's colour, not a state's: no state uses it as its text, so that the current navigation item is never mistaken for a warning.

The band

s-band is a 12 px strip with a 3 px sun line, a salt-navy ground and the white pyramids as a repeating inline SVG background (no image request). It is rendered once, in root.html.heex, so every page has it and no page can forget it. It is the only ornament: nothing else is striped, tilted or gradient.

Type

  • Nunito (SIL Open Font License; priv/static/fonts/nunito-latin.woff2, a Latin subset of the variable font, 200–1000; licence in priv/static/fonts/OFL.txt) for the wordmark and for headings (h1–h3, through font-display). Its rounded forms carry the brand's voice.
  • The system's UI font (font-sans) for everything else: body text, tables, forms, numbers. It is the most legible face on each platform at small sizes, and it has tabular figures (tabular-nums is on for the whole page, so columns of numbers line up; Nunito has none).
  • The system's monospace font (font-mono) for values that are copied or compared character by character: zone names, record data, ids, keys, tokens and client snippets.

Scale (rem at a 16 px root; the body is 14 px):

RoleSizeWeight
Page title20 px, 24 px from sm600
Panel title15 px600
Body, tables, inputs14 px400
Secondary text, help, captions13 px400
Table headings, badges12 px500
Wordmark22 px (sidebar), 48–60 px (sign-in)800

Text is set in sentence case, including page and panel titles, labels and buttons ("Account settings", "Change email", "Save password"); only proper nouns (Salt, DNSSEC, TSIG, ACME) keep their capitals. No all-capitals labels.

Space, size and density

  • A 4 px grid (Tailwind's spacing scale). Page gutters 16 px on phones, 24 px from sm, 32 px from lg; content at most 72 rem (1152 px) wide.
  • Between panels 24 px (space-y-6); inside a panel 16 px (p-4).
  • A form stacks its fields and its button row 16 px apart. The stylesheet gives every form a column with a 16 px gap, so a page does not repeat the spacing and every form, including a new one, gets it. A form whose children sit side by side (a filter bar, a role picker) opts out with s-inline. Fields laid out in a grid set gap-y-4 themselves, because the form's gap does not reach inside the grid.
  • Tables are dense: cells 12 px × 8 px, 14 px text, one line where possible. Rows are not striped; a row is highlighted on hover.
  • Controls are 36 px high (h-9), 28 px for small buttons in tables and panel headers (size="sm").
  • Corners: 6 px for controls (rounded-md), 8 px for panels (rounded-lg), 12 px for the sign-in card. Badges are pills.

Layout

  • Console (Layouts.console/1): a 16 rem sidebar with the lockup on top, the organisation switcher and the areas of the organisation (Zones, Credentials, Members). The current item carries a sun marker, a brand-soft background and aria-current="page". The sidebar is sticky, scrolls on its own, and on small screens is hidden behind the menu button.
  • Top bar: the current organisation, the signed-in address and Sign out. Below 1024 px the breadcrumb-like context shows only the current page, and tables scroll sideways inside their panel. On the app pages' top bar, below sm the account links (Console, Settings, Log out) sit in a compact <details> menu instead of a row, so the wordmark and every link stay on one line at 360 px; a native details needs no inline script.
  • Page: page_title/1 (title, badges, one line of context, actions on the right), then panels. Full-width panels by default; two columns only where two independent things sit side by side, and the more important one first.
  • App (Layouts.app/1): the top bar with the lockup for the front page and the account settings.
  • Auth (Layouts.auth/1): the band, the lockup on paper, one card 24 rem wide.

Components

All in SaltDnsWeb.CoreComponents unless noted; a page uses these and adds layout utilities only.

ComponentFor
<.header>The page's title, its context line, its actions (account pages).
<.panel>A titled section; flush for a table that fills it; :actions in its header.
<.table>Every list of records; class on a column aligns numbers or hides it on small screens.
<.button>Actions; a link when it navigates. primary once per form or page, plain for the rest, danger for what removes or stops (with data-confirm).
<.input>Every form field: label above, help below, errors below that.
<.empty_state>What an empty list says: what is missing and what to do about it, with an id (no-…).
<.badge>A short label with a tone (neutral, ok, warn, bad, info, violet, brand).
<.flash>The result of an action, at the top right. Layouts.flash_group/1 holds them and the connection notices.
<.callout>A notice in the page: a frozen zone, a secret shown once, the local mail adapter.

Console-specific, in SaltDnsWeb.Console.Components:

ComponentFor
<.page_title>The console page's title, badges, context and actions.
<.status_badge>A record's state in the console's atom tones (:ok, :attention, :muted, :warn, :danger, :info). The words carry the meaning.
<.tabs>The sections of a zone; the active tab has a sun rule.
<.copy_line>, <.copy_button>A value to copy, in monospace, with a copy button.
<.code_block>A client snippet with a copy button.

On a phone

Below sm (640 px) the console follows these rules; wider screens are not changed.

  • Touch targets are 44 px. Buttons of both sizes, text inputs, selects, the tab links, the menu, the copy button and disclosure summaries are at least 44 px high (max-sm:h-11, max-sm:min-h-11).
  • Text and actions. A notice with buttons (the ownership band) gives the text the full width and wraps the buttons below it (w-full sm:w-auto sm:flex-1); never make the text a flex-1 item beside buttons.
  • Tabs scroll, and say so. Components.tabs/1 brings the active tab into view and fades the edge that has more behind it (data-edge, set by its hook).
  • Values wrap deliberately. Monospace values use [overflow-wrap:anywhere] (never break-all), a long value (over 100 characters) shows three lines with Show all and Copy.
  • Tables. A table with several columns or actions takes stack: each row becomes label and value lines with the actions below, instead of scrolling sideways with a button out of sight.

Accessibility and the content security policy

The target is WCAG 2.2 AA.

  • Contrast: text ≥ 4.5:1, large text and UI parts (input borders, focus ring, icons that carry meaning) ≥ 3:1, in both schemes. Sun is never text on a light background.
  • Keyboard: everything works with the keyboard in reading order. The focus ring (2 px, the focus token, 2 px offset) shows on :focus-visible only. On the sign-in pages the first field takes focus.
  • Structure: one h1 per page (<.header> or <.page_title>), h2 per panel; landmarks (nav "Organisation", main); tables with th scope="col"; every input with a label; a field's errors right under it.
  • State is never colour alone: badges carry words as well as a tone.
  • Flash notices are role="status" (errors role="alert") in a polite live region.
  • The pages run no inline script and no style attribute, so a strict content security policy holds. The one piece of browser code, the copy button, is a colocated hook bundled into app.js.
  • Fonts and images are served from this application only (/fonts, /images).