Themes, skins and languages
How a form looks is set per form, not per page: the same page can be a quiet business sheet in one place and a friendly survey in another.
Eight themes
A theme makes a form look at home in an app built on a design system people know. Each is a set of the form’s own tokens, light and dark, over the skin it suits, with a few shapes of its own: Material’s filled boxes, Apple’s pill buttons, shadcn’s segmented tabs, Google Forms’ question cards. They are looks in those systems’ style, not their kits. A theme names its typeface (Roboto, Segoe, SF, Geist) and falls back to the system’s when your app has not loaded it. Every pair of colours people read is checked at WCAG AA, light and dark.
"look": { "theme": "material" }
mountViewer(host, { page, dataSource, theme: 'google-forms' }); // viewer.setTheme('fluent') switches it live
The page’s own accent, font, spacing, corners and colours still win over its theme, so { "theme": "bootstrap", "accent": "#1f7a4d" } is Bootstrap in green. A skin given to the viewer wins over the theme’s. The themes are material, fluent, apple, bootstrap, shadcn, ant, odoo (labels beside, as in a record sheet) and google-forms.
Three skins
underline— labels beside the values, inputs as a single underline, square corners. The look of a business record sheet, for screens people fill all day.outlined— labels above boxed inputs, rounded corners, a blue accent. Ant Design style, for surveys and sign-ups.quiet— the outlined skin's page, each value plain words until it is wanted, as Azure DevOps draws a work item. See the quiet look.
mountViewer(host, { page, dataSource, skin: 'outlined' }); // viewer.setSkin('quiet') switches it live
A page can name its own skin, "look": { "skin": "quiet" }; the viewer's skin, when given, wins over it, as a theme's does.
A skin applies only inside its own form (.fd-form[data-fd-skin="…"]), so two forms with different skins can share a page, and Fieldia's styles never leak into yours.
Radios and tick boxes are Fieldia's own in every skin and theme — a field's, a group's options, a matrix's, a table's tick cells, a list's rows, a dialog's: 18px, pressed anywhere in 24px round them, filled in the accent when chosen (a dash for some), ringed when the keys reach them, grey when they cannot be changed, their words in the body's colour. The browser's input stays under each (a form posts it; the keys and a screen reader work it). With forced colours (Windows High Contrast) they are the system's own; on paper the one chosen prints chosen. Four tokens draw them, set in CSS or by the viewer's tokens option ('tick-size', …): --fd-tick-size, the box (18px; its tick, dot and dash keep their shape at any size, and it is pressed in 24px round it however small), --fd-tick-line, its edge's width (1.5px), --fd-tick-edge, its edge's colour (the muted one), and --fd-tick-radius, a tick box's corners (2 to 4px from --fd-control-radius; a radio stays round). To match a design system's own box:
.fd-form {
--fd-tick-size: 14px; /* the box */
--fd-tick-line: 1.5px; /* its edge */
--fd-tick-edge: #1f2328; /* in ink */
--fd-tick-radius: 3px; /* its corners */
}
Set appearance: auto on your own widget's input to keep the browser's.
The quiet look
In the quiet look a value reads as plain words, as a label does: no box, no arrow, a state with its coloured dot. Pointed at, a light box and the control's own sign appear — the chevron of a choice, a date's calendar, a link's ×; nothing opens and nothing moves. Clicked or tabbed into, it is its editor, ringed in the focus colour: a choice opens its options, a state its dots with the one picked ticked, a date its calendar, formatted text its toolbar. Leaving, it reads as words again, showing the new value; Escape puts back what the field held as it was entered. On a touch screen one tap goes straight to the editor. An empty field says what to add, in the muted colour — its placeholder, else “Add story points” from its label. Fields that are already as quiet as they can be keep their own face: a tick box, a switch, stars, a scale, a slider, a progress bar, a statusbar, radios, pictures, tables, files, code and maps.
A whole page wears it with the quiet skin; a section, or a single field, can be quiet on its own, so a record's header reads as words while the rest keeps its boxes — and "quiet": false keeps a field or a section in boxes inside a quiet page:
{ "type": "section", "id": "header", "quiet": true, "labels": "beside", "children": [
{ "type": "field", "id": "f-state", "field": "state", "widget": "dot", "options": { "label": true } },
{ "type": "field", "id": "f-reason", "field": "reason",
"readonly": "state in ('resolved', 'closed')", "readonlyReason": "Set by the workflow when the bug is resolved" }
] }
A field a rule keeps read-only shows a lock by its label, and readonlyReason — on the field, or on the section whose rule locks it — says why, in a bubble, when the lock or the value is pointed at, or the lock is reached with Tab. A value read-only by its nature (worked out, or always read-only) has no lock unless the page says why. Try the work item.
"look": { "quietHints": false } has an empty quiet field show nothing at rest, its label alone saying what it is, as a work item's Planning does; the page's own placeholder still shows. In the designer it is Empty quiet fields, on the Look tab. Try the work item in a popup.
A date is typed in Fieldia's own box, in the page's order: day, month, year, as English, Arabic, French and German pages write dates. "look": { "dateOrder": "mdy" } has it typed month first, and "ymd" year first; a date written year first, 2026-10-13, is read whatever the order. The order is the box's placeholder, in the page's words, and once the box is left it shows the date in words, 13 Oct 2026, so how it was read can be seen. That is read back too, its month in words in English, Arabic, French or German (15 Oct 2026, 15 أكتوبر 2026, 15 oct. 2026, 15. Okt. 2026, Oct 15, 2026), so a date copied from a list or another box pastes, as does an instant a server writes (2026-10-15T14:30:00Z). Arabic-Indic and Persian digits are read too. A year of two digits could be either century, so it is never given one: the box says both it could be, and waits for the year in full. A date that does not exist stays in its box with why. Try a date on an Arabic page.
Restyle with custom properties
Both skins are built from CSS custom properties on .fd-form. Override them to match your product:
.fd-form[data-fd-skin="outlined"] {
--fd-accent: #0f766e; /* buttons, focus, the chosen option */
--fd-accent-soft: #ccfbf1;
--fd-radius: 12px; /* cards and sections */
--fd-control-radius: 8px; /* inputs and buttons */
--fd-font: "Inter", system-ui, sans-serif;
}
The others: --fd-text, --fd-muted, --fd-page, --fd-surface, --fd-border, --fd-border-strong, --fd-focus, --fd-focus-ring, --fd-error, --fd-success, --fd-warning, --fd-info (each with a -soft partner), --fd-pad-x, --fd-pad-y, --fd-gap-x, --fd-gap-y, --fd-label-weight and --fd-label-width.
Three more a host may set, each falling back to one of the above where it is not: --fd-link (a link's words; the accent), --fd-band (the band of fields under a record's head; the page) and --fd-help (a help box's ground; the fill). The viewer's tokens option takes them by name, as link, band and help.
A look for each kind of part
A page can say how each kind of part looks, over its own look, as SurveyJS and Vueform theme each kind of component: text boxes, choices, groups, buttons and tables, each with the few things both skins draw on it. The designer sets them on its Look tab; in the page they are look.parts, any setting left out drawn as the page draws it:
"look": {
"parts": {
"inputs": { "background": "#fff7e6", "corners": "round", "textSize": "large" },
"choices": { "accent": "#1f7a4d", "border": "#1677ff" },
"groups": { "background": "#fbfaf7", "border": "#d6cfc2" },
"buttons": { "accent": "#6941c6", "corners": "round" },
"tables": { "background": "#eef2f7", "textSize": "small" }
}
}
inputs— text, number and date boxes and dropdowns; their accent is the edge of the box being typed in and the day picked.choices— rings and ticks take the accent; a scale’s points, Yes and No, pictures and a ranking’s lines take the ground, border and corners too.groups— sections, a record’s card and a repeating group’s cards. The underline skin draws no card round a section; given a background or a border, it does.buttons— Send, Next, Save, Add another: their colour, corners and size of words.tables— tables of lines and a matrix’s grid: the heading row’s ground, the lines, the words.
Corners are square, soft or round, as the page’s; text is small (13px) or large (16px). Words always stay readable: a colour they could not be read on is drawn lighter or darker, only as far as it has to be — a ground stays light on a light page and dark on a dark one, and an accent reads at 4.5:1 on the page and on every ground given. A border is drawn as given. Each kind’s settings reach the stylesheet as its own custom properties (--fd-inputs-bg, --fd-buttons-accent, …), named on the form (data-inputs="bg radius"), so your own CSS can follow them too.
While it waits
Everything that waits for an answer waits the same way, as the app, the page or a part of it says. Drawn the first time (first), a form, a list or a map shows a skeleton shaped like what comes — the list’s rows in its own columns, cards on a phone, the form’s boxes under their labels. Asked again (refresh) — a search, another page, a calendar’s next week — what is shown stays where it is, a thin bar along its top, until what replaces it comes. The next rows put under those shown (more: endless scroll, a tree’s children) say “Loading more…” where they will come; a link’s suggestions (search) say “Searching…” in the list; a button’s steps (action) keep the button busy, and Save stays where it was pressed, busy, while it saves. A quick answer shows nothing at all — never empty boxes before the skeleton; a loader that shows stays long enough never to flicker; a failure says why in its place, in the error’s colour, with Retry — or, in a toast, names what failed.
{ "loading": { "first": "spinner", "refresh": "dim", "skeleton": "pulse", "delay": 250, "timeout": 20000 } }
first:skeleton(default),spinner,progress,text,none,custom.refresh:keep(default),dim,skeleton,spinner,none,custom.more:row(default),spinner,skeleton,none,custom.search:inline(default),spinner,none,custom.action:button(default),bar,overlay,none,custom.- Looks:
skeletonshimmer|pulse|static;spinnerring|dots;progresstop|inline. Timing in milliseconds:delay150,minShown300,slowAfter5000 (“Still loading…”),timeoutnone. A failure:errorinline|toast|custom.
The app sets its own defaults with the viewer’s loading option, and draws custom itself — Fieldia still keeps the time, aria-busy, what a screen reader hears and the clean-up; a list, a related list and a map say their own in loading, a field with a search in options.loading; the most specific wins. Every theme gives the shapes, the ring and the bar its own colours, light and dark (--fd-skeleton, --fd-skeleton-shine, --fd-shimmer, --fd-spinner, --fd-bar); nothing moves for a reader who asks for no motion, and nothing shows on paper.
const viewer = mountViewer(host, {
page,
dataSource,
loading: { first: 'custom', custom: ({ container, slow }) => container.append(myLoader(slow)) },
});
viewer.on('loadingstart', ({ moment, part }) => appBar.start(part));
viewer.on('loadingend', ({ part, duration, failed }) => appBar.end(part));
Try every way on a slow network in Loading, as you like it; the designer sets the page’s on its Look tab, under While it waits, with a preview of each, its times in seconds.
Where help shows
A field's help shows as words under it, or behind a (?) beside its label, as Flectra shows it — shorter on a busy sheet — or both. The page sets its way in look.helpShown, and any field may have its own helpShown: below (the default), tooltip or both. The (?) opens on hover, on focus or with a tap, and Escape closes it; the box stays described by the help, so a screen reader still says it. In the designer it is Help, on the Look tab for the page and under a field's Layout.
{ "look": { "helpShown": "tooltip" } }
A read-only field shows as its value's words with look.readonlyShown: "text", as Flectra draws it — a choice by its label with no arrow, an amount with its currency, a date as people write it, a link by its record's name (a link that opens it, where the app can show it), a mail, phone or web address as a link to it, and long words wrapped rather than cut at the box's edge; empty, it draws nothing. A whole form locked by the Edit switch reads the same way. "box", the default, keeps the greyed boxes. Yes or no boxes, tables, tags, files and the like keep their own look either way. In the designer it is Read-only fields, on the Look tab.
{ "look": { "readonlyShown": "text" } }
Eight languages
Fieldia's own words — Save, Next, validation messages, “Step 2 of 3”, the upload and search prompts — come in English, Arabic, German and French, and in Turkish, Persian, Urdu and Spanish:
mountViewer(host, { page, dataSource, locale: 'ar' }); // 'en' | 'ar' | 'de' | 'fr' | 'tr' | 'fa' | 'ur' | 'es'
Turkish, Persian, Urdu and Spanish are machine-assisted, not yet reviewed by a native speaker. Every word English has is there, with the same blanks, but no native speaker has read them yet: corrections are welcome, and labels or addLanguage put your own over any of them.
The packages carry English, and fetch every other language — Arabic, German and French, Turkish, Persian, Urdu and Spanish — each in a chunk of its own where it is spoken — the viewer draws a page in one once its words have come, so its first paint is in them, and an app never carries a language it does not show. The script tag carries English, and each other language in a small script of its own to add after it — fieldia.ar.js, fieldia.de.js, fieldia.fr.js, fieldia.tr.js, fieldia.fa.js, fieldia.ur.js, fieldia.es.js; see A script tag.
Arabic, Persian and Urdu lay the whole form out right to left, and a number typed in their digits (٠١٢٣…, ۰۱۲۳…) reads as one. Dates and numbers are written by Intl in the page's language, in Latin digits and on the Gregorian calendar a date is kept in, in Persian too. Pass dir: 'rtl' or dir: 'ltr' to choose the direction yourself. Any word can be replaced with labels:
mountViewer(host, { page, dataSource, labels: { submit: 'Send my answers' } });
The page's own text — titles, labels, help, options — is the page author's. To offer a page in several languages, keep one page per language, or generate the page in the reader's language on your server.