feat(options): Fonts tab becomes 'Fonts and colors' with per-element font+color combos (Prompt U)

Tab 'Fonts' is renamed to 'Fonts and colors' and gets a dedicated layout:
top row (col 1: font, fontcolor, fontsize; col 2: primarycolor +
new secondarycolor; col 3 empty), an hr, then one combo row per element
(header, progressbar, questiontitle, answers, grouptitle,
groupdescription, buttons) with col 1 = existing <el>font fontselect,
col 2 = new <el>textcolor dropdown (default|primary|secondary|other),
col 3 = new <el>textcolorcustom colorpicker, visible only when mode is
'other' (parent show-value via aShowIfValues, server-side initial d-none,
options.js updateVisibilityByParent/updateChild now handle select parents,
multi-value aware; font's self-parent removed from config.xml).
config.xml: fontcolor/primarycolor moved from Colors to Fonts (retitled
'Default font color (body text)' / 'Primary color'), secondarycolor added
(default #888888), 14 per-element color keys added with dropdownoptions.
Views emit the per-element color as inline style (default->fontcolor,
primary->primarycolor, secondary->secondarycolor, other->custom picker).
Colors tab now only holds sliderhandlecolor + privacybackgroundcolor
(final Colors layout = Prompt T, still open).
Variants rebuilt (defensie, erasmus, example respondage_respondage) —
no unknown-key failures; theme reset in LS-admin still owner action.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-25 11:51:57 +01:00
commit 9716aac4ee

View file

@ -31,7 +31,7 @@
<version>3.3.0</version>
<apiVersion>3</apiVersion>
<description>Example variant of vanilla_respondage, generated by variants/build.php — demonstrates the output of the build process. Not a real client.</description>
<lastUpdate>2026-11-24 21:52:01</lastUpdate>
<lastUpdate>2026-11-25 10:51:33</lastUpdate>
<extends>vanilla_respondage</extends>
</metadata>
<compatibility>
@ -84,74 +84,118 @@
the json; build.php checks that the key exists.
-->
<options>
<hideprivacyinfo type="buttons" category="Simple options" width="4" title="Hide privacy info" options="on|off" optionlabels="Yes|No">off</hideprivacyinfo>
<container type="buttons" category="Simple options" width="4" title="Survey container" options="on|off" optionlabels="Yes|No">on</container>
<showpopups type="buttons" category="Simple options" width="4" title="Show popups" options="1|0|-1" optionlabels="Popup|On page|No">1</showpopups>
<showclearall type="buttons" category="Simple options" width="4" title="Show Clear All button" options="on|off" optionlabels="Yes|No">off</showclearall>
<fixnumauto type="buttons" category="Simple options" width="4" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto>
<!-- Prompt O: the five "Simple options" are width=12, so they stack in ONE
column (full-width rows) in the Simple options tab, label above each
control (Prompt G). -->
<hideprivacyinfo type="buttons" category="Simple options" width="12" title="Hide privacy info" options="on|off" optionlabels="Yes|No">off</hideprivacyinfo>
<container type="buttons" category="Simple options" width="12" title="Survey container" options="on|off" optionlabels="Yes|No">on</container>
<showpopups type="buttons" category="Simple options" width="12" title="Show popups" options="1|0|-1" optionlabels="Popup|On page|No">1</showpopups>
<showclearall type="buttons" category="Simple options" width="12" title="Show Clear All button" options="on|off" optionlabels="Yes|No">off</showclearall>
<fixnumauto type="buttons" category="Simple options" width="12" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto>
<!-- Images
HOUSE-STYLE: logos (on/off + file + hide-on-small-screen), logotopmargin,
background image and bodybackgroundcolor are set per variant via
variants/<client>.json -->
HOUSE-STYLE: logos, background image and bodybackgroundcolor are set per
variant via variants/<client>.json -->
<!-- Images -->
<brandlogo type="buttons" category="Images" width="2" title="Display logo on the left of the header" options="on|off" optionlabels="Yes|No">on</brandlogo>
<brandlogofile type="imagefile" category="Images" width="7" title="Logo file (left)" parent="brandlogo">./files/logo.png</brandlogofile>
<brandlogohideonsmall type="buttons" category="Images" width="3" title="Hide the left logo on small screens (phones)" options="on|off" optionlabels="Yes|No" parent="brandlogo">on</brandlogohideonsmall>
<centerlogo type="buttons" category="Images" width="2" title="Display logo in the center of the header" options="on|off" optionlabels="Yes|No">off</centerlogo>
<centerlogofile type="imagefile" category="Images" width="7" title="Logo file (center)" parent="centerlogo">./files/logo.png</centerlogofile>
<centerlogohideonsmall type="buttons" category="Images" width="3" title="Hide the center logo on small screens (phones)" options="on|off" optionlabels="Yes|No" parent="centerlogo">on</centerlogohideonsmall>
<rightlogo type="buttons" category="Images" width="2" title="Display logo on the right of the header" options="on|off" optionlabels="Yes|No">off</rightlogo>
<rightlogofile type="imagefile" category="Images" width="7" title="Logo file (right)" parent="rightlogo">./files/logo2.png</rightlogofile>
<rightlogohideonsmall type="buttons" category="Images" width="3" title="Hide the right logo on small screens (phones)" options="on|off" optionlabels="Yes|No" parent="rightlogo">on</rightlogohideonsmall>
<logotopmargin type="duration" category="Images" width="3" title="Distance from the logo to the top of the screen (use 0px to align a logo exactly with the very top)">15px</logotopmargin>
<backgroundimage type="buttons" category="Images" width="4" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
<backgroundimagefixed type="buttons" category="Images" width="4" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll">scroll</backgroundimagefixed>
<backgroundimagedisplay type="buttons" category="Images" width="4" title="Background image display" options="tile|cover" optionlabels="Tile|Cover">tile</backgroundimagedisplay>
<!-- Logos (Prompt M): per logo (left=brand, center, right) a file dropdown whose
FIRST option is "No logo" (value "off", prepended by options.twig), a top
margin in px (plain number 0-100; the views add the "px"), and "Show logo
on" checkboxes per device (Bootstrap breakpoints: mobile < 768px,
tablet 768-991px, computer >= 992px). Defaults: left logo on with
logo.png, center/right "off" (no logo); margin 15; show on computer and
tablet, NOT on mobile (same as the old hide-on-small default).
The old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, the shared
logotopmargin) were removed; variants/build.php maps the variant json's
old keys onto these new keys. -->
<brandlogofile type="imagefile" category="Images" width="12" title="Logo file (left)">./files/logo.png</brandlogofile>
<brandlogotopmargin type="text" category="Images" width="12" title="Margin between logo and top of screen (left), in px (0-100)">15</brandlogotopmargin>
<brandshowoncomputer type="checkbox" category="Images" width="12" title="Computer screen">on</brandshowoncomputer>
<brandshowontablet type="checkbox" category="Images" width="12" title="Tablet">on</brandshowontablet>
<brandshowonmobile type="checkbox" category="Images" width="12" title="Mobile phone">off</brandshowonmobile>
<centerlogofile type="imagefile" category="Images" width="12" title="Logo file (center)">off</centerlogofile>
<centerlogotopmargin type="text" category="Images" width="12" title="Margin between logo and top of screen (center), in px (0-100)">15</centerlogotopmargin>
<centershowoncomputer type="checkbox" category="Images" width="12" title="Computer screen">on</centershowoncomputer>
<centershowontablet type="checkbox" category="Images" width="12" title="Tablet">on</centershowontablet>
<centershowonmobile type="checkbox" category="Images" width="12" title="Mobile phone">off</centershowonmobile>
<rightlogofile type="imagefile" category="Images" width="12" title="Logo file (right)">off</rightlogofile>
<rightlogotopmargin type="text" category="Images" width="12" title="Margin between logo and top of screen (right), in px (0-100)">15</rightlogotopmargin>
<rightshowoncomputer type="checkbox" category="Images" width="12" title="Computer screen">on</rightshowoncomputer>
<rightshowontablet type="checkbox" category="Images" width="12" title="Tablet">on</rightshowontablet>
<rightshowonmobile type="checkbox" category="Images" width="12" title="Mobile phone">off</rightshowonmobile>
<!-- Prompt Q: order fixed — Background image, then Overall background color
(always relevant), then the three image-detail options which are only
relevant when a background image is shown (parent="backgroundimage",
shown/hidden via .option-visibility in options.twig/options.js).
Prompt P: all five width=12 — the Images pane renders them stacked in
column 1 of a three-column grid (only that column is used). -->
<backgroundimage type="buttons" category="Images" width="12" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
<bodybackgroundcolor type="colorpicker" category="Images" width="12" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#dddddd</bodybackgroundcolor>
<backgroundimagefixed type="buttons" category="Images" width="12" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll" parent="backgroundimage">scroll</backgroundimagefixed>
<backgroundimagedisplay type="buttons" category="Images" width="12" title="Background image display" options="tile|cover" optionlabels="Tile|Cover" parent="backgroundimage">tile</backgroundimagedisplay>
<backgroundimagefile type="imagefile" category="Images" width="12" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
<bodybackgroundcolor type="colorpicker" category="Images" width="8" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#f5f3f7</bodybackgroundcolor>
<!-- Questions
HOUSE-STYLE: the colorpicker options in this section (question
title/background/help/border/checkbox colors) are house-style colors.
NOT house-style (structural, same for all variants): questionborder,
questionborderstyle, the borderradius values, questiondropdown and
questionhelptextposition. -->
title/background/help/help-font/border/checkbox colors) are house-style
colors. NOT house-style (structural, same for all variants):
questionborder, questionborderstyle, the borderradius values,
questiondropdown and questionhelptextposition.
Prompt R: order = the three columns of the Questions tab (options.twig
renders them in this order): col1 colors+help, col2 border + its
conditional children, col3 checkbox color. All width=12 — inside the
pane each option stacks as col-12 in its column. The border children
carry parent="questionborder"; the show-values "box|top" cannot be an
XML attribute (core passes only `parent` through), so the multi-value
list lives in options.twig (aShowIfValues) and lands as
data-show-if-value="box|top". questionhelpfontcolor (NEW) is applied
in custom_header.twig on .question-help-container. -->
<!-- Questions -->
<questiontitlebackgroundcolor type="colorpicker" category="Questions" width="6" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
<questiontitlefontcolor type="colorpicker" category="Questions" width="6" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
<questionbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
<questionborder type="buttons" category="Questions" width="6" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
<questionborderstyle type="buttons" category="Questions" width="6" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed">solid</questionborderstyle>
<questionbordercolor type="colorpicker" category="Questions" width="12" title="Question border color" options="on|off" optionlabels="Yes|No">#cccccc</questionbordercolor>
<questionborderradiusTL type="duration" category="Questions" width="3" title="Border radius top left">5px</questionborderradiusTL>
<questionborderradiusTR type="duration" category="Questions" width="3" title="Border radius top right">5px</questionborderradiusTR>
<questionborderradiusBL type="duration" category="Questions" width="3" title="Border radius bottom left">5px</questionborderradiusBL>
<questionborderradiusBR type="duration" category="Questions" width="3" title="Border radius bottom right">5px</questionborderradiusBR>
<questiondropdown type="buttons" category="Questions" width="6" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None">hover</questiondropdown>
<questionhelptextposition type="buttons" category="Questions" width="6" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
<checkboxcolor type="colorpicker" category="Questions" width="6" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
<questiontitlebackgroundcolor type="colorpicker" category="Questions" width="12" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
<questiontitlefontcolor type="colorpicker" category="Questions" width="12" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
<questionbackgroundcolor type="colorpicker" category="Questions" width="12" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="12" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
<questionhelpfontcolor type="colorpicker" category="Questions" width="12" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
<questionhelptextposition type="buttons" category="Questions" width="12" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
<questionborder type="buttons" category="Questions" width="12" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
<questionbordercolor type="colorpicker" category="Questions" width="12" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
<questionborderstyle type="buttons" category="Questions" width="12" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
<questiondropdown type="buttons" category="Questions" width="12" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None" parent="questionborder">hover</questiondropdown>
<questionborderradiusTL type="duration" category="Questions" width="12" title="Border radius top left" parent="questionborder">5px</questionborderradiusTL>
<questionborderradiusTR type="duration" category="Questions" width="12" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
<questionborderradiusBL type="duration" category="Questions" width="12" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
<questionborderradiusBR type="duration" category="Questions" width="12" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
<checkboxcolor type="colorpicker" category="Questions" width="12" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
<!-- Progress -->
<progressbarposition type="buttons" category="Progress" width="6" title="Position of the progress bar" options="under|in" optionlabels="Under header|In header">under</progressbarposition>
<!-- Prompt N: listing order swapped — "In header" FIRST, then "Under header".
The stored value semantics are unchanged (in|under); the default stays "under". -->
<progressbarposition type="buttons" category="Progress" width="6" title="Position of the progress bar" options="in|under" optionlabels="In header|Under header">under</progressbarposition>
<!-- Header sticky per screen size (shown in the "Top of the page" tab).
Breakpoints are Bootstrap's default ones: phone < md (768px),
tablet = md..lg (768-991px), computer >= lg (992px). The three
checkboxes are children of the master switch: they are only visible
(and enabled) when "Make header sticky" is on. nav_bar.twig no longer
hardcodes fixed-top; custom_header.twig emits the media queries.
Defaults: sticky on computer + tablet, NOT on mobile. -->
<headersticky type="buttons" category="Top of the page" width="4" title="Make header sticky" options="on|off" optionlabels="Yes|No">on</headersticky>
<headerstickycomputer type="checkbox" category="Top of the page" width="4" title="Computer screen" parent="headersticky">on</headerstickycomputer>
<headerstickytablet type="checkbox" category="Top of the page" width="4" title="Tablet" parent="headersticky">on</headerstickytablet>
<headerstickymobile type="checkbox" category="Top of the page" width="4" title="Mobile phone" parent="headersticky">off</headerstickymobile>
tablet = md..lg (768-991px), computer >= lg (992px). nav_bar.twig no
longer hardcodes fixed-top; custom_header.twig emits the media
queries. Defaults: sticky on computer + tablet, NOT on mobile. -->
<!-- Prompt L: the master key "headersticky" is kept in config.xml/DB for
backward compatibility, but the options page renders it as a static
LABEL only (see options.twig). Sticky behaviour is governed solely by
the three checkboxes below, which no longer have a parent (always
visible, stacked as a list via width=12). Migration note: an old row
with headersticky=off no longer disables sticky — only the checkboxes
count (defaults on/on/off). -->
<headersticky type="buttons" category="Top of the page" width="12" title="Make header sticky" options="on|off" optionlabels="Yes|No">on</headersticky>
<headerstickycomputer type="checkbox" category="Top of the page" width="12" title="Computer screen">on</headerstickycomputer>
<headerstickytablet type="checkbox" category="Top of the page" width="12" title="Tablet">on</headerstickytablet>
<headerstickymobile type="checkbox" category="Top of the page" width="12" title="Mobile phone">off</headerstickymobile>
<!-- Various colors
HOUSE-STYLE: ALL colorpickers in this section (header, navbar menu,
primary, font, slider, progressbar, privacy) are house-style colors
and are set per variant via variants/<client>.json -->
slider, progressbar, privacy) are house-style colors and are set per
variant via variants/<client>.json.
NOTE (Prompt U): primarycolor, fontcolor and the new secondarycolor
moved to the "Fonts" category (they live in the "Fonts and colors"
tab now); header/navbar/progressbar colors are pulled into the
"Top of the page" tab by options.twig. What remains here in the
Colors pane: sliderhandlecolor + privacybackgroundcolor (final
Colors layout = Prompt T, still open). -->
<!-- Various colors -->
<headerbackgroundcolor type="colorpicker" category="Colors" width="12" title="Header background color" options="on|off" optionlabels="Yes|No">#eeeeee</headerbackgroundcolor>
<navbarfontcolor type="colorpicker" category="Colors" width="12" title="Menu item text color in the top bar (should contrast with the header background color)" options="on|off" optionlabels="Yes|No">#444444</navbarfontcolor>
<primarycolor type="colorpicker" category="Colors" width="12" title="Primary color (for buttons)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
<fontcolor type="colorpicker" category="Colors" width="12" title="Base font color" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
<progressbarbackgroundcolor type="colorpicker" category="Colors" width="12" title="Progress bar background color" options="on|off" optionlabels="Yes|No">#eeeeee</progressbarbackgroundcolor>
<progressbarcolor type="colorpicker" category="Colors" width="12" title="Progress bar color" options="on|off" optionlabels="Yes|No">#5e1c64</progressbarcolor>
@ -196,26 +240,61 @@
+ the "Bundled open source fonts" optgroup below). -->
<!-- fonts -->
<!-- When adding new items, please keep fonts ordered alphabetically -->
<font type="dropdown" category="Fonts" width="4" title="Default font (body text)" parent="font">noto_sans
<font type="dropdown" category="Fonts" width="4" title="Default font (body text)">noto_sans
<dropdownoptions><!-- Open source fonts bundled with this theme itself: font files in files/fonts/, @font-face + generic .font-<value> rules in css/fonts.css. See files/fonts/README.md (English) for how to add your own font here. --><optgroup label="Bundled open source fonts"><option class="font-eb_garamond " value="eb_garamond" data-font-package="websafe">EB Garamond (serif)</option><option class="font-inter " value="inter" data-font-package="websafe">Inter (sans-serif)</option><option class="font-liberation_sans " value="liberation_sans" data-font-package="websafe">Liberation Sans (sans-serif)</option><option class="font-noto_sans " value="noto_sans" data-font-package="websafe">Noto Sans (sans-serif)</option><option class="font-noto_serif " value="noto_serif" data-font-package="websafe">Noto Serif (serif)</option><option class="font-open_sans " value="open_sans" data-font-package="websafe">Open Sans (sans-serif)</option><option class="font-source_serif_4 " value="source_serif_4" data-font-package="websafe">Source Serif 4 (serif)</option></optgroup><!-- Custom fonts of a variant are appended to the optgroup below by variants/build.php ("fontOptions" in the variant json) --><optgroup label="Custom (this theme)">
</optgroup><optgroup label="User browser"><option class="font-arial " value="arial" data-font-package="websafe">Arial</option><option class="font-arial_black " value="arial_black" data-font-package="websafe">Arial Black</option><option class="font-comic_sans " value="comic_sans" data-font-package="websafe">Comic Sans</option><option class="font-courier " value="courier" data-font-package="websafe">Courier New</option><option class="font-georgia " value="georgia" data-font-package="websafe">Georgia</option><option class="font-impact " value="impact" data-font-package="websafe">Impact</option><option class="font-lucida_console " value="lucida_console" data-font-package="websafe">Lucida Console</option><option class="font-lucida_sans " value="lucida_sans" data-font-package="websafe">Lucida Sans</option><option class="font-palatino " value="palatino" data-font-package="websafe">Palatino Linotype</option><option class="font-times_new_roman " value="times_new_roman" data-font-package="websafe">Times New Roman</option><option class="font-trebuchet " value="trebuchet" data-font-package="websafe">Trebuchet</option></optgroup></dropdownoptions>
</font>
<!-- Per-element font overrides (type "fontselect", rendered by options/options.twig):
each dropdown offers the SAME choices as the base "font" dropdown above
(bundled + variant-custom + browser fonts), plus a first option
"Same as base font" (value "base" = no extra class, the element simply
inherits the body font). The chosen value is applied as the class
font-<value> on the element in the views (nav_bar, progress_bar,
question_text_container, answers, help, group_name, group_desc,
navigator). Default "base" for all of them. -->
<headerfont type="fontselect" category="Fonts" width="4" title="Font for the header / top menu">base</headerfont>
<progressbarfont type="fontselect" category="Fonts" width="4" title="Font for the progress bar">base</progressbarfont>
<questiontitlefont type="fontselect" category="Fonts" width="4" title="Font for question titles">base</questiontitlefont>
<answersfont type="fontselect" category="Fonts" width="4" title="Font for answers and help texts">base</answersfont>
<grouptitlefont type="fontselect" category="Fonts" width="4" title="Font for group titles">base</grouptitlefont>
<groupdescriptionfont type="fontselect" category="Fonts" width="4" title="Font for group descriptions">base</groupdescriptionfont>
<buttonsfont type="fontselect" category="Fonts" width="4" title="Font for the buttons (Previous/Next/Submit)">base</buttonsfont>
<!-- Prompt U: the "Fonts" tab is rendered as "Fonts and colors" with a special
layout (options.twig): TOP ROW column 1 = font, fontcolor, fontsize;
column 2 = primarycolor, secondarycolor (both moved here from the Colors
category); then an <hr>; then per-element combo rows (fontselect +
textcolor dropdown + conditional textcolorcustom picker); then the
size/weight options below. HOUSE-STYLE: fontcolor, primarycolor and
secondarycolor are set per variant via variants/<client>.json. -->
<fontcolor type="colorpicker" category="Fonts" width="12" title="Default font color (body text)" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
<fontsize type="buttons" category="Fonts" width="12" title="Base font size" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|Extra large (20 px)">16px</fontsize>
<primarycolor type="colorpicker" category="Fonts" width="12" title="Primary color" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
<secondarycolor type="colorpicker" category="Fonts" width="12" title="Secondary color" options="on|off" optionlabels="Yes|No">#888888</secondarycolor>
<!-- Per-element font+color combos (Prompt U). Each element gets:
- <el>font (type "fontselect"): the SAME choices as the base "font"
dropdown above (bundled + variant-custom + browser fonts), plus a
first option "Same as base font" (value "base" = no extra class, the
element inherits the body font). Applied as class font-<value> on the
element in the views (nav_bar, progress_bar, question_text_container,
answers, help, group_name, group_desc, navigator). Default "base".
- <el>textcolor (dropdown): text color mode for that element —
default|primary|secondary|other (default "default" = the body font
color fontcolor). Resolved to an inline style="color: …" in the views.
- <el>textcolorcustom (colorpicker): only visible when <el>textcolor
= "other" (parent show-value "other"). -->
<headerfont type="fontselect" category="Fonts" width="4" title="Font for the header / top menu">base</headerfont>
<headertextcolor type="dropdown" category="Fonts" width="12" title="Text color for the header / top menu" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></headertextcolor>
<headertextcolorcustom type="colorpicker" category="Fonts" width="12" title="Custom text color for the header / top menu" parent="headertextcolor">#444444</headertextcolorcustom>
<progressbarfont type="fontselect" category="Fonts" width="4" title="Font for the progress bar">base</progressbarfont>
<progressbartextcolor type="dropdown" category="Fonts" width="12" title="Text color for the progress bar" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></progressbartextcolor>
<progressbartextcolorcustom type="colorpicker" category="Fonts" width="12" title="Custom text color for the progress bar" parent="progressbartextcolor">#444444</progressbartextcolorcustom>
<questiontitlefont type="fontselect" category="Fonts" width="4" title="Font for question titles">base</questiontitlefont>
<questiontitletextcolor type="dropdown" category="Fonts" width="12" title="Text color for question titles" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></questiontitletextcolor>
<questiontitletextcolorcustom type="colorpicker" category="Fonts" width="12" title="Custom text color for question titles" parent="questiontitletextcolor">#444444</questiontitletextcolorcustom>
<answersfont type="fontselect" category="Fonts" width="4" title="Font for answers and help texts">base</answersfont>
<answerstextcolor type="dropdown" category="Fonts" width="12" title="Text color for answers and help texts" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></answerstextcolor>
<answerstextcolorcustom type="colorpicker" category="Fonts" width="12" title="Custom text color for answers and help texts" parent="answerstextcolor">#444444</answerstextcolorcustom>
<grouptitlefont type="fontselect" category="Fonts" width="4" title="Font for group titles">base</grouptitlefont>
<grouptitletextcolor type="dropdown" category="Fonts" width="12" title="Text color for group titles" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></grouptitletextcolor>
<grouptitletextcolorcustom type="colorpicker" category="Fonts" width="12" title="Custom text color for group titles" parent="grouptitletextcolor">#444444</grouptitletextcolorcustom>
<groupdescriptionfont type="fontselect" category="Fonts" width="4" title="Font for group descriptions">base</groupdescriptionfont>
<groupdescriptiontextcolor type="dropdown" category="Fonts" width="12" title="Text color for group descriptions" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></groupdescriptiontextcolor>
<groupdescriptiontextcolorcustom type="colorpicker" category="Fonts" width="12" title="Custom text color for group descriptions" parent="groupdescriptiontextcolor">#444444</groupdescriptiontextcolorcustom>
<buttonsfont type="fontselect" category="Fonts" width="4" title="Font for the buttons (Previous/Next/Submit)">base</buttonsfont>
<buttonstextcolor type="dropdown" category="Fonts" width="12" title="Text color for the buttons (Previous/Next/Submit)" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></buttonstextcolor>
<buttonstextcolorcustom type="colorpicker" category="Fonts" width="12" title="Custom text color for the buttons (Previous/Next/Submit)" parent="buttonstextcolor">#444444</buttonstextcolorcustom>
<questiontitlefontsize type="buttons" category="Fonts" width="6" title="Question title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</questiontitlefontsize>
<questiontitlefontweight type="buttons" category="Fonts" width="6" title="Question title font weight" options="400|700" optionlabels="Normal|Bold">700</questiontitlefontweight>
<grouptitlefontsize type="buttons" category="Fonts" width="6" title="Group title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">2.0rem</grouptitlefontsize>