<description><strong>Example variant of Respondage Vanilla</strong><br>Public example of a build output: only a few house-style option values differ, all views, CSS and JS are inherited from the mother theme via extends.</description>
Here the list of the css/js files to add to the template package.
About packages in Yii: http://www.yiiframework.com/doc/api/1.1/CClientScript#packages-detail
NOTE: The "add" tag also count as a "replace" tag.
Eg: You can't just "add" a file in the extended theme with the same name as a file here. It will always "replace" it. You must use a diffrent file name.
Eg: Vanilla manifest already has "<add>css/theme.css</add>". So if you use "<add>css/theme.css</add>" in an extended theme, it will replace the vanilla css/theme.css
NOTE: If an extended theme, if you don't change a file that is defined here, you don't need to add it again.
Eg: css/ajaxify.css is already added in vanilla. Nor fruity nor bootswatch modify it, so ne need to add / replace it in fruity or bootswatch.
Even if no mention at all about "css/ajaxify.css" is theme extending vanilla, it will still be added because it's added here
NOTE: To easy test changes in config file, you can force the use of the XML file rather than DB. To do so, turn debug mode on, and in config.php config array, on bottom of debug mode, add:
'force_xmlsettings_for_survey_rendering' => true,
Then, you will not need anymore to reset your theme each time you change the config file.
But, once turning the setting off, You will still must reset the theme to the changes are pushed to DB
-->
<files>
<css>
<add>css/base.css</add>
<add>css/theme.css</add>
<add>css/noTablesOnMobile.css</add>
<add>css/plain.css</add>
<add>css/fonts.css</add>
<add>css/custom.css</add>
</css>
<js>
<add>scripts/theme.js</add>
<add>scripts/custom.js</add>
</js>
<print_css>
<add>css/print_theme.css</add>
</print_css>
</files>
<!-- You can add here any option you want. It will be available in twig file via aSurveyInfo.options.youroptionname -->
<!--
HOUSE-STYLE CONVENTION:
- Options in sections marked "HOUSE-STYLE" are house-style specific:
colors, fonts and the sizes/colors/weights of those fonts, plus
logo on/off + file, logo top margin and background image/color.
- House-style values are ONLY set per client in variants/<client>.json
(processed by variants/build.php into the variant's config.xml).
Never hardcode them in views/, sass/, css/ or scripts/: those files
are shared with all variants.
- Unmarked options are functional/structural (default of the mother
theme, same for all variants). A variant may still override them via
<!-- Default font and colors tab (options.twig tab 1): ONE row with three col-md-4 columns — col 1 = font, fontsize, fontcolor; col 2 = defaultbackgroundcolor; col 3 = primarycolor, secondarycolor, tertiarycolor (row 174). Row 159/160: the config.xml order within a category = the render order in options.twig, and width = the pane column width, so the core options renderer lays out the same structure. -->
<!-- Default font and colors
HOUSE-STYLE: the font choice and the four colors below are house-style specific (set per variant via variants/<client>.json).
PLACING A CUSTOM FONT - instructions:
1. Put the font file (e.g. .woff2) in the files/fonts/ folder of
the variant (or of this mother theme if all variants should be
able to pick the font).
2. Create a css file in the variant, e.g. css/variant.css, with the
@font-face and the GENERIC class .font-<value> (not body-scoped!):
the selected font is applied as class font-<value> on <body>, but
the per-element font overrides (fontselect options, see below)
apply the same class on individual elements, so the rule must be
<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. --><optgrouplabel="Bundled open source fonts"><optionclass="font-eb_garamond "value="eb_garamond"data-font-package="websafe">EB Garamond (serif)</option><optionclass="font-inter "value="inter"data-font-package="websafe">Inter (sans-serif)</option><optionclass="font-liberation_sans "value="liberation_sans"data-font-package="websafe">Liberation Sans (sans-serif)</option><optionclass="font-noto_sans "value="noto_sans"data-font-package="websafe">Noto Sans (sans-serif)</option><optionclass="font-noto_serif "value="noto_serif"data-font-package="websafe">Noto Serif (serif)</option><optionclass="font-open_sans "value="open_sans"data-font-package="websafe">Open Sans (sans-serif)</option><optionclass="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) --><optgrouplabel="Custom (this theme)">
<!-- Row 174: the "Default font and colors" tab has ONE row with three
col-md-4 columns (options.twig): col 1 = font, fontsize, fontcolor;
col 2 = defaultbackgroundcolor; col 3 = the three colors below.
HOUSE-STYLE: the font choice and fontcolor/primarycolor/secondarycolor
are set per variant via variants/<client>.json. -->
<fontsizetype="buttons"category="Default font and colors"width="4"title="Base font size (body text)"options="14px|16px|18px|20px"optionlabels="Small (14px)|Normal (16px)|Large (18px)|XLarge (20 px)">16px</fontsize>
<fontcolortype="colorpicker"category="Default font and colors"width="4"title="Default font color (body text)"options="on|off"optionlabels="Yes|No">#444444</fontcolor>
<!-- Row 124/174: "Default background color" — column 2 of the single
three-column row in the "Default font and colors" tab. It is also the
5th preset of the experimental color-chooser (navbarfontcolor dropdown +
swatches), so users can pick it anywhere a named color is offered. -->
<defaultbackgroundcolortype="colorpicker"category="Default font and colors"width="4"title="Default background color"options="on|off"optionlabels="Yes|No">#ffffff</defaultbackgroundcolor>
<primarycolortype="colorpicker"category="Default font and colors"width="4"title="Color 1 (primary)"options="on|off"optionlabels="Yes|No">#5e1c64</primarycolor>
<secondarycolortype="colorpicker"category="Default font and colors"width="4"title="Color 2"options="on|off"optionlabels="Yes|No">#888888</secondarycolor>
<tertiarycolortype="colorpicker"category="Default font and colors"width="4"title="Color 3"options="on|off"optionlabels="Yes|No">#dddddd</tertiarycolor>
<!-- Header tab (options.twig tab 2, keys in aTopOfPageKeys order): header font + menu text color, header background color, sticky per device + header height, then the three logos, then the progress bar position/font/colors. -->
<headerfonttype="fontselect"category="Header"width="4"title="Font for the header / top menu">base</headerfont>
<!-- Working example (row 115, reordered + relabelled row 125): menu item color
as a preset dropdown. The KEY navbarfontcolor is kept (stored DB values
stay attached); the type changes colorpicker -> dropdown with modes
default|defaultbackgroundcolor|color1|color2|color3|other — the "Default
background color" is the SECOND choice (row 125). A legacy stored hex
value is migrated client-side to mode "other" + hex into
navbarfontcolorcustom (options.js navbarColorModeUI), and
custom_header.twig accepts a raw hex directly. The child
navbarfontcolorcustom is rendered VISIBLE but grayed out (disabled)
unless mode "other" (data-show-if-mode="disable" in options.twig) and
keeps its value across saves (data-keep-value in options.js).
PER-OPTION DEFAULT (row 125/126/134): every color-chooser dropdown can pick
its own default value — the element text below IS that default (LimeSurvey
stores it in the DB on theme reset), and the <optiondata-default="1">
marks it. The default entry is enclosed in [ ] in the dropdown list
(bolding <option> text is not rendered by every browser — row 134), and
its swatch label below the swatch stays bold (options.js is-default).
Here the default is "default" ("Default font color"); e.g. when
questiontitlebackgroundcolor is later converted to this pattern, its
default can be set to "color1".
ROW 131: the option TEXTS are exactly "Default font color",
"Other ..." — options.js appends each entry's live hexcode in brackets
(for "Other ..." the custom color's hex) and bolds the default. -->
<navbarfontcolortype="dropdown"category="Header"width="4"title="Text color in header"options="default|defaultbackgroundcolor|color1|color2|color3|other"optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><optionvalue="default"data-default="1">[Default font color]</option><optionvalue="defaultbackgroundcolor">Default background color</option><optionvalue="color1">Color 1</option><optionvalue="color2">Color 2</option><optionvalue="color3">Color 3</option><optionvalue="other">Other ...</option></dropdownoptions></navbarfontcolor>
<navbarfontcolorcustomtype="colorpicker"category="Header"width="4"title="Custom text color in header (for 'Other ...')"parent="navbarfontcolor">#444444</navbarfontcolorcustom>
<!-- Color choosers of the Header tab (rows 115/135/149): HOUSE-STYLE colors, set per
variant via variants/<client>.json. sliderhandlecolor + privacybackgroundcolor remain in
the Colors category (no custom tab yet — Prompt T). -->
<!-- Backgrounds of navbar/page stay plain colorpickers (owner decision
2026-11-26, row 115): they are mostly NOT one of the default colors,
default white #ffffff. EXCEPTION (row 135): the HEADER background color
is part of the color-chooser scheme below — default "Default background
<centerlogotopmargintype="text"category="Header"width="4"title="Margin between logo and top of screen (center), in px (0-100)">15</centerlogotopmargin>
<!-- Progress bar position (now category "Header" — row 159) -->
<!-- Prompt N: listing order swapped — "In header" FIRST, then "Under header".
The stored value semantics are unchanged (in|under); the default stays "under". -->
<progressbarpositiontype="buttons"category="Header"width="4"title="Position of the progress bar"options="in|under"optionlabels="In header|Under header">under</progressbarposition>
<progressbarfonttype="fontselect"category="Header"width="4"title="Font for the progress bar">base</progressbarfont>
<!-- Row 135: progress bar colors as color-choosers. Layout in the "Top of the
page" tab (options.twig slots): progress bar color = COLUMN 1, progress
background = COLUMN 2, progress font color = COLUMN 3 (with an extra tip
underneath). Defaults: progress bar color = Color 1, progress background =
Default background color, progress font color = Default font color. -->
<progressbarcolortype="dropdown"category="Header"width="4"title="Progress bar color"options="default|defaultbackgroundcolor|color1|color2|color3|other"optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><optionvalue="default">Default font color</option><optionvalue="defaultbackgroundcolor">Default background color</option><optionvalue="color1"data-default="1">[Color 1]</option><optionvalue="color2">Color 2</option><optionvalue="color3">Color 3</option><optionvalue="other">Other ...</option></dropdownoptions></progressbarcolor>
<progressbarcolorcustomtype="colorpicker"category="Header"width="4"title="Custom progress bar color (for 'Other ...')"parent="progressbarcolor">#5e1c64</progressbarcolorcustom>
<progressbarbackgroundcolortype="dropdown"category="Header"width="4"title="Progress bar background color"options="default|defaultbackgroundcolor|color1|color2|color3|other"optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><optionvalue="default">Default font color</option><optionvalue="defaultbackgroundcolor"data-default="1">[Default background color]</option><optionvalue="color1">Color 1</option><optionvalue="color2">Color 2</option><optionvalue="color3">Color 3</option><optionvalue="other">Other ...</option></dropdownoptions></progressbarbackgroundcolor>
<progressbarbackgroundcolorcustomtype="colorpicker"category="Header"width="4"title="Custom progress bar background color (for 'Other ...')"parent="progressbarbackgroundcolor">#eeeeee</progressbarbackgroundcolorcustom>
<progressbarfontcolortype="dropdown"category="Header"width="4"title="Progress bar font color"options="default|defaultbackgroundcolor|color1|color2|color3|other"optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><optionvalue="default"data-default="1">[Default font color]</option><optionvalue="defaultbackgroundcolor">Default background color</option><optionvalue="color1">Color 1</option><optionvalue="color2">Color 2</option><optionvalue="color3">Color 3</option><optionvalue="other">Other ...</option></dropdownoptions></progressbarfontcolor>
<progressbarfontcolorcustomtype="colorpicker"category="Header"width="4"title="Custom progress bar font color (for 'Other ...')"parent="progressbarfontcolor">#ffffff</progressbarfontcolorcustom>
<!-- Page background tab (options.twig tab 3, aImagesPaneKeys order): overall background color (chooser + custom), then the background image on/off + its detail options. -->
<!-- Row 149: the overall background color is a color-chooser dropdown like the
other chooser options (default|defaultbackgroundcolor|color1|color2|color3|
other) with a <key>custom colorpicker child; its DEFAULT is the Default
background color. A legacy stored hex is migrated client-side to mode
"other" + hex into bodybackgroundcolorcustom (options.js), and
custom_header.twig resolves the mode via the cm() macro (a raw hex still
passes through directly). -->
<bodybackgroundcolortype="dropdown"category="Page background"width="6"title="Overall background color"options="default|defaultbackgroundcolor|color1|color2|color3|other"optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><optionvalue="default">Default font color</option><optionvalue="defaultbackgroundcolor"data-default="1">[Default background color]</option><optionvalue="color1">Color 1</option><optionvalue="color2">Color 2</option><optionvalue="color3">Color 3</option><optionvalue="other">Other ...</option></dropdownoptions></bodybackgroundcolor>
<bodybackgroundcolorcustomtype="colorpicker"category="Page background"width="6"title="Custom overall background color (for 'Other ...')"parent="bodybackgroundcolor">#dddddd</bodybackgroundcolorcustom>
<!-- 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).
Row 149/163: the "Page background" pane lays these out in TWO columns
(width 6 = the two col-md-6 columns) under the full-width intro —
col 1 = overall background color (chooser) + background image on/off,
col 2 = the three image-detail options (hidden as a whole when the
image is off). -->
<backgroundimagetype="buttons"category="Page background"width="6"title="Background image (behind body of page)"options="on|off"optionlabels="Yes|No">on</backgroundimage>
maps them to font-weight/font-style. Defaults keep the old look: title
bold, description normal. -->
<grouptitlefonttype="fontselect"category="Groups"width="6"title="Font for group title">base</grouptitlefont>
<grouptitletextcolortype="dropdown"category="Groups"width="6"title="Group title color"options="default|defaultbackgroundcolor|color1|color2|color3|other"optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
<dropdownoptions><optionvalue="default"data-default="1">[Default font color]</option><optionvalue="defaultbackgroundcolor">Default background color</option><optionvalue="color1">Color 1</option><optionvalue="color2">Color 2</option><optionvalue="color3">Color 3</option><optionvalue="other">Other ...</option></dropdownoptions></grouptitletextcolor>
<grouptitletextcolorcustomtype="colorpicker"category="Groups"width="6"title="Custom group title color (for 'Other ...')"parent="grouptitletextcolor">#444444</grouptitletextcolorcustom>
<grouptitlefontsizetype="buttons"category="Groups"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>
<grouptitlefontoptionstype="buttons"category="Groups"width="6"title="Group title font options"options="normal|bold|italic|bolditalic"optionlabels="Normal|Bold|Italic|Bold italic">bold</grouptitlefontoptions>
<groupdescriptionfonttype="fontselect"category="Groups"width="6"title="Font for group description">base</groupdescriptionfont>
<dropdownoptions><optionvalue="default"data-default="1">[Default font color]</option><optionvalue="defaultbackgroundcolor">Default background color</option><optionvalue="color1">Color 1</option><optionvalue="color2">Color 2</option><optionvalue="color3">Color 3</option><optionvalue="other">Other ...</option></dropdownoptions></groupdescriptiontextcolor>
<groupdescriptiontextcolorcustomtype="colorpicker"category="Groups"width="6"title="Custom group description color (for 'Other ...')"parent="groupdescriptiontextcolor">#444444</groupdescriptiontextcolorcustom>
<groupdescriptionfontsizetype="buttons"category="Groups"width="6"title="Group description 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</groupdescriptionfontsize>
<groupdescriptionfontoptionstype="buttons"category="Groups"width="6"title="Group description font options"options="normal|bold|italic|bolditalic"optionlabels="Normal|Bold|Italic|Bold italic">normal</groupdescriptionfontoptions>
<!-- Questions tab (options.twig tab 5): first the three columns (col 1 colors+help, col 2 border + children, col 3 checkbox color; width 4 = col-md-4 columns), then the rest full-width (width 12). -->
<!-- Questions
HOUSE-STYLE: the colorpicker options in this section (question
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 -->
<questiontitlebackgroundcolortype="colorpicker"category="Questions"width="4"title="Question title background color"options="on|off"optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
<questiontitlefontcolortype="colorpicker"category="Questions"width="4"title="Question title font color"options="on|off"optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
<questionbackgroundcolortype="colorpicker"category="Questions"width="4"title="Question background color (not title)"options="on|off"optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
<questionhelpfontcolortype="colorpicker"category="Questions"width="4"title="Question help font color"options="on|off"optionlabels="Yes|No">#444444</questionhelpfontcolor>
<questionhelptextpositiontype="buttons"category="Questions"width="4"title="Question help text position"options="top|bottom"optionlabels="Top|Bottom">top</questionhelptextposition>
<questionbordertype="buttons"category="Questions"width="4"title="Question border"options="box|top|none"optionlabels="Box around|Top and bottom|None">box</questionborder>
<questionborderstyletype="buttons"category="Questions"width="4"title="Question border line style"options="solid|dotted|dashed"optionlabels="Solid|Dotted|Dashed"parent="questionborder">solid</questionborderstyle>
<checkboxcolortype="colorpicker"category="Questions"width="4"title="Checkbox/radiobutton color (when checked)"options="on|off"optionlabels="Yes|No">#ff005f</checkboxcolor>
<questiontitletextcolortype="dropdown"category="Questions"width="12"title="Text color for question titles"options="default|primary|secondary|other"optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><optionvalue="default"data-default="1">[Default font color]</option><optionvalue="primary">Primary color</option><optionvalue="secondary">Secondary color</option><optionvalue="other">Other…</option></dropdownoptions></questiontitletextcolor>
<questiontitletextcolorcustomtype="colorpicker"category="Questions"width="12"title="Custom text color for question titles"parent="questiontitletextcolor">#444444</questiontitletextcolorcustom>
<answerstextcolortype="dropdown"category="Questions"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><optionvalue="default"data-default="1">[Default font color]</option><optionvalue="primary">Primary color</option><optionvalue="secondary">Secondary color</option><optionvalue="other">Other…</option></dropdownoptions></answerstextcolor>
<answerstextcolorcustomtype="colorpicker"category="Questions"width="12"title="Custom text color for answers and help texts"parent="answerstextcolor">#444444</answerstextcolorcustom>
<buttonstextcolortype="dropdown"category="Questions"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><optionvalue="default"data-default="1">[Default font color]</option><optionvalue="primary">Primary color</option><optionvalue="secondary">Secondary color</option><optionvalue="other">Other…</option></dropdownoptions></buttonstextcolor>
<buttonstextcolorcustomtype="colorpicker"category="Questions"width="12"title="Custom text color for the buttons (Previous/Next/Submit)"parent="buttonstextcolor">#444444</buttonstextcolorcustom>
<questiontitlefontsizetype="buttons"category="Questions"width="12"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>
<questiontitlefontweighttype="buttons"category="Questions"width="12"title="Question title font weight"options="400|700"optionlabels="Normal|Bold">700</questiontitlefontweight>
<!-- Colors: no tab in the custom options page yet (Prompt T) — these two stay in core mode only. -->