Styling with CSS
A theme gives a form, a quiz or a survey its colours, its font and its shapes. When that isn’t enough, the theme’s custom CSS, the language web pages use to describe how they look, changes any part of the page you like. A consulting firm might make its client onboarding form match its website. A training company might turn a long course application into tidy cards, one per section, and give its certification exam the same look.
The CSS belongs to the theme, not to one form. Every form, quiz and survey shown in that theme gets it, on its public page and wherever it is embedded, and so does every interactive document, inside its document area. One change restyles all of them.
Available when: your role has the Manage themes permission
If nobody on your team writes CSS, you can still get far by copying a recipe from this page and changing the colours. The complete example further down is ready to paste.
Where the CSS lives
Section titled “Where the CSS lives”-
Open Themes in the Organization group of the sidebar.
-
Open one of your organization’s themes, or make a new one. Built-in themes can’t be changed. To start from one, pick it in a form’s Look and press New theme: the editor opens on a copy. Duplicate in the list copies one of your own.
-
Open the Advanced section and write or paste your CSS into Custom CSS.
-
Save the theme. Every page shown in it gets the new look the next time it is opened.
Which theme a page uses is chosen with the page: in the Look section of a form’s settings, and in Look in a quiz’s, a survey’s or an interactive document’s settings. Picking a theme needs only the permission for that form, quiz, survey or document, so the people who write CSS and the people who build forms can be different people.
To give a single form a look of its own, give it a theme that nothing else uses.
The look you start from
Section titled “The look you start from”A new form, quiz or survey gets your organization’s default theme, which is Organization branding until you choose another. That is the Doxtly neutral design in the accent colour of your branding: dark text and plain outlined fields on a white card over a pale warm grey page, the Inter font, small rounded corners, and the buttons, links and chosen options in your accent colour, or in Doxtly neutral’s dark navy while your branding has none. There is no frame around sections and no Doxtly branding. The other themes change the colours, the font and the shapes from there.

What changes with where the page is shown:
| Where the page appears | Width | Font | Page background |
|---|---|---|---|
| Its own public link | A card up to 760 px wide on your organization’s page | The theme’s font | The theme’s background, around the card |
| Embed script | The full width of your container, less 8 px of padding | Inherited from your page, unless the theme sets one | Your page’s, unless the theme sets one |
Iframe with _embed=1 (the widget and the ready-made snippet add this) |
The full width of the frame, less 8 px of padding | The theme’s font | The theme’s background |
An iframe that points at a form’s address without _embed=1 shows the form alone, in a centred column up to 900 px wide. Ways to embed: forms and quizzes and surveys.
What you can change without CSS
Section titled “What you can change without CSS”Try these first, because anyone on your team can change them later without touching code.
| Where | What |
|---|---|
| The theme’s Colours group | Primary and accent colours, the background and its fade, the card and its opacity, the text |
| The theme’s Type group | The font and the text size |
| The theme’s Shapes group | Corners, buttons, options as a list or as cards, spacing |
| A form’s elements in the designer | Heading levels, image width and alignment, video aspect ratio, dividers, container columns and gaps, rating icons: see Elements and fields |
| A quiz’s or a survey’s Look | The cover and the progress style: see Quiz settings |
The words on the buttons are set with the form, quiz or survey too: CSS can restyle a button, but its label comes from there.
How your CSS is applied
Section titled “How your CSS is applied”It stays inside the page
Section titled “It stays inside the page”Everything a form, a quiz or a survey shows sits inside one element, .doxtly-form-scope, and Doxtly puts it in front of each of your selectors before the CSS reaches the browser. That keeps your rules away from everything else on the page: a website the form is embedded in, and the parts of the public page that Doxtly draws around the form, such as your organization’s bar, the cookie consent, the “powered by” note and the legal links. This rule:
.doxtly-field--name-email input { background: #fffbe6;}reaches the browser as:
.doxtly-form-scope .doxtly-field--name-email input { background: #fffbe6;}What this means for you:
- Your rules beat the page’s default styles in most cases, because the prefix adds weight and your CSS loads last. The exceptions are field states, covered in Colours for every state.
- Rules inside
@media,@supports,@containerand@layerget the prefix as well, however deep you nest them.@keyframesand@font-facestay as you wrote them. - Lists inside a selector, such as
.doxtly-field:is(.vip, .urgent), work as written.
html, body and :root
Section titled “html, body and :root”In your CSS, html, body and :root stand for .doxtly-form-scope itself: the area the theme paints its background on, around the form. They never mean the whole browser page. This is how you set a background, or define CSS variables that every part of the page sees:
body { background: #f3f6f8;}
:root { --brand: #0b5d7a;}The same holds wherever the page is shown: on the public link, in an iframe and with the embed script, with or without style isolation.
What saving refuses
Section titled “What saving refuses”Saving a theme checks its CSS and refuses it, saying why, when it holds any of these:
| Refused | Why |
|---|---|
@import, @charset, @namespace, and any at-rule other than @media, @supports, @container, @layer, @keyframes and @font-face |
They load other files or change how the whole page is read |
expression(), behavior and -moz-binding |
Old ways of running code from CSS |
javascript: and vbscript: |
Addresses that run code |
A url() that is not a data: image (PNG, JPEG, GIF, WebP, SVG) or a data: font (WOFF, WOFF2) |
An address on another server would tell that server the IP address of everyone who opens the page |
The < character anywhere |
It could close the stylesheet early |
| More than 20,000 characters |
So pictures and fonts go into the CSS itself, as data: addresses. Anything else is not checked: a rule with a typo does nothing, and an unclosed { can swallow every rule after it. Open a page that uses the theme after you save. A stray } is dropped and does no harm.
CSS written before themes existed
Section titled “CSS written before themes existed”Before Doxtly 3.3.0, a form kept its CSS with the form, in a Custom CSS editor in the designer. That editor is gone. The upgrade to 3.3.0 moved each form’s CSS onto a theme named after the form, “Client onboarding – style” (in your organization’s language), which keeps the form’s look: the theme it had, or the standard look if it had none. Forms of one organization with the same CSS and the same theme share one such theme. Quizzes never had CSS of their own in the app.
The pages look as they did, with two exceptions:
- Parts that a theme refuses, such as an
@importof a Google font, a picture from another site or anything that runs script, are left out of the page. The rest applies as before. Replace those parts, for example with adata:address, and save the theme again. bodyandhtmlrules now style the form’s own area,.doxtly-form-scope, instead of the whole browser page. Seehtml,bodyand:root.
An exported form file from before 3.3.0 still imports: the form gets such a theme when you save it. See Import and export. Through the API, a form no longer takes customCss: see Forms.
What your CSS reaches
Section titled “What your CSS reaches”| Reached | Not reached |
|---|---|
| Everything in a form: fields, sections, buttons, progress | The loading placeholder |
| Error messages and the message shown when a submission fails | The password prompt of a protected form, quiz or survey |
| The thank-you message and the signing messages | The message for a page that doesn’t exist or failed to load |
| Select menus, date and time pickers, the signature dialog | The message for a quiz or survey taken only through personal links, opened without one |
| The message for a link with missing link parameters | |
| A quiz’s or a survey’s introduction, its questions, its result, the answers and the certificate | |
| The message for a quiz or survey that is not open yet, closed or full | |
| A released result opened from its email |
The right-hand column appears before the page knows its theme, so the CSS is not there yet. These screens always keep the neutral look. The one way to style them is with your own site’s CSS when an embedded form has style isolation turned off.
In an interactive document, the CSS of the document’s theme applies inside the document area: to the documents and the forms placed in it, not to the page’s header or the action bar. The forms there take the document’s theme, not their own. There, .doxtly-form-scope takes no space of its own, so a background set on body or :root doesn’t show; CSS variables defined there still apply. The screen where your team edits a submission keeps Doxtly’s own design.
Adding your own classes
Section titled “Adding your own classes”Sometimes you want to style a group of form elements that have nothing in common, for example three fields that only your finance team fills in. Give them a class of your own and write one rule for it.
| Where to set it | What it goes on |
|---|---|
| CSS class in the Styling group of an element’s properties | The element, for every element type |
| Submit button CSS class in Settings, General section, Submit button card | The submit button |
| Next button CSS class in Settings, Pages section | The Next button of a multi-page form |
| Previous button CSS class in Settings, Pages section | The Previous button of a multi-page form |

Type the name without a dot, like finance-only. Separate several classes with a space. In your CSS, use a dot as usual:
.finance-only { border-left: 3px solid #0b5d7a; padding-left: 12px;}Your class is added after the generated ones:
<div class="doxtly-element doxtly-element--field doxtly-field doxtly-field--text doxtly-field--name-iban finance-only">A class of your own only helps on the pages that use it. Since one theme serves many forms, prefer the doxtly- classes below for rules every page should get.
Class reference
Section titled “Class reference”Every part of a page carries a predictable class that starts with doxtly-, so you never have to guess at generated names. Quizzes and surveys draw their questions the way forms draw fields, so a rule for a field, an option or a button styles all three. One rule for .doxtly-button--submit colours a form’s submit button and the button that sends a quiz or a survey.
A form
Section titled “A form”.doxtly-form-scope├─ .doxtly-page│ ├─ .doxtly-alert .doxtly-alert--error when a submission fails│ ├─ .doxtly-status replaces the form when it is sent│ └─ .doxtly-form│ ├─ .doxtly-wizard-progress│ └─ form│ ├─ .doxtly-element--header, --paragraph, --image, --video, --divider│ ├─ .doxtly-field│ ├─ .doxtly-element--container│ │ └─ .doxtly-field│ ├─ .doxtly-element--section│ │ ├─ .doxtly-section-title│ │ ├─ .doxtly-section-description│ │ └─ .doxtly-field│ ├─ .doxtly-element--dynamic_fieldset│ │ ├─ .doxtly-fieldset-title│ │ ├─ .doxtly-button--add-row│ │ ├─ .doxtly-fieldset-row│ │ │ ├─ .doxtly-field│ │ │ └─ .doxtly-button--remove-row│ │ └─ .doxtly-fieldset-empty│ └─ .doxtly-actions│ └─ .doxtly-button--prev, --next, --submit└─ .doxtly-popups menus, pickers and dialogsA quiz or a survey
Section titled “A quiz or a survey”.doxtly-form-scope├─ .doxtly-page│ └─ .doxtly-quiz or .doxtly-survey│ ├─ .doxtly-intro before it starts│ │ ├─ .doxtly-greeting│ │ ├─ .doxtly-description│ │ ├─ .doxtly-intro-facts│ │ │ └─ .doxtly-intro-fact│ │ └─ .doxtly-button--start│ ├─ .doxtly-taking while it is answered│ │ ├─ .doxtly-alert│ │ ├─ .doxtly-taking-header│ │ │ ├─ .doxtly-progress│ │ │ └─ .doxtly-timer│ │ ├─ .doxtly-navigator│ │ ├─ .doxtly-taking-page│ │ │ └─ .doxtly-form│ │ │ ├─ .doxtly-section-title, .doxtly-section-description│ │ │ └─ .doxtly-field│ │ ├─ .doxtly-no-return-note│ │ └─ .doxtly-actions│ │ └─ .doxtly-button--prev, --next, --submit│ ├─ .doxtly-result once it is sent│ │ ├─ .doxtly-score, .doxtly-score-points, .doxtly-grade, .doxtly-pass│ │ ├─ .doxtly-section-scores, .doxtly-outcome│ │ ├─ .doxtly-certificate│ │ ├─ .doxtly-result-message│ │ └─ .doxtly-review│ │ └─ .doxtly-review-item│ └─ .doxtly-status in place of all of these└─ .doxtly-popups.doxtly-quiz and .doxtly-survey are the only names that tell a quiz from a survey. Every other name is the same in both, so a theme shared by quizzes and surveys needs one set of rules, and .doxtly-survey .doxtly-intro styles only surveys’ introductions.
The frame
Section titled “The frame”| Class | What it is |
|---|---|
.doxtly-page |
The column the page sits in. Set max-width here: on the public link it is 760 px wide unless you change it, and it can grow to 1120 px. |
.doxtly-page--organization |
Added on the public link, where the column is a card on your organization’s page. |
.doxtly-page--embedded |
Added to .doxtly-page when the page is embedded. |
.doxtly-form |
A form, including its progress indicator. In a quiz or a survey, the questions of the page shown. |
.doxtly-actions |
The row of buttons at the bottom. |
.doxtly-popups |
Where menus, pickers and dialogs open. See Menus, pickers and dialogs. |
Elements
Section titled “Elements”Every form element has .doxtly-element, plus one class for its kind:
| Class | Element | Useful inside it |
|---|---|---|
.doxtly-element--header |
Header | h1 to h6, depending on the level you chose |
.doxtly-element--paragraph |
Paragraph | p, a, ul, ol, strong |
.doxtly-element--image |
Image | img |
.doxtly-element--video |
Video | iframe, and .MuiTypography-subtitle2 for the title |
.doxtly-element--divider |
Divider | The element is an hr line itself |
.doxtly-element--section |
Section | .doxtly-section-title, .doxtly-section-description |
.doxtly-element--container |
Container | The elements inside it |
.doxtly-element--dynamic_fieldset |
Dynamic fieldset, the repeating group | .doxtly-fieldset-title, .doxtly-fieldset-row, .doxtly-fieldset-empty |
.doxtly-element--payment |
Payment | .doxtly-payment-label for its label, .doxtly-payment-amount for the amount |
.doxtly-element--field |
Any field | See below |
A section’s title and description only exist when you filled them in. .doxtly-fieldset-empty is the note shown while a group has no rows.
In a quiz or a survey with sections, the page of a section opens with its title and description, as .doxtly-section-title and .doxtly-section-description, the same classes as in a form. The headings, paragraphs, pictures and videos of the introduction, of a question and of the result carry the element classes above.
Fields
Section titled “Fields”Each field’s wrapper carries .doxtly-field, a class for its type, and a class for its own name. A question of a quiz or a survey is a field too:
| Class | Field |
|---|---|
.doxtly-field--text |
Text input |
.doxtly-field--number |
Number input |
.doxtly-field--email |
Email input |
.doxtly-field--textarea |
Text area |
.doxtly-field--password |
Password |
.doxtly-field--checkbox |
Checkbox (yes/no). In a quiz or a survey, a yes/no question, answered with Yes or No |
.doxtly-field--checkboxes |
Multiple choice |
.doxtly-field--select |
Select |
.doxtly-field--radio |
Single choice |
.doxtly-field--matrix |
Grid (matrix) |
.doxtly-field--ranking |
Ranking |
.doxtly-field--scale |
Scale / Slider |
.doxtly-field--rating |
Rating |
.doxtly-field--date |
Date picker |
.doxtly-field--time |
Time picker |
.doxtly-field--datetime |
Date and time picker |
.doxtly-field--file |
File upload |
.doxtly-field--photo |
Take photo |
.doxtly-field--signature |
Signature |
.doxtly-field--drawing |
Drawing |
.doxtly-field--computed |
Dynamic value |
.doxtly-field--qrcode |
QR code |
.doxtly-field--barcode |
Barcode |
.doxtly-field--name-<path> |
One particular field, by its data path |
.doxtly-field-info |
The Info text shown above the field |
The name class comes from the field’s data path. Dots turn into hyphens and any character other than letters, digits, _ and - is dropped. Capital letters stay as they are, so the class must match exactly.
| Data path | Class |
|---|---|
email |
.doxtly-field--name-email |
company.name |
.doxtly-field--name-company-name |
client_vat_id |
.doxtly-field--name-client_vat_id |
Inside a dynamic fieldset the class uses the field’s own data path, without the group or the row number, so one rule styles that field in every row.
Choices, grids and rankings
Section titled “Choices, grids and rankings”These parts are the same in forms, quizzes and surveys:
| Class | What it is |
|---|---|
.doxtly-option |
One option of a single or multiple choice, of a yes/no question, and of a grid’s card |
.doxtly-option--chosen |
Added to the option that is chosen or ticked |
.doxtly-option--other |
The Other option |
.doxtly-other-answer |
The box for the person’s own answer, shown under the options while Other is chosen |
.doxtly-option-cards |
The grid of options shown as cards |
.doxtly-option-card, .doxtly-option-card--chosen |
One card, and the chosen one |
.doxtly-matrix |
A grid’s rows and answers, with .doxtly-matrix--table or .doxtly-matrix--cards for the shape it takes in the space it has: a table when the columns fit the field’s width, otherwise a card per row with its answers one under another |
.doxtly-matrix-header |
The answers above a table, each a .doxtly-matrix-column |
.doxtly-matrix-row |
One row: a line of the table or a card. .doxtly-matrix-row--error marks a row left unanswered when a required grid is refused. |
.doxtly-matrix-row-label |
The row’s statement |
.doxtly-matrix-cell, .doxtly-matrix-cell--chosen |
One circle of a table, and the chosen one. In a card, each answer is a .doxtly-option. |
.doxtly-matrix-progress |
The “2 of 5 answered” line above more than four cards |
.doxtly-ranking |
The list to put in order |
.doxtly-ranking--ordered |
Added once the person has taken the order or moved an item |
.doxtly-ranking-item |
One item |
.doxtly-ranking-number, .doxtly-ranking-label |
Its place and its text |
.doxtly-button--move-up, .doxtly-button--move-down |
The arrows beside an item |
.doxtly-button--keep-order |
Keep this order |
Buttons
Section titled “Buttons”| Class | Button |
|---|---|
.doxtly-button |
Every button below |
.doxtly-button--submit |
Submit, and Send on a quiz or a survey (or the text you gave it). On a form it also has the older class .form-submit, so CSS written against that keeps working. |
.doxtly-button--next |
Next, on a multi-page form, a quiz or a survey |
.doxtly-button--prev |
Previous on a form, Back on a quiz or a survey |
.doxtly-button--add-row |
The button that adds a row to a dynamic fieldset |
.doxtly-button--remove-row |
The bin icon that removes a row |
.doxtly-button--primary |
Continue to signing, shown when a form is embedded and leads to signing |
.doxtly-button--start |
The button that starts a quiz or a survey |
.doxtly-button--answer-sheet |
Download your answer sheet, on a quiz’s result |
.doxtly-button--certificate |
Download certificate |
.doxtly-button--continue |
Continue, on a result that leads on to another page |
.doxtly-button--fullscreen |
Return to fullscreen, in an exam that asks for it |
The submit button is larger on a single-page form than on the last page of a multi-page form.
On a multi-page form, Previous stays on screen but is disabled on the first page. Next and the submit button are disabled until the page’s required fields are filled in. So once you colour these buttons, give them a .Mui-disabled look as well, or they will seem clickable when they aren’t.
Multi-page forms
Section titled “Multi-page forms”| Class | What it is |
|---|---|
.doxtly-wizard-progress |
The progress indicator, in either style |
.doxtly-wizard-progress--steps |
The Steps style |
.doxtly-wizard-progress--bar |
The Progress bar style |
.MuiStepIcon-root, .MuiStepConnector-line, .MuiStepLabel-label |
In the Steps style: the numbered circle, the line between steps, the step’s name |
.MuiLinearProgress-root, .MuiLinearProgress-bar |
In the Progress bar style: the track and the filled part |
.doxtly-wizard-progress--bar .MuiTypography-caption |
The counter under the bar, such as 2 / 4 |
Which style a form uses is set in the Pages section of its settings. The indicator appears when Show progress bar is on and more than one page is visible to the visitor.
Messages
Section titled “Messages”A message takes the place of the form, the quiz or the survey after it is sent or when it cannot be filled in. All messages share the same structure:
| Class | What it is |
|---|---|
.doxtly-status |
Any message |
.doxtly-status-icon |
The icon at the top |
.doxtly-status-title |
The title |
.doxtly-status-message |
The text below the title, including a form’s own success message |
.doxtly-status-note |
The submission reference on the signing messages |
.doxtly-alert, .doxtly-alert--error |
The bar above the form when a submission fails, and above a quiz or a survey when an answer can’t be saved |
.doxtly-alert--info.doxtly-restored-work |
The note above the form after a reload, “We have restored what you entered.”, with Start over |
A second class on .doxtly-status tells you which message it is:
| Class | When it shows | Reached by your CSS |
|---|---|---|
.doxtly-status--success |
A form’s thank-you message | Yes |
.doxtly-status--redirecting |
The moment before a redirect, with the Continue button | Yes |
.doxtly-status--payment |
On to the payment: the moment the visitor is sent on to pay, with the Go to payment button | Yes |
.doxtly-status--awaiting-signing |
Documents are being prepared for signing | Yes |
.doxtly-status--signing-ready |
An embedded form’s document is ready to sign | Yes |
.doxtly-status--signing-fallback |
The page stopped waiting; the signing link comes by email, text message or WhatsApp instead | Yes |
.doxtly-status--signing-failed |
Preparing the documents for signing did not finish | Yes |
.doxtly-status--missing-params |
The link lacks a required link parameter | Yes |
.doxtly-status--sent |
A quiz or a survey is sent and shows no score | Yes |
.doxtly-status--grading |
A quiz’s answers are being graded by AI | Yes |
.doxtly-status--needs-review |
A quiz’s author will grade some of its answers | Yes |
.doxtly-status--awaiting-release |
A quiz’s result is shown only once it is released | Yes |
.doxtly-status--quota-full |
A survey’s quota is full | Yes |
.doxtly-status--not-yet-open, --closed, --full |
A quiz or a survey is not open yet, is closed, or takes no more responses | Yes |
.doxtly-status--password |
The password prompt, with .doxtly-password around its field and button |
No |
.doxtly-status--invitation-required |
A quiz or survey taken only through personal links, opened without one | No |
.doxtly-status--not-found |
The page doesn’t exist or is not accepting submissions | No |
.doxtly-status--load-error |
The page could not be loaded | No |
.doxtly-loading marks the placeholder shown while the page loads. Like the last four rows, your CSS can’t reach it.
The title of a form’s thank-you message is fixed: “Form submitted successfully”, in the visitor’s language. The text under it is the success message from the form settings, or a standard thank-you if you left that empty. It can hold Markdown, so expect p, a and ul inside .doxtly-status-message.
Quizzes and surveys
Section titled “Quizzes and surveys”What only a quiz or a survey shows. Each name is the same in a quiz and a survey; a survey has no score, grade or certificate to show.
Before it starts
| Class | What it is |
|---|---|
.doxtly-quiz, .doxtly-survey |
Everything the quiz or the survey shows, from the introduction to the result |
.doxtly-intro |
The introduction page |
.doxtly-greeting |
“Hello, Anna”, when the person came through a personal link |
.doxtly-description |
The introduction’s text and pictures, and the text shown with the result |
.doxtly-cover--split |
The two columns of the Picture beside the text cover |
.doxtly-cover-picture |
Its picture |
.doxtly-intro-facts |
The list of how it is taken |
.doxtly-intro-fact |
One line of it, with a second class for which: --questions, --time, --forward-only, --leaving-tab, --attempts, --pass-mark |
While it is answered
| Class | What it is |
|---|---|
.doxtly-taking |
The page of questions with everything around it |
.doxtly-taking--one-question, --one-section, --one-page |
Added for how the questions are split into pages: One question per page, One section per page, Everything on one page |
.doxtly-taking-header |
The row with the progress and the time left |
.doxtly-progress |
The progress, with a second class for its style: --bar, --steps, --percent, --none |
.doxtly-progress-label |
The words, such as “Question 3 of 10”, or the percentage |
.doxtly-progress-step |
One step, with --done, --current or --next |
.doxtly-timer |
The time left. --section marks a timed section’s, --warning its last five minutes and --critical its last one. |
.doxtly-navigator |
The list of questions |
.doxtly-navigator-title, .doxtly-navigator-group, .doxtly-navigator-section |
Its heading, the questions of one section, the section’s title |
.doxtly-navigator-item |
One question’s number, with --answered and --current |
.doxtly-taking-page |
The questions of the page shown |
.doxtly-beside-picture, .doxtly-beside-text |
A question’s picture set beside it, and the question’s column |
.doxtly-no-return-note |
The note that the next page leaves a timed section for good |
.doxtly-key-hint |
The keyboard hint beside the buttons, in One question per page, from a desktop’s width |
.doxtly-alert--leaving-tab |
The warning that the tab was left |
.doxtly-alert--fullscreen |
The request to return to fullscreen |
.doxtly-alert--paste-blocked |
The note that pasting is turned off |
Once it is sent
| Class | What it is |
|---|---|
.doxtly-result |
The result page |
.doxtly-score |
The ring with the per cent |
.doxtly-score-points |
The points, such as “9 of 12 points” |
.doxtly-grade |
The grade, with a quiz’s grading scale |
.doxtly-pass, .doxtly-pass--passed, .doxtly-pass--failed |
Passed or Not passed |
.doxtly-section-scores |
The score by section |
.doxtly-outcome |
What you wrote for those who passed, or did not |
.doxtly-ended-note |
Why the attempt ended, when the time ran out or the tab was left too often |
.doxtly-certificate |
The certificate panel, with --waiting, --ready or --later |
.doxtly-certificate-title, .doxtly-certificate-message |
Its title and its text |
.doxtly-result-message |
Your success message |
.doxtly-review |
The answers, under “Your answers” |
.doxtly-review-title |
That heading |
.doxtly-review-item |
One question, with its verdict: --correct, --partial, --incorrect, --unanswered, --pending, --ungraded |
.doxtly-review-verdict |
The verdict and the points |
.doxtly-review-correct-answer |
The correct answer |
.doxtly-review-feedback |
The feedback for the answer given |
.doxtly-explanation |
Your explanation |
Inside a field
Section titled “Inside a field”The doxtly- classes take you as far as the field’s wrapper and its options. The label, the outline and the check mark are drawn by ready-made controls, whose parts have class names that start with Mui. They are not generated at random, and you can target them like any other class. Combine them with a doxtly- class when you want to narrow a rule to one field or one type.
| Class | Part | Fields |
|---|---|---|
.MuiInputLabel-root |
The floating label | Text, number, email, text area, password, select, date, time, dynamic value |
.MuiFormLabel-root |
Any field label, floating or not | All except Checkbox (yes/no) |
.MuiFormLabel-asterisk |
The * of a required field |
All except Checkbox (yes/no) |
.MuiFormHelperText-root |
The Helper text or the error under the field | All |
.MuiOutlinedInput-root |
The input box | Text, number, email, text area, password, select, dynamic value |
.MuiOutlinedInput-notchedOutline |
The box’s border | The same |
.MuiInputBase-input |
The text the visitor types | The same |
.MuiPickersOutlinedInput-root |
The input box | Date, time |
.MuiPickersOutlinedInput-notchedOutline |
The box’s border | Date, time |
.MuiSelect-select, .MuiSelect-icon |
The chosen value, the arrow | Select |
.MuiInputAdornment-root |
The icon at the right end | Date, time, password |
.MuiFormControlLabel-label |
The text of an option | Checkbox (yes/no), single and multiple choice |
.MuiFormControlLabel-asterisk |
The * of a required checkbox |
Checkbox (yes/no) |
.MuiCheckbox-root |
The box | Checkbox (yes/no), multiple choice |
.MuiRadioGroup-root, .MuiRadio-root |
The list of options, one circle | Single choice, grid |
.MuiSlider-root |
The whole slider. Its color tints every part. |
Scale |
.MuiSlider-rail, .MuiSlider-track, .MuiSlider-thumb, .MuiSlider-mark, .MuiSlider-valueLabel |
The parts of the slider | Scale |
.MuiTypography-caption |
The minimum and maximum labels and the “No value chosen” note | Scale |
.MuiFormControl-root > .MuiBox-root |
The frame around the button | File upload |
.MuiButton-root |
Choose file | File upload |
.MuiAlert-root |
The message for a refused file | File upload |
.MuiPaper-root |
The sheet to click on | Signature |
.MuiTypography-h6 |
The value, when it is shown as text | Dynamic value |
Date and time fields have input classes of their own, and that’s easy to miss. A rule that changes .MuiOutlinedInput-root leaves those two fields as they were, so list both.
Colours for every state
Section titled “Colours for every state”The defaults for hover, focus and errors are stronger than a plain rule, so a border colour set on its own disappears the moment the visitor hovers or clicks. Write a rule for each state, using these classes:
| State class | Added when | Goes on |
|---|---|---|
.Mui-focused |
The field has the cursor | The input box and the label |
.Mui-error |
Validation failed | The input box, the label and the helper text |
.Mui-disabled |
The field or button can’t be used right now, for example while sending | The input box, the label, the button |
.Mui-checked |
A checkbox or radio is ticked | .MuiCheckbox-root, .MuiRadio-root |
.Mui-selected |
The current option or date | A menu item, a day in the calendar |
.Mui-active, .Mui-completed |
The current and finished steps | .MuiStepIcon-root |
Order matters, because these rules have the same weight and the later one wins. Write hover first, focus next, then errors, so that a field with a mistake stays red while the visitor corrects it:
.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline { border-color: #0b5d7a;}
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline { border-color: #0b5d7a;}
.MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline { border-color: #b3261e;}The same applies to buttons. When you set a background, set the hover and disabled backgrounds too, or the button stays the same colour on hover and keeps the colour while disabled.
Menus, pickers and dialogs
Section titled “Menus, pickers and dialogs”Select menus, the date and time pickers and the signature dialog open in a layer on top of the page, not inside the field. That layer is .doxtly-popups, so .doxtly-field--select .MuiMenuItem-root finds nothing, while .doxtly-popups .MuiMenuItem-root works.
For the same reason, a font or colour set on .doxtly-page does not reach them. Set it on :root, which both of them sit in, or on both: .doxtly-page, .doxtly-popups { ... }.
| Class | Part |
|---|---|
.MuiMenu-paper |
The panel of a select menu |
.MuiMenuItem-root |
One option |
.MuiPickerPopper-paper |
The panel of a date or time picker |
.MuiPickersCalendarHeader-label |
The month and year |
.MuiDayCalendar-weekDayLabel |
The weekday letters |
.MuiPickerDay-root |
One day. It also takes .MuiPickerDay-today and .Mui-selected. |
.MuiPickersLayout-actionBar |
The row with Clear, Today and OK. A time picker has only Clear and OK. |
.MuiMultiSectionDigitalClockSection-item |
One hour or minute in the time picker |
.MuiDialog-paper |
The signature dialog |
.MuiDialogTitle-root, .MuiDialogActions-root |
Its title and its button row |
.MuiTab-root, .MuiTabs-indicator |
Draw, Type and, when a signature is already there, My signature, and the line under the chosen tab |

The signature dialog follows the same CSS: the line under the chosen tab and the Accept button take the brand colour.

Recipes
Section titled “Recipes”Each of these works on its own. Paste it into the theme’s Custom CSS, change the values, save, and open a page that uses the theme.
Set the width and the background
Section titled “Set the width and the background”body { background: #f3f6f8;}
.doxtly-page { max-width: 640px;}Turn sections into cards
Section titled “Turn sections into cards”Sections have no frame by default. On a long form, this change makes the biggest difference.
.doxtly-element--section { background: #ffffff; border: 1px solid #c9d3da; border-radius: 12px; padding: 24px;}
Put labels above the fields
Section titled “Put labels above the fields”By default a label sits inside the box and floats up when the visitor clicks. This keeps it above the box at all times, which many people find easier to read on long forms.
.doxtly-field .MuiInputLabel-root { position: static; transform: none; max-width: none; margin-bottom: 4px; font-weight: 600;}
.doxtly-field .MuiOutlinedInput-notchedOutline legend,.doxtly-field .MuiPickersOutlinedInput-notchedOutline legend { display: none;}
.doxtly-field .MuiInputBase-input::placeholder { opacity: 0.6 !important;}The last rule matters if you use placeholders. They normally stay hidden until the label floats up, and with a fixed label that moment never comes.
Style one field
Section titled “Style one field”.doxtly-field--name-message textarea { background: #fffbe6;}Make required markers stand out
Section titled “Make required markers stand out”.MuiFormLabel-asterisk,.MuiFormControlLabel-asterisk { color: #b3261e;}Show radio options in a row
Section titled “Show radio options in a row”.doxtly-field--radio .MuiRadioGroup-root { flex-direction: row; gap: 16px;}Frame the chosen option
Section titled “Frame the chosen option”.doxtly-option { border: 1px solid transparent; border-radius: 8px; margin: 0 0 4px; padding-right: 12px;}
.doxtly-option--chosen { border-color: #0b5d7a; background: #e6f1f5;}Restyle the submit button
Section titled “Restyle the submit button”This one rule also colours the button that sends a quiz or a survey.
.doxtly-button--submit { background-color: #0b5d7a; border-radius: 999px; padding: 12px 32px;}
.doxtly-button--submit:hover { background-color: #084a61;}
.doxtly-button--submit.Mui-disabled { background-color: #c9d3da;}Move the button to the left and remove the line above it
Section titled “Move the button to the left and remove the line above it”On a single-page form, a thin line sits above the button, which is aligned right.
.doxtly-actions { justify-content: flex-start;}
.doxtly-form hr:has(+ .doxtly-actions) { display: none;}Make the button full width on phones
Section titled “Make the button full width on phones”@media (max-width: 600px) { .doxtly-actions { display: block; }
.doxtly-button--submit { width: 100%; }}Show something only on the public link
Section titled “Show something only on the public link”Say your form opens with your logo. A client who gets the link by email needs it, but on your own website it would be the second logo on the page. .doxtly-page--embedded tells the two apart, so one form can serve both. Give the logo image a CSS class such as site-logo, then:
.doxtly-page--embedded .site-logo { display: none;}Hide something
Section titled “Hide something”Hiding the help text on one field, with the field itself staying:
.doxtly-field--name-internal_ref .doxtly-field-info { display: none;}To remove a whole field for some visitors, use conditional logic instead. CSS only hides what’s on screen: a required field hidden with CSS still has to be answered, and the visitor can’t see why the form won’t send.
Give the file upload a dashed frame
Section titled “Give the file upload a dashed frame”.doxtly-field--file .MuiFormControl-root > .MuiBox-root { border-style: dashed;}Colour the progress steps
Section titled “Colour the progress steps”.MuiStepIcon-root.Mui-active,.MuiStepIcon-root.Mui-completed { color: #0b5d7a;}
.MuiStepConnector-line { border-color: #c9d3da;}The bar style has two parts:
.doxtly-wizard-progress--bar .MuiLinearProgress-root { background-color: #e6f1f5;}
.doxtly-wizard-progress--bar .MuiLinearProgress-bar { background-color: #0b5d7a;}
A quiz’s or a survey’s progress has classes of its own:
.doxtly-progress--bar .MuiLinearProgress-bar,.doxtly-progress-step--done,.doxtly-progress-step--current { background-color: #0b5d7a;}Mark the answered questions in the list
Section titled “Mark the answered questions in the list”.doxtly-navigator-item--answered { background-color: #0b5d7a; border-color: #0b5d7a; color: #ffffff;}
.doxtly-navigator-item--current { outline-color: #0b5d7a;}Make the time left impossible to miss
Section titled “Make the time left impossible to miss”.doxtly-timer { font-size: 1rem;}
.doxtly-timer--critical { background-color: #b3261e; color: #ffffff;}Colour the score and the verdicts
Section titled “Colour the score and the verdicts”.doxtly-score .MuiCircularProgress-root + .MuiCircularProgress-root { color: #0b5d7a;}
.doxtly-review-item--correct { border-color: #2e7d32;}
.doxtly-review-item--incorrect { border-color: #b3261e;}Style only surveys
Section titled “Style only surveys”A theme shared by quizzes and surveys can still treat them differently:
.doxtly-survey .doxtly-intro-facts { display: none;}Match the thank-you message to your brand
Section titled “Match the thank-you message to your brand”.doxtly-status--success .doxtly-status-icon,.doxtly-status--sent .doxtly-status-icon { color: #0b5d7a;}
.doxtly-status--success .doxtly-status-title { font-size: 2rem;}
A complete example
Section titled “A complete example”This is everything together: Northbridge Advisory’s onboarding form in its brand colours, with cards and every state handled. Its font comes from the theme’s Type group. To use it for your own brand, change the seven colours at the top and the body background. The colours are CSS variables on :root, so each one lives in one place and reaches every part of the page, menus and pickers included.

/* Northbridge Advisory theme */
/* 1. Brand values, set once. */:root { --brand: #0b5d7a; --brand-dark: #084a61; --brand-tint: #e6f1f5; --ink: #1d2b36; --muted: #5c6b77; --line: #c9d3da; --danger: #b3261e; color: var(--ink);}
/* 2. The background and the column. */body { background: #f3f6f8;}
.doxtly-page { max-width: 720px;}
/* 3. Headings and sections. */.doxtly-element--header :is(h1, h2, h3, h4, h5, h6),.doxtly-section-title { color: var(--brand);}
.doxtly-element--section { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 24px;}
.doxtly-section-description,.doxtly-field-info,.MuiFormHelperText-root { color: var(--muted);}
.doxtly-form a,.doxtly-status-message a { color: var(--brand);}
/* 4. Labels. */.MuiFormLabel-root.Mui-focused { color: var(--brand);}
/* 5. Inputs: text fields, selects, and the date and time fields. */.MuiOutlinedInput-root,.MuiPickersOutlinedInput-root { background: #ffffff; border-radius: 8px;}
.MuiOutlinedInput-notchedOutline,.MuiPickersOutlinedInput-notchedOutline { border-color: var(--line);}
.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,.MuiPickersOutlinedInput-root:hover .MuiPickersOutlinedInput-notchedOutline { border-color: var(--brand);}
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline,.MuiPickersOutlinedInput-root.Mui-focused .MuiPickersOutlinedInput-notchedOutline { border-color: var(--brand);}
/* 6. Validation. Written after the states above so that errors stay red. */.MuiFormLabel-root.Mui-error,.MuiFormHelperText-root.Mui-error { color: var(--danger);}
.MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline,.MuiPickersOutlinedInput-root.Mui-error .MuiPickersOutlinedInput-notchedOutline { border-color: var(--danger);}
/* 7. Choices. */.MuiCheckbox-root.Mui-checked,.MuiRadio-root.Mui-checked,.MuiSlider-root { color: var(--brand);}
.doxtly-option-card--chosen { border-color: var(--brand);}
/* 8. Buttons, in forms, quizzes and surveys alike. */.doxtly-button--submit,.doxtly-button--next,.doxtly-button--start { background-color: var(--brand); border-radius: 8px;}
.doxtly-button--submit:hover,.doxtly-button--next:hover,.doxtly-button--start:hover { background-color: var(--brand-dark);}
.doxtly-button--submit.Mui-disabled,.doxtly-button--next.Mui-disabled { background-color: var(--line);}
.doxtly-button--prev,.doxtly-button--add-row,.doxtly-field--file .MuiButton-root { border-color: var(--brand); border-radius: 8px; color: var(--brand);}
.doxtly-button--prev.Mui-disabled,.doxtly-button--add-row.Mui-disabled { border-color: var(--line); color: var(--muted);}
/* The line above the submit button. */.doxtly-form hr:has(+ .doxtly-actions) { display: none;}
/* 9. Repeating groups. */.doxtly-fieldset-row { background: var(--brand-tint); border-color: var(--line);}
/* 10. Progress: a form's steps and bar, a quiz's or a survey's bar and steps. */.MuiStepIcon-root.Mui-active,.MuiStepIcon-root.Mui-completed { color: var(--brand);}
.doxtly-wizard-progress--bar .MuiLinearProgress-root,.doxtly-progress--bar .MuiLinearProgress-root { background-color: var(--brand-tint);}
.doxtly-wizard-progress--bar .MuiLinearProgress-bar,.doxtly-progress--bar .MuiLinearProgress-bar,.doxtly-progress-step--done,.doxtly-progress-step--current { background-color: var(--brand);}
/* 11. The list of questions. */.doxtly-navigator-item--answered { background-color: var(--brand); border-color: var(--brand);}
/* 12. Menus, date pickers and the signature dialog. */.doxtly-popups .MuiMenuItem-root.Mui-selected { background-color: var(--brand-tint);}
.doxtly-popups .MuiPickerDay-root.Mui-selected { background-color: var(--brand);}
.doxtly-popups .MuiButton-text { color: var(--brand);}
.doxtly-popups .MuiButton-contained { background-color: var(--brand);}
.doxtly-popups .MuiButton-contained.Mui-disabled { background-color: var(--line);}
.doxtly-popups .MuiTab-root.Mui-selected { color: var(--brand);}
.doxtly-popups .MuiTabs-indicator { background-color: var(--brand);}
/* 13. Messages and results. */.doxtly-status-icon { color: var(--brand);}
.doxtly-status-title { color: var(--ink);}
.doxtly-score .MuiCircularProgress-root + .MuiCircularProgress-root { color: var(--brand);}
/* 14. Phones. */@media (max-width: 600px) { .doxtly-element--section { padding: 16px; }
.doxtly-actions { display: block; }
.doxtly-button--submit { width: 100%; }}With this CSS in the theme, a field with a mistake looks like this:

The simplest way to change the font is the theme’s Type group: its fonts are served by Doxtly itself, so the page asks no other site for them.
To use a font of your own, embed it in the CSS with @font-face and a data: address holding the WOFF or WOFF2 file, then name it:
@font-face { font-family: "Northbridge Sans"; src: url("data:font/woff2;base64,d09GMgABAAAAA...") format("woff2"); font-weight: 400;}
:root { font-family: "Northbridge Sans", system-ui, sans-serif;}A link to Google Fonts or any other host is refused when you save, since every visitor’s browser would ask that server for the file. Keep an embedded font small, a single weight if you can: it counts toward the 20,000 characters.
With the embed script and style isolation on, browsers ignore a font declared inside the sealed area the form lives in, so @font-face has no effect there. The form takes your page’s font unless the theme sets one; to use another, load it on your website the way you load any other font, then name it in font-family.
Styling embedded pages
Section titled “Styling embedded pages”The same CSS and the same classes apply however you embed a form, a quiz or a survey, so a page you style once looks the same in each place. What differs is how it relates to the page around it.
| Public link | Iframe with _embed=1 |
Embed script | Embed script, isolation off | |
|---|---|---|---|---|
| The theme’s custom CSS applies | Yes | Yes | Yes | Yes |
.doxtly-page--embedded is present |
No | Yes | Yes | Yes |
body, html, :root rules style .doxtly-form-scope |
Yes | Yes | Yes | Yes |
| Your site’s CSS reaches the form | Not applicable | No | No | Yes |
| Your site’s font is inherited | Not applicable | No | Yes, unless the theme sets one | Yes, unless the theme sets one |
@font-face in the CSS works |
Yes | Yes | No | Yes |
Rules for .doxtly-page--embedded only show up on a real embed, so test there as well as on the public link.
In an iframe
Section titled “In an iframe”The frame is a separate page. Your site’s CSS stops at its edge, and the theme paints the inside of the frame. To let your website’s background show through, make it transparent:
body { background: transparent;}The iframe widget wraps the frame in two elements that your own site’s CSS can style. Add this to your website, not to the theme:
.doxtly-form-wrapper { border-radius: 12px; box-shadow: 0 4px 16px rgb(0 0 0 / 12%);}The wrapper is .doxtly-form-wrapper and the frame is .doxtly-form-iframe. Width and minimum height are set in the snippet, with data-width and data-min-height, or width and minHeight when you call the widget from code. A plain iframe has no wrapper: there you style the iframe tag itself and set its height by hand.
With the embed script
Section titled “With the embed script”By default the form sits in a sealed area, so your website’s styles can’t disturb it and it can’t disturb your site. That has a few effects on styling:
- Style the form only through the theme’s CSS. Your website’s stylesheets won’t reach it, apart from what is passed down by nature, such as the font.
- Text sizes in the form are relative to the root font size of your website. If your site changes that from the usual 16 px, the form’s text scales with it. Set sizes in
pxwhere that matters. - The form’s frame has 8 px of padding, which you can change on
.doxtly-page--embedded. - Without a background from the theme, the form has dark text and no background of its own, so on a dark website it’s hard to read until you give it one, as shown below.
.doxtly-page--embedded { background: #ffffff; border-radius: 12px; padding: 24px;}Width and minimum height are set with data-width and data-min-height, or width and minHeight when you call the script from code. They go on the element that holds the form. With the data attributes, they default to 100% and 400px.
Turning isolation off
Section titled “Turning isolation off”You can turn off style isolation when you want your website’s stylesheet to style the form, so that the form picks up your site’s look. In the snippet, this is data-shadow-dom="false". From code it’s shadowDom: false, and in the WordPress shortcode shadow_dom="false".
Your site’s CSS then treats the form as part of the page. That helps in one way and can hurt in another:
- You can style what the theme’s CSS can’t reach, such as the password prompt. Put a rule like
.doxtly-status--password .doxtly-status-title { color: #0b5d7a; }in your website’s stylesheet. - General rules on your site, such as ones for every
buttonorinput, now apply to the form too, and they beat the form’s defaults when they have the same weight.
The theme’s CSS stays inside the form even then, body and :root rules included.
In a CMS plugin
Section titled “In a CMS plugin”The WordPress plugin and the others use the same two methods: Native Embed is the embed script and Iframe Embed is the iframe, so the sections above apply. The CSS stays in Doxtly, in the theme, not in your CMS. The shortcode sets the size with width and min_height. Only the shortcode can turn isolation off: the block and the Elementor widget have no such setting.
One look for many pages
Section titled “One look for many pages”A theme is shared by everything that uses it, so the usual way to carry one brand across forms, quizzes and surveys is one theme with one stylesheet. A new brand colour is then one change.
- Class names like
.doxtly-field--name-emaildepend on a form’s data paths. In a theme many forms share, prefer rules for field types and parts, which every form has. - A form element you copy and paste into another form keeps its CSS class. If the other form uses another theme, the rules for that class stay behind.
- To try a change without touching the live pages, copy the theme, point one form at the copy, and move the others over once it looks right.
When a rule does nothing
Section titled “When a rule does nothing”| What you see | Likely reason | What to do |
|---|---|---|
| The theme won’t save | The CSS holds something refused | Read the message, and see What saving refuses |
| Nothing changes at all | An unclosed { or comment earlier in the CSS |
Look for the last rule that works, and check what’s right after it |
| Nothing changes on the live page | The theme is not saved, the page uses another theme, or the page was already open | Save the theme, check the page’s Look, and reload |
| An old rule of a form stopped working | It used something a theme refuses, such as @import or an external url() |
See CSS written before themes existed |
| A border colour vanishes on hover or click | The state has a stronger default | Add rules for each state |
| Date and time fields keep the old look | They have their own classes | Add .MuiPickersOutlinedInput-root and .MuiPickersOutlinedInput-notchedOutline |
| A menu or calendar ignores your font | It opens outside .doxtly-page |
Set it on :root, or add .doxtly-popups to the selector |
| A disabled button looks clickable | Your colour also applies while it’s disabled | Add a rule with .Mui-disabled |
| The public link looks right but the embedded form doesn’t | Some rules apply only to one of them | Test on the real page, and use .doxtly-page--embedded for rules that apply there |
body { ... } doesn’t change your website |
It styles .doxtly-form-scope, never the page around it |
Put rules for your website in your website’s stylesheet |
| A grid shows cards where you expected a table | Its answers don’t fit the width the field has | That’s expected: the cards keep the grid from scrolling sideways |
| A font doesn’t load | It comes from another host, or the embed script is isolated | See Fonts |
| A field-name rule doesn’t match | The data path was changed, or the case differs | Compare with the field’s data path, and read the name rule |
| The password prompt keeps the neutral look | It appears before the theme is known | That’s expected: see What your CSS reaches |
| The form looks different inside an interactive document | The document’s theme applies there, not the form’s | Put the rules in the interactive document’s theme: see What your CSS reaches |